Fixed melee weapons not applying their armour penetration. (#19539)

You don't want to know how long this was broken for.

Co-authored-by: Matt Atlas <liermattia@gmail.com>
This commit is contained in:
Matt Atlas
2024-06-25 00:09:33 +00:00
committed by GitHub
co-authored by Matt Atlas
parent c3ef5edcbf
commit 33301f1b33
2 changed files with 59 additions and 1 deletions
@@ -84,7 +84,7 @@
//Apply weapon damage
var/damage_flags = I.damage_flags()
apply_damage(effective_force, I.damtype, hit_zone, I, damage_flags, I.armor_penetration)
apply_damage(effective_force, I.damtype, hit_zone, null, I, damage_flags, I.armor_penetration)
//Melee weapon embedded object code.
if (I && I.damtype == DAMAGE_BRUTE && !I.anchored && !is_robot_module(I) && I.canremove)