mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-14 08:34:16 +01:00
refactor: use signal for explosion sensors. (#26703)
This commit is contained in:
committed by
GitHub
parent
a450ad9b9c
commit
f67dbca14f
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user