Skip to content

Commit

Permalink
Merge pull request #3117 from SamaelGray/SamaelGray-AlphaMemesUpdate
Browse files Browse the repository at this point in the history
Spitter Dryad migration
  • Loading branch information
N7Huntsman authored Apr 30, 2024
2 parents 8cb2b4c + 45dc2a5 commit 3811e93
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 82 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,29 +31,6 @@
</value>
</li>

<!-- Spitter Dryad -->

<li Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="AA_Dryad_Spitter"]/verbs</xpath>
<value>
<verbs>
<li Class="CombatExtended.VerbPropertiesCE">
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>AA_PoisonBolt</defaultProjectile>
<warmupTime>1.5</warmupTime>
<burstShotCount>1</burstShotCount>
<minRange>2</minRange>
<range>44</range>
<soundCast>AA_PoisonBolt</soundCast>
<muzzleFlashScale>0</muzzleFlashScale>
<label>venomous spit</label>
<commonality>.8</commonality>
</li>
</verbs>
</value>
</li>

<!-- Ocular Nightling -->

<li Class="PatchOperationReplace">
Expand Down

This file was deleted.

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

<!-- Projectile and DamageDef -->

<Operation Class="PatchOperationReplace">
<xpath>Defs/DamageDef[defName="AM_ToxicBolt" or defName="AM_ToxicSting"]/additionalHediffs/li[hediff="AM_ToxicBuildup"]/severityPerDamageDealt</xpath>
<value>
<severityPerDamageDealt>0.01</severityPerDamageDealt>
</value>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="AM_PoisonBolt"] </xpath>
<value>
<thingClass>CombatExtended.BulletCE</thingClass>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="AM_PoisonBolt"]/projectile</xpath>
<value>
<projectile Class="CombatExtended.ProjectilePropertiesCE">
<flyOverhead>false</flyOverhead>
<damageDef>AM_ToxicBolt</damageDef>
<damageAmountBase>10</damageAmountBase>
<speed>27</speed>
<armorPenetrationSharp>2.5</armorPenetrationSharp>
<armorPenetrationBlunt>1.6</armorPenetrationBlunt>
</projectile>
</value>
</Operation>

<!-- Spitter Drayd -->

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="AM_Dryad_Spitter"]/statBases</xpath>
<value>
<AimingAccuracy>0.6</AimingAccuracy>
</value>
</Operation>

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

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="AM_Dryad_Spitter"]/statBases/ArmorRating_Sharp</xpath>
<value>
<ArmorRating_Sharp>5</ArmorRating_Sharp>
</value>
</Operation>

<Operation Class="PatchOperationReplace">
<xpath>Defs/ThingDef[defName="AM_Dryad_Spitter"]/verbs</xpath>
<value>
<verbs>
<li Class="CombatExtended.VerbPropertiesCE">
<verbClass>CombatExtended.Verb_ShootCE</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<defaultProjectile>AM_PoisonBolt</defaultProjectile>
<warmupTime>1.5</warmupTime>
<burstShotCount>1</burstShotCount>
<minRange>2</minRange>
<range>44</range>
<soundCast>AA_PoisonBolt</soundCast>
<muzzleFlashScale>0</muzzleFlashScale>
<label>venomous spit</label>
<commonality>.8</commonality>
</li>
</verbs>
</value>
</Operation>

<Operation Class="PatchOperationConditional">
<xpath>Defs/ThingDef[defName="AM_Dryad_Spitter"]/comps</xpath>
<nomatch Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="AM_Dryad_Spitter"]</xpath>
<value>
<comps />
</value>
</nomatch>
</Operation>

<Operation Class="PatchOperationAdd">
<xpath>Defs/ThingDef[defName="AM_Dryad_Spitter"]/comps</xpath>
<value>
<li Class="CombatExtended.CompProperties_ArmorDurability">
<Durability>487</Durability>
<Regenerates>true</Regenerates>
<RegenInterval>600</RegenInterval>
<RegenValue>5</RegenValue>
<MinArmorPct>0.75</MinArmorPct>
</li>
</value>
</Operation>

</Patch>

0 comments on commit 3811e93

Please sign in to comment.