mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 20:37:34 +01:00
Ports the radiation subsystem and cleans up damage flags. (#15715)
This commit is contained in:
@@ -41,7 +41,7 @@
|
||||
if(!material || !material.radioactivity)
|
||||
return
|
||||
for(var/mob/living/L in range(1,src))
|
||||
L.apply_damage(round(material.radioactivity / 20), IRRADIATE)
|
||||
L.apply_damage(round(material.radioactivity / 20), DAMAGE_RADIATION)
|
||||
|
||||
/obj/structure/railing/Initialize()
|
||||
. = ..()
|
||||
@@ -213,7 +213,7 @@
|
||||
playsound(get_turf(src), 'sound/effects/grillehit.ogg', 50, TRUE)
|
||||
if(prob(30))
|
||||
G.affecting.Weaken(5)
|
||||
G.affecting.apply_damage(15, BRUTE, BP_HEAD)
|
||||
G.affecting.apply_damage(15, DAMAGE_BRUTE, BP_HEAD)
|
||||
else
|
||||
G.affecting.forceMove(get_step(src, get_dir(user, src)))
|
||||
G.affecting.Weaken(5)
|
||||
@@ -273,7 +273,7 @@
|
||||
update_icon()
|
||||
return
|
||||
|
||||
if(W.force && (W.damtype == BURN || W.damtype == BRUTE))
|
||||
if(W.force && (W.damtype == DAMAGE_BURN || W.damtype == DAMAGE_BRUTE))
|
||||
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
|
||||
visible_message(SPAN_WARNING("\The [src] has been [LAZYLEN(W.attack_verb) ? pick(W.attack_verb) : "attacked"] with \the [W] by \the [user]!"))
|
||||
take_damage(W.force)
|
||||
|
||||
Reference in New Issue
Block a user