mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
[MIRROR] Defines damage flags. (Hopefully without 50+ commits) (#491)
* Defines damage flags. (#53158) * Defines damage flags. (Hopefully without 50+ commits) Co-authored-by: TemporalOroboros <TemporalOroboros@gmail.com>
This commit is contained in:
co-authored by
TemporalOroboros
parent
a6c3cbb8e3
commit
3bd294f26f
@@ -374,7 +374,7 @@
|
||||
for(var/i in clothing)
|
||||
var/obj/item/clothing/clothes_check = i
|
||||
// unlike normal armor checks, we tabluate these piece-by-piece manually so we can also pass on appropriate damage the clothing's limbs if necessary
|
||||
if(clothes_check.armor.getRating("wound"))
|
||||
if(clothes_check.armor.getRating(WOUND))
|
||||
bare_wound_bonus = 0
|
||||
break
|
||||
|
||||
@@ -434,7 +434,7 @@
|
||||
for(var/c in clothing)
|
||||
var/obj/item/clothing/C = c
|
||||
// unlike normal armor checks, we tabluate these piece-by-piece manually so we can also pass on appropriate damage the clothing's limbs if necessary
|
||||
armor_ablation += C.armor.getRating("wound")
|
||||
armor_ablation += C.armor.getRating(WOUND)
|
||||
if(wounding_type == WOUND_SLASH)
|
||||
C.take_damage_zone(body_zone, damage, BRUTE, armour_penetration)
|
||||
else if(wounding_type == WOUND_BURN && damage >= 10) // lazy way to block freezing from shredding clothes without adding another var onto apply_damage()
|
||||
|
||||
Reference in New Issue
Block a user