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:
Kenionatus
2024-08-18 03:11:22 +00:00
committed by GitHub
parent 1b5af3a748
commit 777910d6d2
37 changed files with 50 additions and 52 deletions
@@ -84,7 +84,7 @@
/obj/singularity/narsie/proc/godsmack(atom/A)
if(isobj(A))
var/obj/O = A
O.ex_act(1)
O.ex_act(EXPLODE_DEVASTATE)
if(O) qdel(O)
else if(isturf(A))
+1 -1
View File
@@ -25,7 +25,7 @@ GLOBAL_LIST_EMPTY(gravity_generators)
flags_2 = NO_MALF_EFFECT_2
/obj/machinery/gravity_generator/ex_act(severity)
if(severity == 1) // Very sturdy.
if(severity == EXPLODE_DEVASTATE) // Very sturdy.
set_broken()
/obj/machinery/gravity_generator/blob_act(obj/structure/blob/B)