mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-17 11:05:16 +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:
@@ -28,7 +28,7 @@ SUBSYSTEM_DEF(adjacent_air)
|
||||
var/goal = queue[currT]
|
||||
queue.Cut(1,2)
|
||||
|
||||
currT.ImmediateCalculateAdjacentTurfs()
|
||||
currT.immediate_calculate_adjacent_turfs()
|
||||
if(goal == MAKE_ACTIVE)
|
||||
SSair.add_to_active(currT)
|
||||
else if(goal == KILL_EXCITED)
|
||||
|
||||
@@ -386,8 +386,8 @@ SUBSYSTEM_DEF(air)
|
||||
continue
|
||||
for(var/obj/machinery/atmospherics/considered_device in result)
|
||||
if(!istype(considered_device, /obj/machinery/atmospherics/pipe))
|
||||
considered_device.setPipenet(net, borderline)
|
||||
net.addMachineryMember(considered_device)
|
||||
considered_device.set_pipenet(net, borderline)
|
||||
net.add_machinery_member(considered_device)
|
||||
continue
|
||||
var/obj/machinery/atmospherics/pipe/item = considered_device
|
||||
if(net.members.Find(item))
|
||||
@@ -555,7 +555,7 @@ SUBSYSTEM_DEF(air)
|
||||
|
||||
/datum/controller/subsystem/air/proc/setup_atmos_machinery()
|
||||
for (var/obj/machinery/atmospherics/AM in atmos_machinery)
|
||||
AM.atmosinit()
|
||||
AM.atmos_init()
|
||||
CHECK_TICK
|
||||
|
||||
//this can't be done with setup_atmos_machinery() because
|
||||
@@ -583,7 +583,7 @@ GLOBAL_LIST_EMPTY(colored_images)
|
||||
var/obj/machinery/atmospherics/AM
|
||||
for(var/A in 1 to atmos_machines.len)
|
||||
AM = atmos_machines[A]
|
||||
AM.atmosinit()
|
||||
AM.atmos_init()
|
||||
CHECK_TICK
|
||||
|
||||
for(var/A in 1 to atmos_machines.len)
|
||||
@@ -604,7 +604,7 @@ GLOBAL_LIST_EMPTY(colored_images)
|
||||
|
||||
if(!pipe_init_dirs_cache[type]["[init_dir]"]["[dir]"])
|
||||
var/obj/machinery/atmospherics/temp = new type(null, FALSE, dir, init_dir)
|
||||
pipe_init_dirs_cache[type]["[init_dir]"]["[dir]"] = temp.GetInitDirections()
|
||||
pipe_init_dirs_cache[type]["[init_dir]"]["[dir]"] = temp.get_init_directions()
|
||||
qdel(temp)
|
||||
|
||||
return pipe_init_dirs_cache[type]["[init_dir]"]["[dir]"]
|
||||
|
||||
Reference in New Issue
Block a user