I've googled, checked threads on this forum, and looked at other mods. I have no idea what I'm doing wrong, but this practice surgery of installing a "pog leg" doesn't appear. I've tried renaming my definitions, I've tried having it install different body parts, I've tried including base definitions in the file. I tried copying all the code from the Core defs and changed names to try and get a duplicate surgery.
Absolutely nothing works, even though Rimworld only claims that my version is a mismatch when loading.
Absolutely nothing works, even though Rimworld only claims that my version is a mismatch when loading.
Code Select
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<RecipeDef Abstract="True" Name="Boart_SurgeryFlesh">
<effectWorking>Surgery</effectWorking>
<soundWorking>Recipe_Surgery</soundWorking>
<workSpeedStat>MedicalOperationSpeed</workSpeedStat>
<workSkill>Medicine</workSkill>
<workSkillLearnFactor>16</workSkillLearnFactor>
</RecipeDef>
<RecipeDef ParentName="SurgeryFlesh">
<defName>Boart_InstallPogLeg</defName>
<label>install pog leg</label>
<description>Install a pog leg.</description>
<workerClass>Recipe_InstallArtificialPart</workerClass>
<jobString>Installing pog leg.</jobString>
<workAmount>1300</workAmount>
<surgerySuccessChanceFactor>1.30</surgerySuccessChanceFactor>
<skillRequirements>
<Medicine>3</Medicine>
</skillRequirements>
<ingredients>
<li>
<filter>
<categories>
<li>Medicine</li>
</categories>
</filter>
<count>1</count>
</li>
<li>
<filter>
<thingDefs>
<li>WoodLog</li>
</thingDefs>
</filter>
<count>1</count>
</li>
</ingredients>
<fixedIngredientFilter>
<categories>
<li>Medicine</li>
</categories>
<thingDefs>
<li>WoodLog</li>
</thingDefs>
</fixedIngredientFilter>
<appliedOnFixedBodyParts>
<li>Leg</li>
</appliedOnFixedBodyParts>
<addsHediff>Boart_SimpleProstheticLeg</addsHediff>
</RecipeDef>
</Defs>Code Select
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<!-- Added body parts -->
<HediffDef Name="Boart_AddedBodyPartBase" Abstract="True">
<hediffClass>Hediff_AddedPart</hediffClass>
<defaultLabelColor>(0.5, 0.5, 0.9)</defaultLabelColor>
<isBad>false</isBad>
</HediffDef>
<HediffDef ParentName="Boart_AddedBodyPartBase">
<defName>Boart_SimpleProstheticLeg</defName>
<label>Boart's prosthetic leg</label>
<labelNoun>a prosthetic leg</labelNoun>
<spawnThingOnRemoved>SimpleProstheticLeg</spawnThingOnRemoved>
<addedPartProps>
<solid>true</solid>
<partEfficiency>0.85</partEfficiency>
</addedPartProps>
</HediffDef>
</Defs>