Adds more multiz support (#69420)

* Adds more multiz support by making use of ``is_valid_z_level`` instead of simply checking if z is the same.
This commit is contained in:
ShizCalev
2022-09-01 00:07:14 -04:00
committed by GitHub
parent 39219afe34
commit 4cbdc3a2db
18 changed files with 38 additions and 38 deletions
+1 -1
View File
@@ -49,7 +49,7 @@
devastation_range, heavy_impact_range, light_impact_range, took, orig_dev_range, orig_heavy_range, orig_light_range)
SIGNAL_HANDLER
var/turf/wearer_turf = get_turf(mod.wearer)
if(wearer_turf.z != epicenter.z)
if(!is_valid_z_level(wearer_turf, epicenter))
return
if(get_dist(epicenter, wearer_turf) > explosion_detection_dist)
return