Skip to content

Commit

Permalink
Merge pull request #3659 from Tostov/Harana-Patcch
Browse files Browse the repository at this point in the history
Harana patch
  • Loading branch information
N7Huntsman authored Jan 28, 2025
2 parents 57ed690 + e73083b commit cd37c9e
Show file tree
Hide file tree
Showing 5 changed files with 257 additions and 0 deletions.
1 change: 1 addition & 0 deletions LoadFolders.xml
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@
<li IfModActive="rimsenal.feral">ModPatches/Rimsenal Feral</li>
<li IfModActive="rimsenal.security">ModPatches/Rimsenal Security</li>
<li IfModActive="Rimsenal.Askbarn">ModPatches/Rimsenal Xenotype Pack - Askbarn</li>
<li IfModActive="Rimsenal.Harana">ModPatches/Rimsenal Xenotype Pack - Harana</li>
<li IfModActive="SirMashedPotato.DarkDescent">ModPatches/Rimworld - The Dark Descent</li>
<li IfModActive="Mlie.RRUESContactLightArmory">ModPatches/Risk of Rain UES Contact Light Armory</li>
<li IfModActive="Ghastly.RoboticServitude">ModPatches/Robotic Servitude</li>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationFindMod">
<mods>
<li>Rimsenal - Core</li>
</mods>
<match Class="PatchOperationSequence">
<operations>

<!-- ========== Shock Suit =========== -->

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Apparel_Shocksuit"]/statBases/Mass</xpath>
<value>
<Mass>60</Mass>
<Bulk>90</Bulk>
<WornBulk>18</WornBulk>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Apparel_Shocksuit"]/costList/Plasteel</xpath>
<value>
<Plasteel>180</Plasteel>
<DevilstrandCloth>40</DevilstrandCloth>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="Apparel_Shocksuit"]/apparel/bodyPartGroups</xpath>
<value>
<li>Hands</li>
<li>Feet</li>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Apparel_Shocksuit"]/equippedStatOffsets/MoveSpeed</xpath>
<value>
<CarryWeight>90</CarryWeight>
<CarryBulk>10</CarryBulk>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Apparel_Shocksuit"]/statBases/ArmorRating_Sharp</xpath>
<value>
<ArmorRating_Sharp>17</ArmorRating_Sharp>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Apparel_Shocksuit"]/statBases/ArmorRating_Blunt</xpath>
<value>
<ArmorRating_Blunt>51</ArmorRating_Blunt>
</value>
</li>

<li Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[defName="Apparel_Shocksuit"]</xpath>
<value>
<li Class="CombatExtended.PartialArmorExt">
<stats>
<li>
<ArmorRating_Sharp>0.90</ArmorRating_Sharp>
<parts>
<li>Neck</li>
<li>Arm</li>
<li>Leg</li>
</parts>
</li>
<li>
<ArmorRating_Blunt>0.90</ArmorRating_Blunt>
<parts>
<li>Neck</li>
<li>Arm</li>
<li>Leg</li>
</parts>
</li>
<li>
<ArmorRating_Sharp>0.70</ArmorRating_Sharp>
<parts>
<li>Hand</li>
</parts>
</li>
<li>
<ArmorRating_Blunt>0.70</ArmorRating_Blunt>
<parts>
<li>Hand</li>
</parts>
</li>
</stats>
</li>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Apparel_Shocksuit"]/verbs</xpath>
<value>
<verbs>
<li Class="CombatExtended.VerbPropertiesCE">
<label>launch microwave grenade</label>
<verbClass>CombatExtended.Verb_LaunchProjectileStaticCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<onlyManualCast>True</onlyManualCast>
<warmupTime>1.0</warmupTime>
<range>10</range>
<minRange>3</minRange>
<ai_IsBuildingDestroyer>false</ai_IsBuildingDestroyer>
<soundCast>RS_ShotGrendel</soundCast>
<drawHighlightWithLineOfSight>true</drawHighlightWithLineOfSight>
<targetParams>
<canTargetLocations>true</canTargetLocations>
</targetParams>
<ignorePartialLoSBlocker>true</ignorePartialLoSBlocker>
<defaultProjectile>Proj_BaegYa</defaultProjectile>
<rangedFireRulepack>Combat_RangedFire_Thrown</rangedFireRulepack>
</li>
</verbs>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Apparel_Shocksuit"]/comps/li[@Class="CompProperties_ApparelReloadable"]/ammoDef</xpath>
<value>
<ammoDef>YP_BaegYa</ammoDef>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="Apparel_Shocksuit"]/comps/li[@Class="CompProperties_ApparelReloadable"]/ammoCountPerCharge</xpath>
<value>
<ammoCountPerCharge>1</ammoCountPerCharge>
</value>
</li>

