Skip to content

Commit

Permalink
Merge pull request #2711 from ViralReaction/ESCP-Spriggan
Browse files Browse the repository at this point in the history
Escp-Spriggan Compatibility Patch
  • Loading branch information
N7Huntsman authored Sep 22, 2023
2 parents 796e4e5 + 281405b commit e8e3d05
Show file tree
Hide file tree
Showing 5 changed files with 713 additions and 0 deletions.
53 changes: 53 additions & 0 deletions Patches/ESCP - Spriggans/ESCP_BodyDefs_Spriggan.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="PatchOperationFindMod">
<mods>
<li>ESCP - Spriggan</li>
</mods>

<match Class="PatchOperationSequence">
<operations>

<!-- Bipedal -->

<li Class="PatchOperationAdd">
<xpath>
Defs/BodyDef[defName="ECP_Spriggan"]//*[
def="Body" or
def="Ear" or
def="Nose" or
def="Neck" or
def="Leg"]
</xpath>
<value>
<groups />
</value>
</li>

<li Class="PatchOperationAdd">
<xpath>
Defs/BodyDef[defName="ECP_Spriggan"]//*[
def="Body" or
def="Neck" or
def="Head" or
def="Ear" or
def="Nose" or
def="AnimalJaw" or
def="Shoulder" or
def="Arm" or
def="Hand" or
def="FrontClaw" or
def="Leg" or
def="Foot"]/groups
</xpath>
<value>
<li>CoveredByNaturalArmor</li>
</value>
</li>

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

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

<Operation Class="PatchOperationFindMod">
<mods>
<li>ESCP - Spriggan</li>
</mods>

<match Class="PatchOperationSequence">
<operations>

<!-- Spriggan Fireball -->
<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="ESCP_SprigganFireball"]/thingClass</xpath>
<value>
<thingClass>CombatExtended.BulletCE</thingClass>
</value>
</li>

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="ESCP_SprigganFireball"]/projectile</xpath>
<value>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<flyOverhead>false</flyOverhead>
<damageDef>Flame</damageDef>
<damageAmountBase>10</damageAmountBase>
<speed>50</speed>
<ai_IsIncendiary>true</ai_IsIncendiary>
</projectile>
</value>
</li>

</operations>
</match>

</Operation>

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

<Operation Class="PatchOperationFindMod">
<mods>
<li>Combat Extended</li>
</mods>

<match Class="PatchOperationSequence">
<operations>

<li Class="PatchOperationAdd">
<xpath>Defs/ScenarioDef[defName="ESCP_SprigganScenario"]/scenario/parts</xpath>
<value>
<li Class="ScenPart_StartingThing_Defined">
<def>StartingThing_Defined</def>
<thingDef>Ammo_Arrow_Stone</thingDef>
<count>100</count>
</li>
</value>
</li>

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

</Patch>
Loading

0 comments on commit e8e3d05

Please sign in to comment.