Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Bugfix] Fixed kicks bypassing armor
#1
https://github.com/goonstation/goonstati...gfix/melee

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.
#2
For armor-related stuff, it is probably best if you use the new get_melee_protection() proc
Code:
        var/armor_mod = 0
        armor_mod = target.get_melee_protection(def_zone)


Forum Jump:


Users browsing this thread: 1 Guest(s)