Science-Based 100% Dragon MMO
README.md
Prey
The meat ledger on every edible thing — live aurochs and carcasses alike.
The flight controller discovers Prey entities with Physics.overlapSphere +
component.has("Prey"), feeds meatKg/isCarrion into State.eat, then
decrements meatKg. This component owns the kill rule that follows from
those writes:
- A live animal whose
meatKgdrops below its initial value was bitten: it dies and flipsisCarrion = true— the killed aurochs IS the carcass. - Carrion is the only gut substrate for the methane sac
(
State.eat(..., isCarrion=true)fillsgutCarrion), so the fresh-kill → carcass conversion here is the whole fire economy.
Fauna.component on the same entity reads isCarrion to swap the body mesh
to the carcass and to despawn the remains when the meat is gone.
Fields: meatKg (Sync), isCarrion (Sync), species (Sync),
kcalPerKg (informational), initialMeat (local bite baseline).