Can't remove Hediff, recipe does not appear.

Started by thestarsaboveus, December 17, 2023, 10:23:17 AM

Previous topic - Next topic

thestarsaboveus

This issue has been making me go mad, and I am just so mad at this point.
<RecipeDef ParentName="SurgeryFlesh">
    <defName>RBS_RemoveTape</defName>
    <label>remove tape</label>
    <description>Tear duct tape off somebody's maw, finally giving them the freedom of speech.</description>
    <workerClass>Recipe_RemoveHediff</workerClass>
    <jobString>Tearing duct tape off of {1}'s face.</jobString>
    <workAmount>20</workAmount>
    <hideBodyPartNames>false</hideBodyPartNames>
    <isViolation>false</isViolation>
    <targetsBodyPart>false</targetsBodyPart>
    <removesHediff>RBS_DuctTape</removesHediff>
    <surgeryOutcomeEffect>RBS_TapingEffect</surgeryOutcomeEffect>
    <skillRequirements Inherit="False"/>
    <recipeUsers>
      <li>Human</li>
    </recipeUsers>
    <ingredients Inherit="False" />
  </RecipeDef>

For some damn reason, it will not create a removal recipe.

Rest of the code [ABOVE]:
  <HediffDef ParentName="ImplantHediffBase">
    <defName>RBS_DuctTape</defName>
    <label>duct tape</label>
    <labelNoun>some duct tape</labelNoun>
    <description>This person's jaw is taped with duct tape. They cannot speak or eat until it is removed, breathing is weakened.</description>
    <descriptionHyperlinks><ThingDef>RBS_DuctTape</ThingDef></descriptionHyperlinks>
    <woundAnchorRange>0</woundAnchorRange>
    <displayWound>false</displayWound>
    <stages>
      <li>
        <capMods>
          <li>
            <capacity>Eating</capacity>
            <offset>-1</offset>
          </li>
           <li>
             <capacity>Talking</capacity>
             <offset>-1</offset>
           </li>
            <li>
            <capacity>Breathing</capacity>
            <offset>-0.1</offset>
           </li>
        </capMods>
       </li>
    </stages>
  </HediffDef>

  <ThingDef ParentName="BodyPartBionicBase">
    <defName>RBS_DuctTape</defName>
    <label>duct tape</label>
    <description>Some duct tape, has many uses, but yours is probably more evil.</description>
    <descriptionHyperlinks><RecipeDef>UseDuctTapeOnPawn</RecipeDef></descriptionHyperlinks>
    <stackLimit>18</stackLimit>
    <drawGUIOverlay>true</drawGUIOverlay>
    <stealable>true</stealable>
    <healthAffectsPrice>true</healthAffectsPrice>
    <soundInteract>Standard_Drop</soundInteract>
    <soundDrop>Standard_Drop</soundDrop>
    <graphicData>
      <texPath>RBS_DuctTapeStack</texPath>
      <graphicClass>Graphic_StackCount</graphicClass>
      <drawSize>1</drawSize>
    </graphicData>
    <thingCategories>
      <li>Manufactured</li>
    </thingCategories>
    <techLevel></techLevel>
    <tradeTags>
      <li>Manufactured</li>
    </tradeTags>
    <costList>
      <Chemfuel>25</Chemfuel>
    </costList>
    <statBases>
      <MaxHitPoints>45</MaxHitPoints>
      <MarketValue>20</MarketValue>
      <Flammability>0.17</Flammability>
      <DeteriorationRate>3</DeteriorationRate>
      <Mass>0.25</Mass>
    </statBases>
  </ThingDef>

  <RecipeDef ParentName="SurgeryInstallBodyPartArtificialBase">
    <defName>UseDuctTapeOnPawn</defName>
    <label>duct tape mouth</label>
    <description>Duct tape the pawn's mouth.</description>
    <descriptionHyperlinks>
      <ThingDef>RBS_DuctTape</ThingDef>
      <HediffDef>RBS_DuctTape</HediffDef>
    </descriptionHyperlinks>
    <jobString>Taping {0}'s mouth.</jobString>
    <workAmount>50</workAmount>
    <anesthetize>false</anesthetize>
    <surgeryIgnoreEnvironment>true</surgeryIgnoreEnvironment>
    <surgeryOutcomeEffect>RBS_TapingEffect</surgeryOutcomeEffect>
    <skillRequirements Inherit="False" />
    <ingredients Inherit="False">
      <li>
        <filter>
          <thingDefs>
            <li>RBS_DuctTape</li>
          </thingDefs>
        </filter>
        <count>1</count>
      </li>
    </ingredients>
    <fixedIngredientFilter>
      <thingDefs>
        <li>RBS_DuctTape</li>
      </thingDefs>
    </fixedIngredientFilter>
    <appliedOnFixedBodyParts>
      <li>Jaw</li>
    </appliedOnFixedBodyParts>
    <addsHediff>RBS_DuctTape</addsHediff>
  </RecipeDef>
  <SurgeryOutcomeEffectDef>
    <defName>RBS_TapingEffect</defName>
    <outcomes>
      <li Class="SurgeryOutcomeSuccess" />
    </outcomes>
  </SurgeryOutcomeEffectDef>

Help gladly appreciated

AngeloRouse