[MIRROR] Gets rid of hasvar usage and moves up some vars (#11484)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-08-23 10:04:52 -07:00
committed by GitHub
parent f3954fdbeb
commit 938e760841
57 changed files with 223 additions and 257 deletions

View File

@@ -139,11 +139,11 @@
visible_message(span_danger("\The [src] has been attacked with \the [W][(user ? " by [user]." : ".")]"))
var/damage = 0
switch(W.damtype)
if("fire")
if(BURN)
damage = (W.force / fire_resist)
if(istype(W, /obj/item/weldingtool))
playsound(src, W.usesound, 100, 1)
if("brute")
if(BRUTE)
damage = (W.force / brute_resist)
take_damage(damage)