Is it possible to apply a <HediffDef> to Armor or Weapons?

Started by QuantumX, February 17, 2018, 07:58:32 PM

Previous topic - Next topic

QuantumX

So i have been playing around this evening and cannot seem to get this to work and cant find anything online about it..

What i'm trying to do is when pawn wears a bit of armor or carries a gun the item applies a <HediffDef> to the pawn while the armor or weapon is equipped.. I've tried the <addsHediff> tag in the ThingDef but does not seem to work.. bascially i want to use the <capMods> modifiers within the ThingDef to Buff/Debuff a pawn when certain armor or wepaons are carried.

BTW the debuffs i want to use cannot be implemented with <statBases> or <equippedStatOffsets>

Perhaps it not possible with XML only, but thought i would ask here anyway...

Harry_Dicks

This sounds very interesting. Maybe one day in the future we will have special armors that we can equip on pawns that will confer hediffs and maybe even special abilities (something like D2 with runed/magical armor).

I'm trying to think, aren't there any other mods out there that have something similar that we could look at for reference? None come to mind...