</operations>
</match>
</Operation>
</Patch>
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>
<!-- ========== Short Jump ========== -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/AbilityDef[defName="Cast_Short_Jump"]/verbProperties/range</xpath>
<value>
<range>13.75</range>
</value>
</Operation>

<!-- ========== Agile Fighter ========== -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/GeneDef[defName="AgileStriker"]/statOffsets/MeleeDodgeChance</xpath>
<value>
<MeleeDodgeChance>0.16</MeleeDodgeChance> <!-- Gives 1/3 the bonus of 'Nimble' trait.-->
</value>
</Operation>

</Patch>
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
<?xml version="1.0" encoding="utf-8"?>
<Patch>

<Operation Class="PatchOperationFindMod">
<mods>
<li>Rimsenal - Core</li>
</mods>
<match Class="PatchOperationSequence">
<operations>
<!-- ========== YP CQC Gun =========== -->

<li Class="CombatExtended.PatchOperationMakeGunCECompatible">
<defName>YP_Seu</defName>
<statBases>
<WorkToMake>50500</WorkToMake>
<SightsEfficiency>1.1</SightsEfficiency>
<ShotSpread>0.3</ShotSpread>
<SwayFactor>1.5</SwayFactor>
<Bulk>9.7</Bulk>
<Mass>3.52</Mass>
<RangedWeapon_Cooldown>0.2</RangedWeapon_Cooldown>
</statBases>
<Properties>
<recoilAmount>0.75</recoilAmount>
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>Bullet_RifleYP</defaultProjectile>
<warmupTime>0.5</warmupTime>
<burstShotCount>10</burstShotCount>
<ticksBetweenBurstShots>3</ticksBetweenBurstShots>
<range>18</range>
<soundCast>RS_ShotShard</soundCast>
<soundCastTail>GunTail_Light</soundCastTail>
<muzzleFlashScale>4</muzzleFlashScale>
</Properties>
<AmmoUser>
<magazineSize>40</magazineSize>
<reloadTime>4.5</reloadTime>
<ammoSet>AmmoSet_RifleYP</ammoSet>
</AmmoUser>
<FireModes>
<aimedBurstShotCount>5</aimedBurstShotCount>
<aiUseBurstMode>FALSE</aiUseBurstMode>
<aiAimMode>Snapshot</aiAimMode>
</FireModes>
<weaponTags>
<li>CE_AI_AR</li>
<li>YPGun</li>
</weaponTags>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="YP_Seu"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>stock</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>8</power>
<cooldownTime>1.55</cooldownTime>
<chanceFactor>1.5</chanceFactor>
<armorPenetrationBlunt>2.755</armorPenetrationBlunt>
<linkedBodyPartsGroup>Stock</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>barrel</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>5</power>
<cooldownTime>2.02</cooldownTime>
<armorPenetrationBlunt>1.630</armorPenetrationBlunt>
<linkedBodyPartsGroup>Barrel</linkedBodyPartsGroup>
</li>
<li Class="CombatExtended.ToolCE">
<label>muzzle</label>
<capacities>
<li>Poke</li>
</capacities>
<power>8</power>
<cooldownTime>1.55</cooldownTime>
<armorPenetrationBlunt>2.755</armorPenetrationBlunt>
<linkedBodyPartsGroup>Muzzle</linkedBodyPartsGroup>
</li>
</tools>
</value>
</li>

</operations>
</match>
</Operation>
</Patch>
2 changes: 2 additions & 0 deletions SupportedThirdPartyMods.md
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,8 @@ Rimsenal - Federation Faction Pack |
Rimsenal - Feral Faction Pack |
Rimsenal - Security Pack |
Rimsenal - Spacer Faction Pack |
Rimsenal Xenotype Pack - Askbarn |
Rimsenal Xenotype Pack - Harana |
RimTraits - General Traits |
RimTraits – Medieval Talents |
Rimworld - The Dark Descent |
Expand Down

0 comments on commit cd37c9e

Please sign in to comment.