Skip to content

Instantly share code, notes, and snippets.

@ruyanve
Created March 5, 2020 11:07
Show Gist options
  • Save ruyanve/d67610b008995aa5b7260ed7e6bd170a to your computer and use it in GitHub Desktop.
Save ruyanve/d67610b008995aa5b7260ed7e6bd170a to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Coal</li>
<li>Coal Expanded</li>
</mods>
<match Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>/Defs</xpath>
<value>
<RecipeDef>
<defName>MakeAYCharcoalFromCoal</defName>
<label>Make Charcoal from Coal</label>
<description>Make 25 Charcoal from Coal</description>
<jobString>Making Charcoal</jobString>
<workSpeedStat>SmeltingSpeed</workSpeedStat>
<effectWorking>Cremate</effectWorking>
<soundWorking>Recipe_Cremate</soundWorking>
<allowMixingIngredients>true</allowMixingIngredients>
<workAmount>500</workAmount>
<targetCountAdjustment>25</targetCountAdjustment>
<ingredients>
<li>
<filter>
<thingDefs>
<li>Coal</li>
</thingDefs>
</filter>
<count>25</count>
</li>
</ingredients>
<fixedIngredientFilter>
<thingDefs>
<li>Coal</li>
</thingDefs>
</fixedIngredientFilter>
<products>
<AYCharcoal>25</AYCharcoal>
</products>
<recipeUsers>
<li>FueledSmithy</li>
<li>ElectricSmithy</li>
<li>ElectricSmelter</li>
<!-- <li>AYCharcoalSmithy</li> -->
</recipeUsers>
<researchPrerequisite>AYCharcoal</researchPrerequisite>
</RecipeDef>
</value>
</li>
</operations>
</match>
</Operation>
</Patch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment