Skip to content

Commit

Permalink
Big and Small Weapons Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
ViralReaction committed Feb 7, 2024
1 parent 91f6f4f commit 2489009
Show file tree
Hide file tree
Showing 4 changed files with 592 additions and 0 deletions.
201 changes: 201 additions & 0 deletions Patches/Big and Small/Big and Small Weapons/BS_Medieval_Weapons.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,201 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationFindMod">
<mods>
<li>Big and Small - Weapons</li>
</mods>

<match Class="PatchOperationSequence">
<operations>

<!-- ====== Giant Medieval Hammer ====== -->
<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="BS_GiantMedievalHammer"]/statBases</xpath>
<value>
<Bulk>35</Bulk>
<MeleeCounterParryBonus>0.04</MeleeCounterParryBonus>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BS_GiantMedievalHammer"]/statBases/WorkToMake</xpath>
<value>
<WorkToMake>2700</WorkToMake>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="BS_GiantMedievalHammer"]/equippedStatOffsets</xpath>
<value>
<MeleeCritChance>2</MeleeCritChance>
<MeleeParryChance>0.04</MeleeParryChance>
<MeleeDodgeChance>0.4</MeleeDodgeChance>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="BS_GiantMedievalHammer"]/weaponTags</xpath>
<value>
<li>CE_OneHandedWeapon</li>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BS_GiantMedievalHammer"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>handle</label>
<capacities>
<li>Poke</li>
</capacities>
<power>19</power>
<cooldownTime>2.95</cooldownTime>
<chanceFactor>0.10</chanceFactor>
<armorPenetrationBlunt>7.5</armorPenetrationBlunt>
<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>head</label>
<capacities>
<li>Demolish</li>
</capacities>
<power>34</power>
<cooldownTime>3.23</cooldownTime>
<chanceFactor>0.90</chanceFactor>
<armorPenetrationBlunt>30</armorPenetrationBlunt>
<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
</li>
</tools>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BS_GiantScythe"]/costStuffCount</xpath>
<value>
<costStuffCount>160</costStuffCount>
</value>
</li>

<!-- ====== Giant Scythe ====== -->
<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="BS_GiantScythe"]/statBases</xpath>
<value>
<Bulk>50</Bulk>
<MeleeCounterParryBonus>1.85</MeleeCounterParryBonus>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BS_GiantScythe"]/statBases/WorkToMake</xpath>
<value>
<WorkToMake>3600</WorkToMake>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="BS_GiantScythe"]/equippedStatOffsets</xpath>
<value>
<MeleeCritChance>0.02</MeleeCritChance>
<MeleeParryChance>0.18</MeleeParryChance>
<MeleeDodgeChance>2.5</MeleeDodgeChance>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BS_GiantScythe"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>handle</label>
<capacities>
<li>Poke</li>
</capacities>
<power>15</power>
<cooldownTime>2.95</cooldownTime>
<chanceFactor>0.15</chanceFactor>
<armorPenetrationBlunt>5.65</armorPenetrationBlunt>
<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>point</label>
<capacities>
<li>Stab</li>
</capacities>
<power>37</power>
<cooldownTime>4.2</cooldownTime>
<armorPenetrationBlunt>12.96</armorPenetrationBlunt>
<armorPenetrationSharp>25.92</armorPenetrationSharp>
<linkedBodyPartsGroup>Point</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>edge</label>
<capacities>
<li>Cut</li>
</capacities>
<power>45</power>
<cooldownTime>10.1</cooldownTime>
<armorPenetrationBlunt>12.1</armorPenetrationBlunt>
<armorPenetrationSharp>2.69</armorPenetrationSharp>
<linkedBodyPartsGroup>Edge</linkedBodyPartsGroup>
</li>
</tools>
</value>
</li>

