mirror of
https://github.com/TemujinCalidius/SurvivorCore.git
synced 2026-08-14 09:02:29 +00:00
Hunting & butchering (#13): mob defs gain flat carcass fields (carcassItem/Hp/ Tool/YieldMin/Max/Seconds); a slain mob leaves a butcherable CARCASS that is a tagged Gatherable — the whole harvesting pipeline (tool gate, per-hit yields, HP bar, gather:* hooks, progression counters) is reused as the butcher flow. Carcass looks come from SurvivorCoreContent.Carcasses.<mobType>; reactions key on "<mobType>_carcass"; fields editable in the admin Mobs editor. Gatherable gains generic PromptText/PromptObject attributes. Death loot bags (#19, TCE port): dying drops inventory AND worn equipment (config-toggleable) into an anchored ground-clamped bag — IntValue contents, instant-loot prompt for anyone, floating countdown, owner-only beacon, death toast, LifetimeSeconds despawn. Pickup is loss-proof: equipment restores to empty slots first (satchel re-grows capacity before stacks), the rest grants up-to-fit and the remainder stays bagged. New player:died lifecycle → deaths counters via Progression; lootbag:dropped/collected hooks; TCE respawn camera fix. New Inventory APIs: getEquipment, clearAll (capacity-safe order), addUpTo, restoreEquip. Fixed: ToolEquip forces CanBeDropped=false on cloned creator templates. Demo: stone_knife + raw_meat (risky raw: Hunger -25, Poison +8), boar carcass, multi-objective hunt_boar quest, hunter/butcher/hard_way achievements. Docs: mobs.md butchering section + loot-bags.md; CHANGELOG; site card copy. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>