Fabric Stacklimit,more patches.

This commit is contained in:
MADxingjin 2025-03-26 22:38:20 +08:00
parent ec47c0300c
commit b0d57e4e88
7 changed files with 105 additions and 54 deletions

View File

@ -7,7 +7,7 @@
<jobString>Refining propellant from cotton.</jobString>
<effectWorking>Cremate</effectWorking>
<soundWorking>Recipe_Cremate</soundWorking>
<workAmount>18750</workAmount>
<workAmount>12750</workAmount>
<workSpeedStat>GeneralLaborSpeed</workSpeedStat>
<researchPrerequisite>CE_Gunpowder</researchPrerequisite>
<ingredients>

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<Patch>
<Operation Class="PatchOperationAdd">
<xpath>
Defs/RecipeDef[defName="AIE-Make_PropellantFromCotton"]/ingredients/li/filter/thingDefs</xpath>
<value>
<li MayRequire="dismarzero.VGP.VGPGardenFabrics">RawCotton</li>
</value>
</Operation>
<Operation Class="PatchOperationAdd">
<xpath>
Defs/RecipeDef[defName="AIE-Make_PropellantFromCotton"]/fixedIngredientFilter/thingDefs</xpath>
<value>
<li MayRequire="dismarzero.VGP.VGPGardenFabrics">RawCotton</li>
</value>
</Operation>
</Patch>

View File

@ -62,7 +62,7 @@
<li Class="StockGenerator_Tag">
<tradeTag>CE_Turret</tradeTag>
<thingDefCountRange>
<min>-2</min>
<min>1</min>
<max>4</max>
</thingDefCountRange>
<countRange>

View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<Patch>
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Polyester"]/stackLimit</xpath>
<value>
<stackLimit>300</stackLimit>
</value>
</Operation>
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Plasfiber"]/stackLimit</xpath>
<value>
<stackLimit>150</stackLimit>
</value>
</Operation>
</Patch>

View File

@ -1,33 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>FlakDress</li>
</mods>
<match Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="TW_FlakDress"]/apparel/layers</xpath>
<value>
<Operation Class="PatchOperationFindMod">
<mods>
<li>FlakDress</li>
</mods>
<match Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="TW_FlakDress"]/apparel/layers</xpath>
<value>
<layers>
<li>Shell</li>
<li>Cape</li>
</layers>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="FD_HeavyFD" or defName="FD_CompFD" or defName="FD_MechDress"]/apparel/layers</xpath>
<value>
<li>Cape</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="TW_OnionArmor_Surcoat"]/apparel/layers</xpath>
<value>
<li>Cape</li>
</value>
</li>
</operations>
</match>
</Operation>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="FD_HeavyFD" or defName="FD_CompFD" or
defName="FD_MechDress"]/apparel/layers</xpath>
<value>
<li>Cape</li>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="TW_OnionArmor_Surcoat"]/apparel/layers</xpath>
<value>
<li>Cape</li>
</value>
</li>
</operations>
</match>
</Operation>
</Patch>

View File

@ -1,25 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Save Our Ship 2</li>
</mods>
<match Class="PatchOperationSequence">
<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Apparel_SpaceSuitBody"]/apparel/layers</xpath>
<value>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Save Our Ship 2</li>
</mods>
<match Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Apparel_SpaceSuitBody"]/apparel/layers</xpath>
<value>
<layers>
<li>Shell</li>
<li>Cape</li>
</layers>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Apparel_SpaceSuitBodyHeavy"]/apparel/layers</xpath>
<value>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Apparel_SpaceSuitBodyHeavy"]/apparel/layers</xpath>
<value>
<li>Cape</li>
</value>
</li>
</match>
</Operation>
</value>
</li>
</operations>
</match>
</Operation>
</Patch>

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<Patch>
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Synthread" or defName="Hyperweave" or
defName="DevilstrandCloth"]/stackLimit</xpath>
<value>
<stackLimit>150</stackLimit>
</value>
</Operation>
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="WoolBase" or defName="Cloth"]/stackLimit</xpath>
<value>
<stackLimit>300</stackLimit>
</value>
</Operation>
</Patch>