mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-29 15:08:34 +01:00
Add 'as anything' to various for loops
This commit is contained in:
@@ -19,8 +19,7 @@
|
||||
data["shuttles"] = shuttles
|
||||
|
||||
var/list/overmap_ships = list()
|
||||
for(var/ship in SSshuttles.ships)
|
||||
var/obj/effect/overmap/visitable/ship/S = ship
|
||||
for(var/obj/effect/overmap/visitable/ship/S as anything in SSshuttles.ships)
|
||||
overmap_ships.Add(list(list(
|
||||
"name" = S.name,
|
||||
"ref" = REF(S),
|
||||
|
||||
@@ -45,8 +45,7 @@
|
||||
|
||||
cam_plane_masters = get_tgui_plane_masters()
|
||||
|
||||
for(var/plane in cam_plane_masters)
|
||||
var/obj/screen/instance = plane
|
||||
for(var/obj/screen/instance as anything in cam_plane_masters)
|
||||
instance.assigned_map = map_name
|
||||
instance.del_on_map_removal = FALSE
|
||||
instance.screen_loc = "[map_name]:CENTER"
|
||||
|
||||
@@ -37,8 +37,7 @@
|
||||
|
||||
cam_plane_masters = get_tgui_plane_masters()
|
||||
|
||||
for(var/plane in cam_plane_masters)
|
||||
var/obj/screen/instance = plane
|
||||
for(var/obj/screen/instance as anything in cam_plane_masters)
|
||||
instance.assigned_map = map_name
|
||||
instance.del_on_map_removal = FALSE
|
||||
instance.screen_loc = "[map_name]:CENTER"
|
||||
|
||||
@@ -49,8 +49,7 @@
|
||||
data["target_name"] = id_card ? id_card.name : "-----"
|
||||
|
||||
var/list/departments = list()
|
||||
for(var/D in SSjob.get_all_department_datums())
|
||||
var/datum/department/dept = D
|
||||
for(var/datum/department/dept as anything in SSjob.get_all_department_datums())
|
||||
if(!dept.assignable) // No AI ID cards for you.
|
||||
continue
|
||||
if(dept.centcom_only && !is_centcom)
|
||||
|
||||
@@ -30,8 +30,7 @@
|
||||
var/list/paired_map = list()
|
||||
var/obj/item/modular_computer/mc_host = tgui_host()
|
||||
if(istype(mc_host))
|
||||
for(var/puav in mc_host.paired_uavs)
|
||||
var/weakref/wr = puav
|
||||
for(var/weakref/wr as anything in mc_host.paired_uavs)
|
||||
var/obj/item/device/uav/U = wr.resolve()
|
||||
paired_map.Add(list(list("name" = "[U ? U.nickname : "!!Missing!!"]", "uavref" = "\ref[U]")))
|
||||
|
||||
@@ -148,8 +147,7 @@
|
||||
var/list/zlevels_in_long_range = using_map.get_map_levels(their_z, TRUE, om_range = DEFAULT_OVERMAP_RANGE) - zlevels_in_range
|
||||
var/their_signal = 0
|
||||
// Measure z-distance between the AM passed in and the nearest relay
|
||||
for(var/relay in ntnet_global.relays)
|
||||
var/obj/machinery/ntnet_relay/R = relay
|
||||
for(var/obj/machinery/ntnet_relay/R as anything in ntnet_global.relays)
|
||||
if(!R.operable())
|
||||
continue
|
||||
if(R.z == their_z)
|
||||
|
||||
Reference in New Issue
Block a user