<!-- ====== Oni Club ====== -->
<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="BS_OniClub"]/statBases</xpath>
<value>
<Bulk>40</Bulk>
<MeleeCounterParryBonus>0.13</MeleeCounterParryBonus>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="BS_OniClub"]</xpath>
<value>
<equippedStatOffsets>
<MeleeCritChance>2</MeleeCritChance>
<MeleeParryChance>0.1</MeleeParryChance>
<MeleeDodgeChance>0.6</MeleeDodgeChance>
</equippedStatOffsets>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BS_OniClub"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>handle</label>
<capacities>
<li>Poke</li>
</capacities>
<power>22</power>
<cooldownTime>3.09</cooldownTime>
<chanceFactor>0.10</chanceFactor>
<armorPenetrationBlunt>9</armorPenetrationBlunt>
<linkedBodyPartsGroup>Handle</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>head</label>
<capacities>
<li>Demolish</li>
</capacities>
<power>60</power>
<cooldownTime>4.94</cooldownTime>
<chanceFactor>0.90</chanceFactor>
<armorPenetrationBlunt>45</armorPenetrationBlunt>
<linkedBodyPartsGroup>Head</linkedBodyPartsGroup>
</li>
</tools>
</value>
</li>

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

</Patch>
108 changes: 108 additions & 0 deletions Patches/Big and Small/Big and Small Weapons/BS_Modern.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationFindMod">
<mods>
<li>Big and Small - Weapons</li>
</mods>

<match Class="PatchOperationSequence">
<operations>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="BS_GiantMusket"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>stock</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>27</power>
<cooldownTime>2.02</cooldownTime>
<chanceFactor>1.5</chanceFactor>
<armorPenetrationBlunt>11.25</armorPenetrationBlunt>
<linkedBodyPartsGroup>Stock</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>barrel</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>22</power>
<cooldownTime>2.20</cooldownTime>
<armorPenetrationBlunt>9</armorPenetrationBlunt>
<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>muzzle</label>
<capacities>
<li>Poke</li>
</capacities>
<power>27</power>
<cooldownTime>2.02</cooldownTime>
<armorPenetrationBlunt>11.25</armorPenetrationBlunt>
<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
</li>
</tools>
</value>
</li>

<li Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>BS_GiantMusket</defName>
<statBases>
<Mass>10</Mass>
<RangedWeapon_Cooldown>0.93</RangedWeapon_Cooldown>
<SightsEfficiency>0.9</SightsEfficiency>
<ShotSpread>0.03</ShotSpread>
<SwayFactor>1.68</SwayFactor>
<Bulk>30</Bulk>
<WorkToMake>36000</WorkToMake>
</statBases>
<costList>
<Steel>150</Steel>
<ComponentIndustrial>6</ComponentIndustrial>
</costList>
<Properties>
<recoilAmount>2.53</recoilAmount>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_MiniCannonBall_Round</defaultProjectile>
<warmupTime>1.26</warmupTime>
<range>55</range>
<soundCast>BS_GiantMusketShot</soundCast>
<soundCastTail>GunTail_Heavy</soundCastTail>
<muzzleFlashScale>13</muzzleFlashScale>
</Properties>
<AmmoUser>
<magazineSize>1</magazineSize>
<reloadTime>7.11</reloadTime>
<ammoSet>AmmoSet_MiniCannonBall</ammoSet>
</AmmoUser>
<FireModes>
<aiAimMode>AimedShot</aiAimMode>
</FireModes>
<weaponTags>
<li>SimpleGun</li>
<li>CE_AI_SR</li>
</weaponTags>
<researchPrerequisite>CE_Gunpowder</researchPrerequisite>
<AllowWithRunAndGun>false</AllowWithRunAndGun>
</li>

<li Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[defName="BS_GiantMusket"]</xpath>
<value>
<li Class="CombatExtended.GunDrawExtension">
<DrawSize>2,2</DrawSize>
<DrawOffset>0.25,0.0</DrawOffset>
<CasingOffset>-0.1,0.1</CasingOffset>
</li>
</value>
</li>

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

</Patch>
Loading

0 comments on commit 2489009

Please sign in to comment.