Skip to content

Advanced Tools

SmArtKar edited this page Apr 28, 2023 · 1 revision

AdvancedTool subclass allows to modify tool's damage and cooldown, simple as that.

    public class AdvancedTool : Tool
    {
        public virtual void DamageModification(Verb verb, ref float damage, ref float armorPenetration, ref LocalTargetInfo target, Pawn caster) { }

        public virtual void CooldownModification(VerbProperties verbProps, ref float cooldown, Tool tool, Pawn attacker, Thing equipment) { }
    }

Clone this wiki locally