Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - Boartato

#1
Help / Beginner issue: Can't get surgery to appear
July 19, 2018, 03:13:24 PM
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.

<?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>


<?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>