Log inGet started
World

Science-Based 100% Dragon MMO

Branchmain
Branchesmain
Commit4c69d78227

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 meatKg drops below its initial value was bitten: it dies and flips isCarrion = true — the killed aurochs IS the carcass.
  • Carrion is the only gut substrate for the methane sac (State.eat(..., isCarrion=true) fills gutCarrion), 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).