Goonstation Forums
[Bugfix] Fixed kicks bypassing armor - Printable Version

+- Goonstation Forums (
+-- Forum: Discussion (
+--- Forum: Patches (
+--- Thread: [Bugfix] Fixed kicks bypassing armor (/showthread.php?tid=14179)

[Bugfix] Fixed kicks bypassing armor - RichardGere - 03-24-2020

Previously kicks (which are performed only when the target is KO'd) ignored armor modifiers completely, regardless of whether the target limb had armor or not.
This resulted in silly things where, instead of bashing someone wearing riot armor with a fire extinguisher (items still take armor mods into account, even if they're KO'd), you could just kick them instead for more damage.

RE: [Bugfix] Fixed kicks bypassing armor - Tarmunora - 03-24-2020

For armor-related stuff, it is probably best if you use the new get_melee_protection() proc
        var/armor_mod = 0
        armor_mod = target.get_melee_protection(def_zone)