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 05:11:22 +02:00
committed by GitHub
parent 1b5af3a748
commit 777910d6d2
37 changed files with 50 additions and 52 deletions
@@ -107,7 +107,7 @@
location = get_atom_on_turf(src)
if(location)
explosion(location, boom_sizes[1], boom_sizes[2], boom_sizes[3], cause = src)
location.ex_act(2, target)
location.ex_act(EXPLODE_HEAVY, target)
qdel(src)
/obj/item/grenade/plastic/miningcharge/proc/override_safety()
+1 -1
View File
@@ -288,7 +288,7 @@
/obj/machinery/mineral/equipment_vendor/ex_act(severity, target)
do_sparks(5, TRUE, src)
if(prob(50 / severity) && severity < 3)
if(prob(50 / severity) && severity < EXPLODE_LIGHT)
qdel(src)
/obj/machinery/mineral/equipment_vendor/Destroy()
+1 -1
View File
@@ -353,7 +353,7 @@ GLOBAL_LIST_INIT(sand_recipes, list(\
/obj/item/stack/ore/ex_act(severity)
if(!severity || severity >= 2)
if(!severity || severity >= EXPLODE_HEAVY)
return
qdel(src)