RimWorld

RimWorld

[SYR] Processor Framework - Vanilla Expanded Cooking
TurtleShroom Jul 1, 2023 @ 9:44am
Let Me Do It For You
Good afternoon.

Rather than waiting for you to spend time doing it yourself, I have decided to go ahead and write the Patches necessary to implement support for the two Mods I requested.

For this Mod:
<Patch> <Operation Class="PatchOperationConditional"> <!-- Does this exist? --> <xpath>/Defs/ThingDef[defName="VCE_CookedSoupFine_Carn"]</xpath> <!-- If it does, add this. --> <match Class="PatchOperationAdd"> <xpath>/Defs</xpath> <success>Always</success> <value> <ProcessorFramework.ProcessDef> <defName>TSP_VCE_CarnivoreSoupFine</defName> <thingDef>VCE_CookedSoupFine_Carn</thingDef> <ingredientFilter> <thingDefs> <li>VCE_UncookedSoupFine_Carn</li> </thingDefs> </ingredientFilter> <capacityFactor>1</capacityFactor> <efficiency>10.0</efficiency> <processDays>0.5</processDays> </ProcessorFramework.ProcessDef> <ProcessorFramework.ProcessDef> <defName>TSP_VCE_CarnivoreSoupLavish</defName> <thingDef>VCE_CookedSoupLavish_Carn</thingDef> <ingredientFilter> <thingDefs> <li>VCE_UncookedSoupLavish_Carn</li> </thingDefs> </ingredientFilter> <capacityFactor>1</capacityFactor> <efficiency>10.0</efficiency> <processDays>0.5</processDays> </ProcessorFramework.ProcessDef> <ProcessorFramework.ProcessDef> <defName>TSP_VCE_CarnivoreSoupGourmet</defName> <thingDef>VCE_CookedSoupGourmet_Carn</thingDef> <ingredientFilter> <thingDefs> <li>VCE_UncookedSoupGourmet_Carn</li> </thingDefs> </ingredientFilter> <capacityFactor>1</capacityFactor> <efficiency>10.0</efficiency> <processDays>0.5</processDays> </ProcessorFramework.ProcessDef> <ProcessorFramework.ProcessDef> <defName>TSP_VCE_VegetarianSoupFine</defName> <thingDef>VCE_CookedSoupFine_Veg</thingDef> <ingredientFilter> <thingDefs> <li>VCE_UncookedSoupFine_Veg</li> </thingDefs> </ingredientFilter> <capacityFactor>1</capacityFactor> <efficiency>10.0</efficiency> <processDays>0.5</processDays> </ProcessorFramework.ProcessDef> <ProcessorFramework.ProcessDef> <defName>TSP_VCE_VegetarianSoupLavish</defName> <thingDef>VCE_CookedSoupLavish_Veg</thingDef> <ingredientFilter> <thingDefs> <li>VCE_UncookedSoupLavish_Veg</li> </thingDefs> </ingredientFilter> <capacityFactor>1</capacityFactor> <efficiency>10.0</efficiency> <processDays>0.5</processDays> </ProcessorFramework.ProcessDef> <ProcessorFramework.ProcessDef> <defName>TSP_VCE_VegegatarianSoupGourmet</defName> <thingDef>VCE_CookedSoupGourmet_Veg</thingDef> <ingredientFilter> <thingDefs> <li>VCE_UncookedSoupGourmet_Veg</li> </thingDefs> </ingredientFilter> <capacityFactor>1</capacityFactor> <efficiency>10.0</efficiency> <processDays>0.5</processDays> </ProcessorFramework.ProcessDef> </value> </match> <!-- If the first XPATH does not exist, the original code stands. --> </Operation> <Operation Class="PatchOperationConditional"> <!-- Does this exist? --> <xpath>/Defs/ThingDef[defName="VCE_CookedSoupFine_Carn"]</xpath> <!-- If it does, add this. --> <match Class="PatchOperationAdd"> <xpath>/Defs/ThingDef[defName="VCE_ElectricPot"]/comps/li/processes</xpath> <success>Always</success> <value> <li MayRequire="argon.vcemp">TSP_VCE_CarnivoreSoupFine</li> <li MayRequire="argon.vcemp">TSP_VCE_CarnivoreSoupLavish</li> <li MayRequire="argon.vcemp">TSP_VCE_CarnivoreSoupGourmet</li> <li MayRequire="argon.vcemp">TSP_VCE_VegetarianSoupFine</li> <li MayRequire="argon.vcemp">TSP_VCE_VegetarianSoupLavish</li> <li MayRequire="argon.vcemp">TSP_VCE_VegetarianSoupGourmet</li> </value> </match> <!-- If the first XPATH does not exist, the original code stands. --> </Operation> <Patches>


