Butchering Recipes

Started by SihvMan, May 16, 2017, 12:04:26 AM

Previous topic - Next topic

SihvMan

I've looked in the RecipeDefs, AnimalDefs, and everywhere else I can think of. Where is the items dropped on disassembly/butchering listed? Specifically, how would I add items to be give during butchering to that?

AngleWyrm

Rimworld\Mods\Core\Defs\RecipeDefs\Recipes_Butchery.xml

My 5-point rating system: Yay, Kay, Meh, Erm, Bleh

SihvMan

I've looked in there, and the only output I see is


<specialProducts>
<li>Butchery</li>
</specialProducts>


Is there somewhere defining what is given from that?

Fluffy (l2032)

Meat and leather amounts are defined in the code and depend upon the stats of the butcher, the meat and leather that is dropped is defined on the pawnKind.

You can add extra items by adding a `butcherBodyPart` element to a pawnkinds' lifeStage(s), these represent certain usable part of the animal, and will only drop if not destroyed/removed/etc.

See the Elephant PawnKindDef for an example in vanilla, particularly the final lifestage;
        <butcherBodyPart>
          <bodyPartGroup>TuskAttackTool</bodyPartGroup>
          <thing>ElephantTusk</thing>
          <allowFemale>false</allowFemale>
        </butcherBodyPart>


There's some references in the code to hediffs (read; implants) also dropping upon butchering, but I was unable to actually replicate that in-game, so I must be missing something there.

SihvMan

THANK YOU!

That's exactly what I was looking for.

HAIL THE FLUFFY ONE!