[Solved] DamageDef not being used

Started by Zyroke, October 11, 2021, 11:05:09 AM

Previous topic - Next topic

Zyroke

I downloaded Kobolds of the Rim and noticed that the weapons only had blunt damage. From what I can tell, the DamageDef for the toxic attacks isn't being loaded or something, since if I change the capacities on the weapons to ToxicBite or Stab they work perfectly. This isn't a mod conflict, since this happens even when running no mods but HugsLib and Humanoid Alien Races. How could I fix this?

Edit: Figured it out, there weren't any Maneuvers for the new damage types. I just copied the vanilla Slash and Stab ManeuverDefs and changed the names. I feel like a total idiot.

The DamageDefs:
<DamageDef ParentName="CutBase">
<defName>Kobold_CutToxic</defName>
<label>toxic cut</label>
<additionalHediffs>
<li>
<hediff>ToxicBuildup</hediff>
<severityPerDamageDealt>0.025</severityPerDamageDealt>
<victimSeverityScaling>ToxicSensitivity</victimSeverityScaling>
<victimSeverityScalingByInvBodySize>true</victimSeverityScalingByInvBodySize>
</li>
</additionalHediffs>
</DamageDef>
<DamageDef>
<defName>Kobold_StabToxic</defName>
<label>toxic stab</label>
<workerClass>DamageWorker_Stab</workerClass>
<externalViolence>true</externalViolence>
<deathMessage>{0} has been stabbed to death.</deathMessage>
<hediff>Stab</hediff>
<hediffSolid>Crack</hediffSolid>
<impactSoundType>Slice</impactSoundType>
<armorCategory>Sharp</armorCategory>
<stabChanceOfForcedInternal>0.6</stabChanceOfForcedInternal>
<overkillPctToDestroyPart>0.4~1.0</overkillPctToDestroyPart>
<additionalHediffs>
<li>
<hediff>ToxicBuildup</hediff>
<severityPerDamageDealt>0.05</severityPerDamageDealt>
<victimSeverityScaling>ToxicSensitivity</victimSeverityScaling>
<victimSeverityScalingByInvBodySize>true</victimSeverityScalingByInvBodySize>
</li>
</additionalHediffs>
</DamageDef>

Tools section of the bone sword, one of the modded weapons:
<tools>
                <li>
                    <label>handle</label>
                    <capacities>
                        <li>Blunt</li>
                    </capacities>
                    <power>10</power>
                    <cooldownTime>2</cooldownTime>
                </li>
                <li>
                    <label>blade</label>
                    <capacities>
                        <li>Kobold_CutToxic</li>
                    </capacities>
                    <power>18</power>
                    <cooldownTime>1.5</cooldownTime>
                </li>
                <li>
                    <label>point</label>
                    <capacities>
                        <li>Kobold_StabToxic</li>
                    </capacities>
                    <power>18</power>
                    <cooldownTime>2</cooldownTime>
                </li>
            </tools>