Skip to content

Commit

Permalink
Merge pull request #3498 from CombatExtended-Continued/K4G-Update
Browse files Browse the repository at this point in the history
Update [K4G] Empires of Old
  • Loading branch information
N7Huntsman authored Oct 31, 2024
2 parents 5566b2f + 3671b15 commit 18e1541
Show file tree
Hide file tree
Showing 8 changed files with 1,327 additions and 430 deletions.
2 changes: 1 addition & 1 deletion LoadFolders.xml
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
<li IfModActive="Mlie.JinRohKerberosPanzerCopArmor">ModPatches/Jin-Roh Kerberos Panzer Cop Armor</li>
<li IfModActive="K4G.Core">ModPatches/K4G Empires of Old - Core</li>
<li IfModActive="K4G.Guild">ModPatches/K4G Empires of Old - Engineers Institute</li>
<li IfModActive="K4G.K4G.Fellowship">ModPatches/K4G Empires of Old - The Alekeepers</li>
<li IfModActive="K4G.Fellowship">ModPatches/K4G Empires of Old - The Alekeepers</li>
<li IfModActive="K4G.Sultanate">ModPatches/K4G Empires of Old - The Faceless Sultainate</li>
<li IfModActive="K4G.Legion">ModPatches/K4G Empires of Old - The Polluted Legion</li>
<li IfModActive="K4G.Dynasty">ModPatches/K4G Empires of Old - The Rising Sun</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<!-- Thawb, Kimono -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[
@Name="K4GThawb" or
@Name="K4GKimono"
@Name="K4GThawb" or
@Name="K4GKimono"
]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<Bulk>1.5</Bulk>
Expand All @@ -14,14 +14,31 @@
</value>
</Operation>

<!-- Tattered Rags -->
<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="K4G_Apparel_TatteredRags"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<Bulk>0.5</Bulk>
<WornBulk>0</WornBulk>
</value>
</Operation>

<!-- Headgear -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[
@Name="K4GTurban" or
@Name="K4GHeadScarf" or
defName="K4G_Apparel_TricornHat" or
defName="K4G_Apparel_ConeHat" or
defName="K4G_Apparel_HoodedMask"
@Name="K4GTurban" or
@Name="K4GHeadScarf" or
@Name="K4GUshanka" or
defName="K4G_Apparel_TricornHat" or
defName="K4G_Apparel_ConeHat" or
defName="K4G_Apparel_HoodedMask" or
defName="K4G_Apparel_Fedora" or
defName="K4G_Apparel_Flatcap" or
defName="K4G_Apparel_WinterHood" or
defName="K4G_Apparel_Balaclava" or
defName="K4G_Apparel_PatrolCap" or
defName="K4G_Apparel_BaseballCap" or
defName="K4G_Apparel_SheriffHat"
]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<StuffEffectMultiplierArmor>2</StuffEffectMultiplierArmor>
Expand Down Expand Up @@ -50,9 +67,9 @@
<!-- Goggled & Advanced Outlander Helmet -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[
defName="K4G_Apparel_AdvancedOutlanderHelmet" or
defName="K4G_Apparel_GoggledHelmet" or
defName="K4G_Apparel_LegionaryHelmet"
@Name="LegionaryHelmet" or
defName="K4G_Apparel_AdvancedOutlanderHelmet" or
defName="K4G_Apparel_GoggledHelmet"
]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<StuffEffectMultiplierArmor>8</StuffEffectMultiplierArmor>
Expand All @@ -63,15 +80,61 @@

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[
defName="K4G_Apparel_AdvancedOutlanderHelmet" or
defName="K4G_Apparel_GoggledHelmet" or
defName="K4G_Apparel_LegionaryHelmet"
@Name="LegionaryHelmet" or
defName="K4G_Apparel_AdvancedOutlanderHelmet" or
defName="K4G_Apparel_GoggledHelmet"
]/stuffCategories/li[.="Metallic"]</xpath>
<value>
<li>Steeled</li>
</value>
</Operation>

<!-- Riot Helmet -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="K4G_Apparel_RiotHelmet"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<StuffEffectMultiplierArmor>6</StuffEffectMultiplierArmor>
<Bulk>5</Bulk>
<WornBulk>2.5</WornBulk>
</value>
</Operation>

<Operation Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[defName="K4G_Apparel_RiotHelmet"]</xpath>
<value>
<li Class="CombatExtended.PartialArmorExt">
<stats>
<li>
<ArmorRating_Sharp>0.50</ArmorRating_Sharp>
<parts>
<li>Eye</li>
<li>Nose</li>
<li>Jaw</li>
</parts>
</li>
<li>
<ArmorRating_Blunt>0.50</ArmorRating_Blunt>
<parts>
<li>Eye</li>
<li>Nose</li>
<li>Jaw</li>
</parts>
</li>
</stats>
</li>
</value>
</Operation>

<!-- Workman/Mining Helmet == -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="K4G_Apparel_WorkmanHelmet" or defName="K4G_Apparel_MiningHelmet"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<StuffEffectMultiplierArmor>1.2</StuffEffectMultiplierArmor>
<Bulk>2</Bulk>
<WornBulk>1</WornBulk>
</value>
</Operation>

