mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 19:14:15 +01:00
modules/atmospherics major cleanup (#61904)
major cleanup of modules/atmospherics folder and all related files, still many missing -cleanup of procs name -cleanup of vars name -documentation of some of the procs -minor changes to some for() logic (no in game changes just early continue or as anything checks) No in game changes, only code and docs
This commit is contained in:
@@ -243,20 +243,20 @@ All ShuttleMove procs go here
|
||||
break
|
||||
|
||||
if(!connected)
|
||||
nullifyNode(i)
|
||||
nullify_node(i)
|
||||
|
||||
if(!nodes[i])
|
||||
missing_nodes = TRUE
|
||||
|
||||
if(missing_nodes)
|
||||
atmosinit()
|
||||
atmos_init()
|
||||
for(var/obj/machinery/atmospherics/A in pipeline_expansion())
|
||||
A.atmosinit()
|
||||
if(A.returnPipenet())
|
||||
A.addMember(src)
|
||||
A.atmos_init()
|
||||
if(A.return_pipenet())
|
||||
A.add_member(src)
|
||||
SSair.add_to_rebuild_queue(src)
|
||||
else
|
||||
// atmosinit() calls update_appearance(), so we don't need to call it
|
||||
// atmos_init() calls update_appearance(), so we don't need to call it
|
||||
update_appearance()
|
||||
|
||||
/obj/machinery/navbeacon/beforeShuttleMove(turf/newT, rotation, move_mode, obj/docking_port/mobile/moving_dock)
|
||||
|
||||
@@ -80,13 +80,13 @@ If ever any of these procs are useful for non-shuttles, rename it to proc/rotate
|
||||
/************************************Machine rotate procs************************************/
|
||||
|
||||
/obj/machinery/atmospherics/shuttleRotate(rotation, params)
|
||||
var/list/real_node_connect = getNodeConnects()
|
||||
var/list/real_node_connect = get_node_connects()
|
||||
for(var/i in 1 to device_type)
|
||||
real_node_connect[i] = angle2dir(rotation+dir2angle(real_node_connect[i]))
|
||||
|
||||
. = ..()
|
||||
SetInitDirections()
|
||||
var/list/supposed_node_connect = getNodeConnects()
|
||||
set_init_directions()
|
||||
var/list/supposed_node_connect = get_node_connects()
|
||||
var/list/nodes_copy = nodes.Copy()
|
||||
|
||||
for(var/i in 1 to device_type)
|
||||
|
||||
Reference in New Issue
Block a user