mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
[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:
committed by
GitHub
parent
f3954fdbeb
commit
938e760841
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user