For this Mod[http//this+Mod]:
<?xml version="1.0" encoding="utf-8" ?> <Patches> <Operation Class="PatchOperationConditional"> <!-- Does this exist? --> <xpath>/Defs/ThingDef[defName="Insect_CookedSoupSimple"]</xpath> <!-- If it does, add this. --> <match Class="PatchOperationAdd"> <xpath>/Defs</xpath> <success>Always</success> <value> <ProcessorFramework.ProcessDef> <defName>TSP_VCE_KlausSchwabSoup_Simple</defName> <thingDef>Insect_CookedSoupSimple</thingDef> <ingredientFilter> <thingDefs> <li>Insect_UncookedSoupSimple</li> </thingDefs> </ingredientFilter> <capacityFactor>1</capacityFactor> <efficiency>10.0</efficiency> <processDays>0.5</processDays> </ProcessorFramework.ProcessDef> <ProcessorFramework.ProcessDef> <defName>TSP_VCE_KlausSchwabSoup_Fine</defName> <thingDef>Insect_CookedSoupFine</thingDef> <ingredientFilter> <thingDefs> <li>Insect_UncookedSoupFine</li> </thingDefs> </ingredientFilter> <capacityFactor>1</capacityFactor> <efficiency>10.0</efficiency> <processDays>0.5</processDays> </ProcessorFramework.ProcessDef> <ProcessorFramework.ProcessDef> <defName>TSP_VCE_KlausSchwabSoup_Lavish</defName> <thingDef>Insect_CookedSoupLavish</thingDef> <ingredientFilter> <thingDefs> <li>Insect_UncookedSoupLavish</li> </thingDefs> </ingredientFilter> <capacityFactor>1</capacityFactor> <efficiency>10.0</efficiency> <processDays>0.5</processDays> </ProcessorFramework.ProcessDef> <ProcessorFramework.ProcessDef> <defName>TSP_VCE_KlausScwabSoup_WEFTier</defName> <thingDef>Insect_CookedSoupGourmet</thingDef> <ingredientFilter> <thingDefs> <li>Insect_UncookedSoupGourmet</li> </thingDefs> </ingredientFilter> <capacityFactor>1</capacityFactor> <efficiency>10.0</efficiency> <processDays>0.5</processDays> </ProcessorFramework.ProcessDef> </value> </match> <!-- If the first XPATH does not exist, the original code stands. --> </Operation> <Operation Class="PatchOperationConditional"> <!-- Does this exist? --> <xpath>/Defs/ThingDef[defName="Insect_CookedSoupSimple"]</xpath> <!-- If it does, add this. --> <match Class="PatchOperationAdd"> <xpath>/Defs/ThingDef[defName="VCE_ElectricPot"]/comps/li/processes</xpath> <success>Always</success> <value> <li MayRequire="higgs.cozarkian.entomophagy">TSP_VCE_KlausSchwabSoup_Simple</li> <li MayRequire="higgs.cozarkian.entomophagy">TSP_VCE_KlausSchwabSoup_Fine</li> <li MayRequire="higgs.cozarkian.entomophagy">TSP_VCE_KlausSchwabSoup_Lavish</li> <li MayRequire="higgs.cozarkian.entomophagy">TSP_VCE_KlausScwabSoup_WEFTier</li> </value> </match> <!-- If the first XPATH does not exist, the original code stands. --> </Operation> </Patch>


As a Christian, I do not need you to give me explicit credit, so I instead ask you for one thing.

Please do not change the Def Names I gave. That's how I credit myself without overshadowing you.


Thank you for such a great Mod.
-TURTLESHROOM
Last edited by TurtleShroom; Jul 2, 2023 @ 2:34pm
< >
Showing 1-1 of 1 comments
huh. neat. might find a moment to do this for medieval overhaul. when i'm less busy.
< >
Showing 1-1 of 1 comments
Per page: 1530 50