Skip to content

Commit

Permalink
Merge pull request #2881 from CombatExtended-Continued/RimElves-Patch
Browse files Browse the repository at this point in the history
Patch Rim-Elves
  • Loading branch information
N7Huntsman authored Nov 22, 2023
2 parents a2b6942 + fbb1926 commit 4b2175d
Show file tree
Hide file tree
Showing 5 changed files with 505 additions and 0 deletions.
55 changes: 55 additions & 0 deletions Patches/Rim-Elves/Ammo_Elves.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationFindMod">
<mods>
<li>Rim-Elves</li>
</mods>
<match Class="PatchOperationSequence">
<operations>

<li Class="PatchOperationAdd">
<xpath>Defs</xpath>
<value>

<!-- Custom Ammoset -->
<CombatExtended.AmmoSetDef>
<defName>AmmoSet_ChargedGreatArrow</defName>
<label>plasteel great arrows</label>
<ammoTypes>
<Ammo_GreatArrow_Plasteel>Projectile_ChargedGreatArrow_Plasteel</Ammo_GreatArrow_Plasteel>
</ammoTypes>
</CombatExtended.AmmoSetDef>

<!-- Custom Projectile -->
<ThingDef ParentName="BaseGreatArrowProjectile">
<defName>Projectile_ChargedGreatArrow_Plasteel</defName>
<label>charged great arrow</label>
<graphicData>
<texPath>Things/Projectile/Arrows/Arrow_Plasteel</texPath>
<graphicClass>Graphic_Single</graphicClass>
</graphicData>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<damageAmountBase>19</damageAmountBase>
<secondaryDamage>
<li>
<def>Bomb_Secondary</def>
<amount>6</amount>
</li>
</secondaryDamage>
<speed>151</speed>
<armorPenetrationSharp>16</armorPenetrationSharp>
<armorPenetrationBlunt>57.6</armorPenetrationBlunt>
<preExplosionSpawnChance>0.25</preExplosionSpawnChance><!-- 40 arrows per resource -->
<preExplosionSpawnThingDef>Ammo_GreatArrow_Plasteel</preExplosionSpawnThingDef>
</projectile>
</ThingDef>

</value>
</li>

</operations>
</match>
</Operation>

</Patch>
23 changes: 23 additions & 0 deletions Patches/Rim-Elves/GeneDefs_Elves.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationFindMod">
<mods>
<li>Rim-Elves</li>
</mods>
<match Class="PatchOperationSequence">
<operations>

<li Class="PatchOperationReplace">
<xpath>Defs/GeneDef[defName="Size_Gigantism"]/statOffsets/CarryingCapacity</xpath>
<value>
<CarryWeight>15</CarryWeight>
<CarryBulk>10</CarryBulk>
</value>
</li>

</operations>
</match>
</Operation>

</Patch>
188 changes: 188 additions & 0 deletions Patches/Rim-Elves/PawnKinds_Elves.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,188 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationFindMod">
<mods>
<li>Rim-Elves</li>
</mods>
<match Class="PatchOperationSequence">
<operations>

<!-- Medieval Pawnkinds -->
<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RE_Elven_Archer"] </xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>14</min>
<max>24</max>
</primaryMagazineCount>
<sidearms>
<li>
<sidearmMoney>
<min>80</min>
<max>160</max>
</sidearmMoney>
<weaponTags>
<li>NeolithicMeleeBasic</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>

<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RE_Elven_Levy"] </xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<shieldMoney>
<min>80</min>
<max>110</max>
</shieldMoney>
<shieldTags>
<li>TribalShield</li>
</shieldTags>
<shieldChance>0.25</shieldChance>
</li>
</value>
</li>

<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RE_Elven_Swordsman"] </xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<shieldMoney>
<min>100</min>
<max>140</max>
</shieldMoney>
<shieldTags>
<li>TribalShield</li>
</shieldTags>
<shieldChance>0.25</shieldChance>
</li>
</value>
</li>

<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RE_Elven_Ranger"] </xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>20</min>
<max>40</max>
</primaryMagazineCount>
<sidearms>
<li>
<sidearmMoney>
<min>120</min>
<max>180</max>
</sidearmMoney>
<weaponTags>
<li>MedievalMeleeBasic</li>
<li>NeolithicMeleeDecent</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>

<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="RE_Elven_Knight"] </xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<shieldMoney>
<min>120</min>
<max>180</max>
</shieldMoney>
<shieldTags>
<li>TribalShield</li>
</shieldTags>
<shieldChance>0.4</shieldChance>
</li>
</value>
</li>

<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="Elven_Supreme_NobleRanged"] </xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>20</min>
<max>40</max>
</primaryMagazineCount>
<sidearms>
<li>
<sidearmMoney>
<min>150</min>
<max>240</max>
</sidearmMoney>
<weaponTags>
<li>ElvenMedievalMelee</li>
<li>MedievalMeleeAdvanced</li>
</weaponTags>
</li>
</sidearms>
</li>
</value>
</li>

<!-- Spacer Pawnkinds -->
<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[@Name="ElvenSoldierBase" or @Name="ElvenKnightBase"] </xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>6</min>
<max>10</max>
</primaryMagazineCount>
</li>
</value>
</li>

<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="Elven_Soldier_Grenadier"] </xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>6</min>
<max>12</max>
</primaryMagazineCount>
<sidearms>
<li>
<generateChance>0.8</generateChance>
<sidearmMoney>
<min>10</min>
<max>100</max>
</sidearmMoney>
<weaponTags>
<li>CE_Sidearm</li>
</weaponTags>
<magazineCount>
<min>3</min>
<max>6</max>
</magazineCount>
</li>
</sidearms>
</li>
</value>
</li>

<li Class="PatchOperationAddModExtension">
<xpath>Defs/PawnKindDef[defName="Elven_Soldier_Lancer"] </xpath>
<value>
<li Class="CombatExtended.LoadoutPropertiesExtension">
<primaryMagazineCount>
<min>20</min>
<max>40</max>
</primaryMagazineCount>
</li>
</value>
</li>

</operations>
</match>
</Operation>

</Patch>
Loading

0 comments on commit 4b2175d

Please sign in to comment.