mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 13:10:02 +01:00
Two as anything greps (and some other cleanup) (#92974)
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
|
||||
/datum/action/cooldown/spell/conjure/cosmic_expansion/proc/get_turfs(turf/target_turf)
|
||||
var/list/target_turfs = list()
|
||||
for (var/direction as anything in GLOB.cardinals)
|
||||
for (var/direction in GLOB.cardinals)
|
||||
target_turfs += get_ranged_target_turf(target_turf, direction, 2)
|
||||
target_turfs += get_ranged_target_turf(target_turf, direction, 3)
|
||||
return target_turfs
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
var/list/target_turfs = list(get_turf(owner))
|
||||
var/range = ascended ? 2 : 1
|
||||
var/list/directions = list(turn(owner.dir, 90), turn(owner.dir, 270))
|
||||
for (var/direction as anything in directions)
|
||||
for (var/direction in directions)
|
||||
for (var/i in 1 to range)
|
||||
target_turfs += get_ranged_target_turf(owner, direction, i)
|
||||
return target_turfs
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
/obj/structure/void_conduit/proc/build_view_turfs()
|
||||
for(var/turf/affected_turf as anything in overlayed_turfs)
|
||||
affected_turf.cut_overlay(void_overlay)
|
||||
for(var/turf/affected_turf as anything in view(effect_range, src))
|
||||
for(var/turf/affected_turf in view(effect_range, src))
|
||||
if(!isopenturf(affected_turf))
|
||||
continue
|
||||
affected_turf.add_overlay(void_overlay)
|
||||
@@ -72,7 +72,7 @@
|
||||
///Sends out a pulse
|
||||
/obj/structure/void_conduit/proc/do_conduit_pulse()
|
||||
var/list/turfs_to_affect = list()
|
||||
for(var/turf/affected_turf as anything in view(effect_range, loc))
|
||||
for(var/turf/affected_turf in view(effect_range, loc))
|
||||
var/distance = get_dist(loc, affected_turf)
|
||||
if(!turfs_to_affect["[distance]"])
|
||||
turfs_to_affect["[distance]"] = list()
|
||||
|
||||
Reference in New Issue
Block a user