Skip to content

Commit

Permalink
Added Race of the Rim, details (#3)
Browse files Browse the repository at this point in the history
Added support for Race of the Rim.
Renamed Vanilla_mass_metal[wood]stone.xml to Vanilla_mass_metalWoodStone.xml.
Replaced commented defs with mass of 0.5 with patched versions with 1 mass factor (example).
Indentation in some files.
Grammar.
  • Loading branch information
robopitek authored Oct 24, 2021
1 parent 41a5cf3 commit 91cdabf
Show file tree
Hide file tree
Showing 13 changed files with 468 additions and 160 deletions.
2 changes: 1 addition & 1 deletion About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
</supportedVersions>
<packageId>robopitek.Massivity</packageId>
<description>Have you ever wondered why one thing from different materials has the same mass? This mod fixes it, so plasteel mortar is lighter from steel mortar.</description>
</ModMetaData>
</ModMetaData>
5 changes: 2 additions & 3 deletions Massivity.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
Steel have mass 0.5

Cloth have mass 0.026
Steel mass: 0.5
Cloth mass: 0.026
40 changes: 20 additions & 20 deletions Mods patches examples.txt
Original file line number Diff line number Diff line change
@@ -1,36 +1,36 @@
<Patch>

<!--= def with stat factor =-->
<!--= def with stat factor =-->

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "new Def from mod"]/stuffProps/statFactors</xpath>
<value>
<Mass>mass factor</Mass>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "new Def from mod"]/stuffProps/statFactors</xpath>
<value>
<Mass>mass factor</Mass>
</value>
</li>
</operations>
</Operation>

</Patch>

<Patch>

<!--= def without stat factor =-->

<!--= def without stat factor =-->
<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "new Def from mod"]/stuffProps</xpath>
<value>
<statFactors>
<Mass>mass factor</Mass>
</statFactors>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "new Def from mod"]/stuffProps</xpath>
<value>
<statFactors>
<Mass>mass factor</Mass>
</statFactors>
</value>
</li>
</operations>
</Operation>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

<!--= 100% mass is 0.5(mass of Steel) =-->

<!--===== i have big problem because this mod changes some masses from VGP Vegetable Garden (ironwood and bamboo)=====-->
<!--==so i decided to not adding this to avoid red errors (but maybe in the future I will find what to fix)==-->
<!--===== I have a big problem because this mod changes some masses from VGP Vegetable Garden (ironwood and bamboo)=====-->
<!--==so I decided to not adding this to avoid red errors (but maybe in the future I will find how to fix it)==-->

<!--=============== Resources_Wood ====================-->
<Operation Class="PatchOperationSequence">
Expand Down
57 changes: 51 additions & 6 deletions Patches/Mods/Expanded Woodworking/Expanded Woodworking.xml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,43 @@
</li>
</operations>
</Operation>
<!--==== (Mass of 0.5 so these logs are untouched) ====-->
<!--=============== WoodLog_Cocoa ====================-->
<!--=============== WoodLog_Cypress ==================-->
<!--=============== WoodLog_Drago ====================-->

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "WoodLog_Cocoa"]/stuffProps/statFactors</xpath>
<value>
<Mass>1</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "WoodLog_Cypress"]/stuffProps/statFactors</xpath>
<value>
<Mass>1</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "WoodLog_Drago"]/stuffProps/statFactors</xpath>
<value>
<Mass>1</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
Expand All @@ -66,7 +99,19 @@
</li>
</operations>
</Operation>
<!--=============== WoodLog_Pine ====================-->

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "WoodLog_Pine"]/stuffProps/statFactors</xpath>
<value>
<Mass>1</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
Expand Down Expand Up @@ -190,7 +235,7 @@
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
Expand Down
214 changes: 214 additions & 0 deletions Patches/Mods/Race to the Rim.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,214 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<!--= 100% mass is 0.5(mass of Steel) =-->

<!--=============== Items_Resource_Misc ====================-->

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_GronckleIron"]/stuffProps/statFactors</xpath>
<value>
<Mass>0.26</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_WoodLog"]/stuffProps/statFactors</xpath>
<value>
<Mass>10</Mass>
</value>
</li>
</operations>
</Operation>

<!--=============== Items_Resource_Stuff_Leather ====================-->

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_FlightmareDragonScales"]/stuffProps/statFactors</xpath>
<value>
<Mass>0.8</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_FuryDragonScales"]/stuffProps/statFactors</xpath>
<value>
<Mass>0.8</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_GronckleDragonScales"]/stuffProps/statFactors</xpath>
<value>
<Mass>0.8</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_HotburpleDragonScales"]/stuffProps/statFactors</xpath>
<value>
<Mass>0.8</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_NadderDragonScales"]/stuffProps/statFactors</xpath>
<value>
<Mass>0.8</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_NightmareDragonScales"]/stuffProps/statFactors</xpath>
<value>
<Mass>0.8</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_RumblehornDragonScales"]/stuffProps/statFactors</xpath>
<value>
<Mass>1</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_ScauldronDragonScales"]/stuffProps/statFactors</xpath>
<value>
<Mass>0.8</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_StormcutterDragonScales"]/stuffProps/statFactors</xpath>
<value>
<Mass>0.8</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_TerribleTerrorDragonScales"]/stuffProps/statFactors</xpath>
<value>
<Mass>0.6</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_ZipplebackDragonScales"]/stuffProps/statFactors</xpath>
<value>
<Mass>0.8</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_RazorwhipDragonScales"]/stuffProps/statFactors</xpath>
<value>
<Mass>1.2</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_TripleStrykeDragonScales"]/stuffProps/statFactors</xpath>
<value>
<Mass>1.6</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_SkrillDragonScales"]/stuffProps/statFactors</xpath>
<value>
<Mass>0.8</Mass>
</value>
</li>
</operations>
</Operation>

<Operation Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationAdd">
<xpath>*/ThingDef[defName = "RttR_PatchedDragonScales"]/stuffProps/statFactors</xpath>
<value>
<Mass>1</Mass>
</value>
</li>
</operations>
</Operation>

</Patch>
Loading

0 comments on commit 91cdabf

Please sign in to comment.