refactor: use signal for explosion sensors. (#26703)

This commit is contained in:
warriorstar-orion
2024-09-12 12:59:09 -04:00
committed by GitHub
parent a450ad9b9c
commit f67dbca14f
3 changed files with 19 additions and 29 deletions
+1 -10
View File
@@ -203,16 +203,7 @@
//You need to press the DebugGame verb to see these now....they were getting annoying and we've collected a fair bit of data. Just -test- changes to explosion code using this please so we can compare
log_world("## DEBUG: Explosion([x0],[y0],[z0])(d[devastation_range],h[heavy_impact_range],l[light_impact_range]): Took [took] seconds.")
//Machines which report explosions.
for(var/array in GLOB.doppler_arrays)
if(!array)
continue
if(istype(array, /obj/machinery/doppler_array))
var/obj/machinery/doppler_array/Array = array
Array.sense_explosion(x0,y0,z0,devastation_range,heavy_impact_range,light_impact_range,took,orig_dev_range,orig_heavy_range,orig_light_range)
if(istype(array, /obj/item/mod/module/reagent_scanner/advanced))
var/obj/item/mod/module/reagent_scanner/advanced/Mod_Array = array
Mod_Array.sense_explosion(x0,y0,z0,devastation_range,heavy_impact_range,light_impact_range,took,orig_dev_range,orig_heavy_range,orig_light_range)
SEND_GLOBAL_SIGNAL(COMSIG_GLOB_EXPLOSION, epicenter, devastation_range, heavy_impact_range, light_impact_range, took, orig_dev_range, orig_heavy_range, orig_light_range)
return 1