Skip to content

Commit

Permalink
B19 update
Browse files Browse the repository at this point in the history
  • Loading branch information
XeoNovaDan committed Aug 28, 2018
1 parent 2c42b91 commit 8f7296f
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 9 deletions.
14 changes: 14 additions & 0 deletions About/ModSync.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<ModSyncNinjaData>
<ID>1cae1353-13f1-47db-8e93-4f7ffd83e4ac</ID>
<ModName>[XND] Stuffed Flaks</ModName>
<Version>1.2.1</Version>
<SaveBreaking>False</SaveBreaking>
<Host name="Github">
<Owner>XeoNovaDan</Owner>
<Project>StuffedFlaks</Project>
<AboutDir>About</AboutDir>
<DownloadFrom>ModSyncMainPage</DownloadFrom>
<Branch>master</Branch>
</Host>
</ModSyncNinjaData>
11 changes: 11 additions & 0 deletions Patches/Core/Scenarios/Scenarios_Classic.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>

<Operation Class="PatchOperationAdd">
<xpath>*/ScenarioDef[defName="Crashlanded"]/scenario/parts/li[thingDef="Apparel_FlakPants" or thingDef="Apparel_FlakVest"]</xpath>
<value>
<stuff>Steel</stuff>
</value>
</Operation>

</Patch>
45 changes: 36 additions & 9 deletions Patches/Core/ThingDefs_Misc/Apparel_Various.xml
Original file line number Diff line number Diff line change
@@ -1,31 +1,41 @@
<?xml version="1.0" encoding="UTF-8"?>
<Patch>

<!-- Patch both -->
<!-- Patch all -->
<Operation Class="PatchOperationRemove">
<xpath>/Defs/ThingDef[defName="Apparel_FlakVest" or defName="Apparel_FlakPants"]/costList/Steel</xpath>
<xpath>/Defs/ThingDef[defName="Apparel_FlakVest" or defName="Apparel_FlakPants" or defName="Apparel_FlakJacket"]/costList/Steel</xpath>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="Apparel_FlakVest" or defName="Apparel_FlakPants"]</xpath>
<value>
<costStuffCount>75</costStuffCount>
<costStuffCount>60</costStuffCount>
<stuffCategories>
<li>Metallic</li>
</stuffCategories>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="Apparel_FlakJacket"]</xpath>
<value>
<costStuffCount>70</costStuffCount>
<stuffCategories>
<li>Metallic</li>
</stuffCategories>
</value>
</Operation>

<Operation Class="PatchOperationRemove">
<xpath>/Defs/ThingDef[defName="Apparel_FlakVest" or defName="Apparel_FlakPants"]/statBases/ArmorRating_Sharp</xpath>
<xpath>/Defs/ThingDef[defName="Apparel_FlakVest" or defName="Apparel_FlakPants" or defName="Apparel_FlakJacket"]/statBases/ArmorRating_Sharp</xpath>
</Operation>

<Operation Class="PatchOperationRemove">
<xpath>/Defs/ThingDef[defName="Apparel_FlakVest" or defName="Apparel_FlakPants"]/statBases/ArmorRating_Blunt</xpath>
<xpath>/Defs/ThingDef[defName="Apparel_FlakVest" or defName="Apparel_FlakPants" or defName="Apparel_FlakJacket"]/statBases/ArmorRating_Blunt</xpath>
</Operation>

<Operation Class="PatchOperationRemove">
<xpath>/Defs/ThingDef[defName="Apparel_FlakVest" or defName="Apparel_FlakPants"]/statBases/ArmorRating_Heat</xpath>
<xpath>/Defs/ThingDef[defName="Apparel_FlakVest" or defName="Apparel_FlakPants" or defName="Apparel_FlakJacket"]/statBases/ArmorRating_Heat</xpath>
</Operation>

<Operation Class="PatchOperationReplace">
Expand All @@ -35,16 +45,23 @@
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[defName="Apparel_FlakJacket"]/statBases/MaxHitPoints</xpath>
<value>
<MaxHitPoints>160</MaxHitPoints>
</value>
</Operation>

<Operation Class="PatchOperationRemove">
<xpath>/Defs/ThingDef[defName="Apparel_FlakVest" or defName="Apparel_FlakPants"]/colorGenerator</xpath>
<xpath>/Defs/ThingDef[defName="Apparel_FlakVest" or defName="Apparel_FlakPants" or defName="Apparel_FlakJacket"]/colorGenerator</xpath>
</Operation>

<!-- Patch vest -->

<Operation Class="PatchOperationAdd">
<xpath>*/ThingDef[defName="Apparel_FlakVest"]/statBases</xpath>
<value>
<StuffEffectMultiplierArmor>0.9</StuffEffectMultiplierArmor>
<StuffEffectMultiplierArmor>1</StuffEffectMultiplierArmor>
</value>
</Operation>

Expand All @@ -53,7 +70,17 @@
<Operation Class="PatchOperationAdd">
<xpath>*/ThingDef[defName="Apparel_FlakPants"]/statBases</xpath>
<value>
<StuffEffectMultiplierArmor>0.5</StuffEffectMultiplierArmor>
<StuffEffectMultiplierArmor>0.4</StuffEffectMultiplierArmor>
</value>
</Operation>

<!-- Patch jacket -->

<!-- actually a slight buff since vanilla flak jacket is trash :V -->
<Operation Class="PatchOperationAdd">
<xpath>*/ThingDef[defName="Apparel_FlakJacket"]/statBases</xpath>
<value>
<StuffEffectMultiplierArmor>0.6</StuffEffectMultiplierArmor>
</value>
</Operation>

Expand Down

0 comments on commit 8f7296f

Please sign in to comment.