◇
component · drop-in viewer
Prey
The meat ledger on every edible thing — live aurochs and carcasses alike.
by·posted 2mo ago
What it does
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).
Discussion
Scoped to this part · feeds back into the world's score.
Sign in to post.sign in
No comments yet. Be the first.