mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 11:37:40 +01:00
replace magic numbers related to emp and explosion severity with defines (#26495)
replace even more magic emp and ex numbers
This commit is contained in:
@@ -393,7 +393,7 @@
|
||||
var/mob/M = A
|
||||
add_attack_logs(user, M, "Hit with EMP-light")
|
||||
to_chat(user, "[src] now has [emp_cur_charges] charge\s.")
|
||||
A.emp_act(1)
|
||||
A.emp_act(EMP_HEAVY)
|
||||
else
|
||||
to_chat(user, "<span class='warning'>\The [src] needs time to recharge!</span>")
|
||||
return
|
||||
|
||||
@@ -129,7 +129,7 @@
|
||||
else if(istype(target, /obj/machinery/camera))
|
||||
var/obj/machinery/camera/C = target
|
||||
if(prob(effectchance * diode.rating))
|
||||
C.emp_act(1)
|
||||
C.emp_act(EMP_HEAVY)
|
||||
outmsg = "<span class='notice'>You hit the lens of [C] with [src], temporarily disabling the camera!</span>"
|
||||
|
||||
log_admin("[key_name(user)] EMPd a camera with a laser pointer")
|
||||
|
||||
@@ -722,12 +722,12 @@
|
||||
if(HAS_TRAIT(src, TRAIT_WIELDED))
|
||||
if(iswallturf(A))
|
||||
var/turf/simulated/wall/Z = A
|
||||
Z.ex_act(2)
|
||||
Z.ex_act(EXPLODE_HEAVY)
|
||||
charged = 3
|
||||
playsound(user, 'sound/weapons/marauder.ogg', 50, 1)
|
||||
else if(isstructure(A) || ismecha(A))
|
||||
var/obj/Z = A
|
||||
Z.ex_act(2)
|
||||
Z.ex_act(EXPLODE_HEAVY)
|
||||
charged = 3
|
||||
playsound(user, 'sound/weapons/marauder.ogg', 50, 1)
|
||||
|
||||
|
||||
@@ -272,7 +272,7 @@
|
||||
var/atom/throw_target = get_edge_target_turf(target, user.dir)
|
||||
user.visible_message("<span class='userdanger'>It's a home run!</span>")
|
||||
target.throw_at(throw_target, rand(8,10), 14, user)
|
||||
target.ex_act(2)
|
||||
target.ex_act(EXPLODE_HEAVY)
|
||||
playsound(get_turf(src), 'sound/weapons/homerun.ogg', 100, 1)
|
||||
homerun_ready = 0
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user