<!-- Flak Mask -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="K4G_Apparel_FlakMask"]/statBases/ArmorRating_Sharp </xpath>
Expand Down Expand Up @@ -104,10 +167,25 @@
</value>
</Operation>

<!-- Advanced Flak Vest -->
<!-- Service Parka -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="K4G_Apparel_ServiceParka"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<StuffEffectMultiplierArmor>4</StuffEffectMultiplierArmor>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="K4G_Apparel_ServiceParka"]/statBases</xpath>
<value>
<Bulk>10</Bulk>
<WornBulk>5</WornBulk>
</value>
</Operation>

<!-- Advanced Flak Vest -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="K4G_Apparel_AdvancedFlakVest"]/statBases/ArmorRating_Sharp </xpath>
<xpath>Defs/ThingDef[defName="K4G_Apparel_AdvancedFlakVest"]/statBases/ArmorRating_Sharp</xpath>
<value>
<ArmorRating_Sharp>6</ArmorRating_Sharp>
<Bulk>5</Bulk>
Expand All @@ -116,7 +194,7 @@
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="K4G_Apparel_AdvancedFlakVest"]/statBases/ArmorRating_Blunt </xpath>
<xpath>Defs/ThingDef[defName="K4G_Apparel_AdvancedFlakVest"]/statBases/ArmorRating_Blunt</xpath>
<value>
<ArmorRating_Blunt>8</ArmorRating_Blunt>
</value>
Expand Down Expand Up @@ -154,9 +232,8 @@
</Operation>

<!-- Goggles -->

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="K4G_Apparel_Goggles"]/statBases/StuffEffectMultiplierArmor</xpath>
<xpath>Defs/ThingDef[defName="K4G_Apparel_Goggles" or defName="K4G_Apparel_SnowGoggles"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<StuffEffectMultiplierArmor>0.5</StuffEffectMultiplierArmor>
<Bulk>0.5</Bulk>
Expand All @@ -174,4 +251,51 @@
</value>
</Operation>

<!-- Military Medal, Eyepatch -->
<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="K4G_Apparel_MilitaryMedal" or @Name="Eyepatch"]/statBases</xpath>
<value>
<Bulk>0.15</Bulk>
<WornBulk>0</WornBulk>
</value>
</Operation>

<!-- Scarf -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="K4G_Apparel_Scarf"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<Bulk>1</Bulk>
<WornBulk>0</WornBulk>
<StuffEffectMultiplierArmor>2</StuffEffectMultiplierArmor>
</value>
</Operation>

<!-- Welding Mask -->
<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="K4G_Apparel_WeldingMask"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<Bulk>1</Bulk>
<WornBulk>1</WornBulk>
<StuffEffectMultiplierArmor>2</StuffEffectMultiplierArmor>
</value>
</Operation>

<!-- Beer Helmet -->

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="K4G_Apparel_BeerHelmet"]/statBases/ArmorRating_Sharp</xpath>
<value>
<ArmorRating_Sharp>4</ArmorRating_Sharp>
<Bulk>4</Bulk>
<WornBulk>1.5</WornBulk>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="K4G_Apparel_FlakMask"]/statBases/ArmorRating_Blunt</xpath>
<value>
<ArmorRating_Blunt>6</ArmorRating_Blunt>
</value>
</Operation>

</Patch>
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,75 @@
<operations>

<!-- Dynasty Crown -->

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="K4G_Apparel_DynastyCrown"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<StuffEffectMultiplierArmor>1.5</StuffEffectMultiplierArmor>
</value>
</li>

<!-- Headgear -->
<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="K4G_Apparel_GarrisonCap" or defName="K4G_Apparel_PeakedCap"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<StuffEffectMultiplierArmor>2</StuffEffectMultiplierArmor>
<Bulk>1</Bulk>
<WornBulk>0</WornBulk>
</value>
</li>

<!-- Prestige Advanced Flak Vest -->
<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="K4G_Apparel_PrestigeAdvancedFlakVest"]/statBases</xpath>
<value>
<Bulk>5</Bulk>
<WornBulk>3.5</WornBulk>
</value>
</li>

<li Class="PatchOperationAddModExtension">
<xpath>Defs/ThingDef[defName="K4G_Apparel_PrestigeAdvancedFlakVest"]</xpath>
<value>
<li Class="CombatExtended.PartialArmorExt">
<stats>
<li>
<ArmorRating_Sharp>0.60</ArmorRating_Sharp>
<parts>
<li>Neck</li>
<li>Shoulder</li>
</parts>
</li>
<li>
<ArmorRating_Blunt>0.60</ArmorRating_Blunt>
<parts>
<li>Neck</li>
<li>Shoulder</li>
</parts>
</li>
</stats>
</li>
</value>
</li>

<!-- Military Uniform -->
<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="K4G_Apparel_MilitaryUniform"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<Bulk>5</Bulk>
<WornBulk>1</WornBulk>
<StuffEffectMultiplierArmor>6</StuffEffectMultiplierArmor>
</value>
</li>

<!-- Monocle -->
<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="K4G_Apparel_Monocle"]/statBases</xpath>
<value>
<Bulk>0.15</Bulk>
<WornBulk>0</WornBulk>
</value>
</li>

</operations>
</match>
</Operation>
Expand Down
Loading

0 comments on commit 18e1541

Please sign in to comment.