Hello,
I'm trying to update the Blood Pact Ritual Mod for b18 (http://steamcommunity.com/sharedfiles/filedetails/?id=939055832), and would really like some help with custom damage type. In the a17 version, I used a custom damage type that would call a worker class to be able to run a custom code when a pawn would attack another one with a specific melee weapon. This is what my defs looks like :
But this doesn't seem to work anymore. I've seen there's a new <tool> tag that seem related to melee weapon attack, but it doesn't seem to use a DamageDef - which is also why I'm thinking the problem comes from the damageDef not being used anymore. Also, the rest of the mod seem to be ok : I've fixed all errors on load (harmony patchs, small defs changes, etc.). I've been trying to find what exactly changed but to no avail so far... so I'd be incredibly grateful if someone could give me some pointers here ^_^
Thanks !
I'm trying to update the Blood Pact Ritual Mod for b18 (http://steamcommunity.com/sharedfiles/filedetails/?id=939055832), and would really like some help with custom damage type. In the a17 version, I used a custom damage type that would call a worker class to be able to run a custom code when a pawn would attack another one with a specific melee weapon. This is what my defs looks like :
Code Select
<ThingDef>
[...]
<verbs>
<li>
<verbClass>Verb_MeleeAttack</verbClass>
<hasStandardCommand>true</hasStandardCommand>
<meleeDamageDef>RitualBloodPactInjury</meleeDamageDef>
</li>
</verbs>
</ThingDef>
<DamageDef>
<defName>RitualBloodPactInjury</defName>
<label>cut</label>
<workerClass>Blood_Pact_Ritual.BloodPactRitual.DamageWorkerRitualBloodPact</workerClass>
<deathMessage>{0} has been cut to death.</deathMessage>
<externalViolence>false</externalViolence>
<harmAllLayersUntilOutside>false</harmAllLayersUntilOutside>
<impactSoundType>Slice</impactSoundType>
<armorCategory />
</DamageDef>
But this doesn't seem to work anymore. I've seen there's a new <tool> tag that seem related to melee weapon attack, but it doesn't seem to use a DamageDef - which is also why I'm thinking the problem comes from the damageDef not being used anymore. Also, the rest of the mod seem to be ok : I've fixed all errors on load (harmony patchs, small defs changes, etc.). I've been trying to find what exactly changed but to no avail so far... so I'd be incredibly grateful if someone could give me some pointers here ^_^
Thanks !