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 #875 from Tostov/Dragonian-CE-Patch
Browse files Browse the repository at this point in the history
Dragonian Race CE patch
  • Loading branch information
LockdownX7 authored Nov 9, 2019
2 parents 53e7c03 + 5bd610d commit 50fa5c3
Show file tree
Hide file tree
Showing 4 changed files with 386 additions and 0 deletions.
111 changes: 111 additions & 0 deletions Patches/Dragonian Race/ThingDefs_Bodies/Dragonian_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>

<!--Patch Dragonian Bodytype-->

<li Class="PatchOperationFindMod">
<mods>
<li>Dragonian Race</li>
</mods>
<match Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Dragonian"]/corePart/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

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

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

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

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Dragonian"]/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="Dragonian"]/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="Dragonian"]/corePart/parts/li[def="Shoulder"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

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

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Dragonian"]/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="Dragonian"]/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="Dragonian"]/corePart/parts/li[def="Leg"]/groups</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

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

<li Class="PatchOperationAdd">
<xpath>/Defs/BodyDef[defName="Dragonian"]/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>
53 changes: 53 additions & 0 deletions Patches/Dragonian Race/ThingDefs_Items/Items_Resource_Stuff.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationFindMod">

<mods><li>Dragonian Race</li></mods>

<match Class="PatchOperationSequence">
<operations>

<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="WoolDragonian"]/statBases</xpath>
<value>
<Bulk>0.3</Bulk>
<WornBulk>0.3</WornBulk>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="WoolDragonian"]/statBases/StuffPower_Armor_Sharp</xpath>
<value>
<StuffPower_Armor_Sharp>0.675</StuffPower_Armor_Sharp>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="WoolDragonian"]/statBases/StuffPower_Armor_Blunt</xpath>
<value>
<StuffPower_Armor_Blunt>0.85</StuffPower_Armor_Blunt>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="WoolDragonian"]/statBases/StuffPower_Armor_Heat</xpath>
<value>
<StuffPower_Armor_Heat>0.15</StuffPower_Armor_Heat>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="WoolDragonian"]/stuffProps/statFactors</xpath>
<value>
<Mass>0.90</Mass>
</value>
</li>

</operations>
</match>
</li>
</operations>
</Operation>
</Patch>
73 changes: 73 additions & 0 deletions Patches/Dragonian Race/ThingDefs_Misc/DR_Apparel.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationFindMod">

<mods><li>Dragonian Race</li></mods>

<match Class="PatchOperationSequence">
<operations>

<!-- ========== Basic Wears ========== -->

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="DR_BasicWear" or defName="DR_BasicDress" or defName="DR_MaleDress"]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<StuffEffectMultiplierArmor>1</StuffEffectMultiplierArmor>
</value>
</li>

<!-- ========== Others ========== -->

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="DR_GreekDress" or
defName="DR_GreekHanZo" or
defName="DR_GreekPriest" or
defName="DR_GreekSexyDress" or
defName="DR_GreekString" or
defName="DR_JapaneseDress" or
defName="DR_Onepiece" or
defName="DR_EveningDress"
]/statBases/StuffEffectMultiplierArmor</xpath>
<value>
<StuffEffectMultiplierArmor>2</StuffEffectMultiplierArmor>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="DR_GreekDress" or
defName="DR_GreekHanZo" or
defName="DR_GreekPriest" or
defName="DR_GreekSexyDress" or
defName="DR_GreekString" or
defName="DR_JapaneseDress" or
defName="DR_Onepiece" or
defName="DR_EveningDress"
]/statBases/ArmorRating_Sharp</xpath>
<value>
<ArmorRating_Sharp>4.05</ArmorRating_Sharp>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="DR_GreekDress" or
defName="DR_GreekHanZo" or
defName="DR_GreekPriest" or
defName="DR_GreekSexyDress" or
defName="DR_GreekString" or
defName="DR_JapaneseDress" or
defName="DR_Onepiece" or
defName="DR_EveningDress"
]/statBases/ArmorRating_Blunt</xpath>
<value>
<ArmorRating_Blunt>5.1</ArmorRating_Blunt>
</value>
</li>

</operations>
</match>
</li>
</operations>
</Operation>
</Patch>
149 changes: 149 additions & 0 deletions Patches/Dragonian Race/ThingDefs_Races/Race_Dragonian.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
<?xml version="1.0" encoding="utf-8" ?>
<Patch>
<Operation Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationFindMod">

