Skip to content
This repository has been archived by the owner on Apr 14, 2020. It is now read-only.

Commit

Permalink
Merge pull request #879 from Tostov/Rabbie-CE-Patch
Browse files Browse the repository at this point in the history
Rabbie CE Patch
  • Loading branch information
LockdownX7 authored Nov 10, 2019
2 parents 50fa5c3 + 7a44217 commit 3de3162
Show file tree
Hide file tree
Showing 7 changed files with 1,042 additions and 0 deletions.
111 changes: 111 additions & 0 deletions Patches/Rabbie The Moonrabbit/Bodies/Rabbie_Bodytype.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<operations>

<!--Rabbie Bodytype-->

<li Class="PatchOperationFindMod">
<mods>
<li>Rabbie The Moonrabbit</li>
</mods>
<match Class="PatchOperationSequence">
<operations>
<!--Rabbie-->
<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Rabbie"]/corePart/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Rabbie"]/corePart/parts/li[def="RB_RabbitTail"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Rabbie"]/corePart/parts/li[def="Neck"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Rabbie"]/corePart/parts/li[def="Neck"]/parts/li[def="Head"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Rabbie"]/corePart/parts/li[def="Neck"]/parts/li[def="Head"]/parts/li[def="Nose"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Rabbie"]/corePart/parts/li[def="Neck"]/parts/li[def="Head"]/parts/li[def="Jaw"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Rabbie"]/corePart/parts/li[def="Shoulder"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Rabbie"]/corePart/parts/li[def="Shoulder"]/parts/li[def="Arm"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Rabbie"]/corePart/parts/li[def="Shoulder"]/parts/li[def="Arm"]/parts/li[def="Hand"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Rabbie"]/corePart/parts/li[def="Shoulder"]/parts/li[def="Arm"]/parts/li[def="Hand"]/parts/li[def="Finger"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Rabbie"]/corePart/parts/li[def="Leg"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Rabbie"]/corePart/parts/li[def="Leg"]/parts/li[def="Foot"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Rabbie"]/corePart/parts/li[def="Leg"]/parts/li[def="Foot"]/parts/li[def="Toe"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

</operations>
</match>
</li>
</operations>
</Operation>
</Patch>
212 changes: 212 additions & 0 deletions Patches/Rabbie The Moonrabbit/PawnKindDefs/RB_PawnKind.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,212 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationFindMod">

<mods><li>Rabbie The Moonrabbit</li></mods>

<match Class="PatchOperationSequence">
<operations>
<!--Regular-->

<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RB_EnergySupply" or
defName="RB_Technician" or
defName="RB_Worker" or
defName="RB_Wanderer" or
defName="RB_SubOfficer" or
defName="RB_EliteOfficer"
]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>2</min>
<max>3</max>
</primaryMagazineCount>
<sidearms>
<li>
<generateChance>0.2</generateChance>
<sidearmMoney>
<min>20</min>
<max>120</max>
</sidearmMoney>
<weaponTags>
<li>CE_Sidearm_Melee</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>

<!--Military-->

<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RB_FRifle"]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>6</min>
<max>8</max>
</primaryMagazineCount>
<sidearms>
<li>
<generateChance>1</generateChance>
<sidearmMoney>
<min>50</min>
<max>200</max>
</sidearmMoney>
<weaponTags>
<li>CE_Sidearm_Melee</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>

<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RB_FSniper"]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>3</min>
<max>5</max>
</primaryMagazineCount>
<sidearms>
<li>
<generateChance>1</generateChance>
<sidearmMoney>
<min>60</min>
<max>150</max>
</sidearmMoney>
<weaponTags>
<li>CE_Sidearm_Melee</li>
</weaponTags>
</li>
<li>
<generateChance>0.5</generateChance>
<sidearmMoney>
<min>50</min>
<max>250</max>
</sidearmMoney>
<weaponTags>
<li>CE_Sidearm</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>

<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RB_FMachinegunner"]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>4</min>
<max>6</max>
</primaryMagazineCount>
<sidearms>
<li>
<generateChance>1</generateChance>
<sidearmMoney>
<min>50</min>
<max>200</max>
</sidearmMoney>
<weaponTags>
<li>CE_Sidearm_Melee</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>

<!--Replace minigun with MG Catergory-->

<li Class="PatchOperationReplace">
<xpath>Defs/PawnKindDef[defName="RB_FMachinegunner"]/weaponTags</xpath>
<value>
<weaponTags>
<li>CE_MachineGun</li>
</weaponTags>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/PawnKindDef[defName="RB_FMachinegunner"]/weaponMoney</xpath>
<value>
<weaponMoney>
<min>500</min>
<max>600</max>
</weaponMoney>
</value>
</li>

<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RB_FSapper"]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>10</min>
<max>30</max>
</primaryMagazineCount>
<shieldMoney>
<min>200</min>
<max>600</max>
</shieldMoney>
<shieldTags>
<li>OutlanderShield</li>
</shieldTags>
<shieldChance>0.5</shieldChance>
<forcedSidearm>
<sidearmMoney>
<min>150</min>
<max>350</max>
</sidearmMoney>
<weaponTags>
<li>CE_Sidearm</li>
</weaponTags>
<magazineCount>
<min>0</min>
<max>1</max>
</magazineCount>
</forcedSidearm>
</li>
</value>
</li>

<!--Advanced-->

<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RB_RGunner"]</xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>6</min>
<max>8</max>
</primaryMagazineCount>
<sidearms>
<li>
<generateChance>0.5</generateChance>
<sidearmMoney>
<min>120</min>
<max>500</max>
</sidearmMoney>
<weaponTags>
<li>CE_Sidearm_Melee</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>

</operations>
</match>
</li>
</operations>
</Operation>
</Patch>
61 changes: 61 additions & 0 deletions Patches/Rabbie The Moonrabbit/Scenario/RB_Scenario.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationFindMod">

<mods><li>Rabbie The Moonrabbit</li></mods>

<match Class="PatchOperationSequence">
<operations>

<li Class="PatchOperationAdd">
<xpath>Defs/ScenarioDef[defName="RB_Scenario"]/scenario/parts</xpath>
<value>
<li Class="ScenPart_StartingThing_Defined">
<def>StartingThing_Defined</def>
<thingDef>Ammo_46x30mm_FMJ</thingDef>
<count>90</count>
</li>
<li Class="ScenPart_StartingThing_Defined">
<def>StartingThing_Defined</def>
<thingDef>Ammo_303British_FMJ</thingDef>
<count>100</count>
</li>
<li Class="ScenPart_StartingThing_Defined">
<def>StartingThing_Defined</def>
<thingDef>Ammo_44Magnum_FMJ</thingDef>
<count>60</count>
</li>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ScenarioDef[defName="RB_Scenario"]/scenario/parts/li[thingDef="Apparel_FlakVest"]</xpath>
<value>
<li Class="ScenPart_StartingThing_Defined">
<def>StartingThing_Defined</def>
<thingDef>Apparel_FlakVest</thingDef>
<stuff>Steel</stuff>
<count>1</count>
</li>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ScenarioDef[defName="RB_Scenario"]/scenario/parts/li[thingDef="Apparel_AdvancedHelmet"]</xpath>
<value>
<li Class="ScenPart_StartingThing_Defined">
<def>StartingThing_Defined</def>
<thingDef>Apparel_AdvancedHelmet</thingDef>
<count>1</count>
</li>
</value>
</li>

</operations>
</match>
</li>
</operations>
</Operation>
</Patch>
Loading

0 comments on commit 3de3162

Please sign in to comment.