<mods><li>Dragonian Race</li></mods>

<match Class="PatchOperationSequence">
<operations>

<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[@Name="DR_PawnBase"]/comps</xpath>
<value>
<li>
<compClass>CombatExtended.CompPawnGizmo</compClass>
</li>
<li Class="CombatExtended.CompProperties_Suppressable" />
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>/Defs/ThingDef[@Name="DR_PawnBase"]/inspectorTabs/li[.="ITab_Pawn_Gear"]</xpath>
<value>
<li>CombatExtended.ITab_Inventory</li>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[@Name="DR_PawnBase"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_Inventory" />
</value>
</li>

<li Class="PatchOperationAddModExtension">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="Dragonian_Female" or defName="Dragonian_Male"]</xpath>
<value>
<li Class="CombatExtended.RacePropertiesExtensionCE">
<bodyShape>Humanoid</bodyShape>
</li>
</value>
</li>

<!-- 5.2 Speed/0.8 Size/60 kg -->

<li Class="PatchOperationAdd">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="Dragonian_Female" or defName="Dragonian_Male"]/statBases</xpath>
<value>
<MeleeCritChance>1.08</MeleeCritChance>
<MeleeParryChance>1.06</MeleeParryChance>
<Suppressability>1</Suppressability>
<!--Innate toxic resistance of 0.6-->
<SmokeSensitivity>0.6</SmokeSensitivity>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="Dragonian_Female" or defName="Dragonian_Male"]/statBases/MeleeDodgeChance</xpath>
<value>
<MeleeDodgeChance>1.18</MeleeDodgeChance>
</value>
</li>

<!--4mm Wool (skin+scales), their vanilla armor is thrumbo level-->

<li Class="PatchOperationReplace">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="Dragonian_Female" or defName="Dragonian_Male"]/statBases/ArmorRating_Sharp</xpath>
<value>
<ArmorRating_Sharp>2.7</ArmorRating_Sharp>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="Dragonian_Female" or defName="Dragonian_Male"]/statBases/ArmorRating_Blunt</xpath>
<value>
<ArmorRating_Blunt>3.4</ArmorRating_Blunt>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="Dragonian_Female" or defName="Dragonian_Male"]/statBases/ArmorRating_Heat</xpath>
<value>
<ArmorRating_Heat>0.6</ArmorRating_Heat>
</value>
</li>

<!--Their vanilla melee is very strong (18 verus 8.2 for humanlike)-->

<li Class="PatchOperationReplace">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="Dragonian_Female" or defName="Dragonian_Male"]/tools</xpath>
<value>
<tools>
<li Class="CombatExtended.ToolCE">
<label>left fist</label>
<capacities>
<li>Scratch</li>
</capacities>
<power>7</power>
<cooldownTime>0.89</cooldownTime>
<linkedBodyPartsGroup>LeftHand</linkedBodyPartsGroup>
<armorPenetrationSharp>0.47</armorPenetrationSharp>
<armorPenetrationBlunt>0.5</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>right fist</label>
<capacities>
<li>Scratch</li>
</capacities>
<power>7</power>
<cooldownTime>0.89</cooldownTime>
<linkedBodyPartsGroup>RightHand</linkedBodyPartsGroup>
<armorPenetrationSharp>0.47</armorPenetrationSharp>
<armorPenetrationBlunt>0.5</armorPenetrationBlunt>
</li>
<li Class="CombatExtended.ToolCE">
<label>tail</label>
<capacities>
<li>Blunt</li>
</capacities>
<power>20</power>
<cooldownTime>2.28</cooldownTime>
<linkedBodyPartsGroup>Tail</linkedBodyPartsGroup>
<chanceFactor>0.2</chanceFactor>
<armorPenetrationBlunt>7.875</armorPenetrationBlunt>
</li>
</tools>
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>/Defs/AlienRace.ThingDef_AlienRace[defName="Dragonian_Female" or defName="Dragonian_Male"]/alienRace/raceRestriction/whiteApparelList</xpath>
<value>
<li>Apparel_TacVest</li>
<li>Apparel_Backpack</li>
<li>Apparel_TribalBackpack</li>
<li>Apparel_BallisticShield</li>
<li>Apparel_MeleeShield</li>
<li>Apparel_GasMask</li>
<li>Apparel_ImprovGasMask</li>
</value>
</li>

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

0 comments on commit 50fa5c3

Please sign in to comment.