mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 07:08:00 +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:
@@ -459,7 +459,7 @@ Pass the desired type path itself, declaring a temporary var beforehand is not r
|
||||
var/turf/T = get_turf(src)
|
||||
if(!T)
|
||||
return
|
||||
var/list/adjacent = T.GetAtmosAdjacentTurfs(1)
|
||||
var/list/adjacent = T.get_atmos_adjacent_turfs(1)
|
||||
if(shuffle) //If we were on the same tile as another bot, let's randomize our choices so we dont both go the same way
|
||||
adjacent = shuffle(adjacent)
|
||||
shuffle = FALSE
|
||||
|
||||
@@ -474,7 +474,7 @@
|
||||
anchored = TRUE
|
||||
opacity = FALSE
|
||||
density = TRUE
|
||||
CanAtmosPass = ATMOS_PASS_DENSITY
|
||||
can_atmos_pass = ATMOS_PASS_DENSITY
|
||||
duration = 82
|
||||
color = COLOR_DARK_ORANGE
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
. = ..()
|
||||
if(banana_time && banana_time < world.time)
|
||||
var/turf/T = get_turf(src)
|
||||
var/list/adjacent = T.GetAtmosAdjacentTurfs(1)
|
||||
var/list/adjacent = T.get_atmos_adjacent_turfs(1)
|
||||
new banana_type(pick(adjacent))
|
||||
banana_time = world.time + rand(30,60)
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
//Entrance here
|
||||
else
|
||||
var/datum/pipeline/vent_parent = ventcrawl_target.parents[1]
|
||||
if(vent_parent && (vent_parent.members.len || vent_parent.other_atmosmch))
|
||||
if(vent_parent && (vent_parent.members.len || vent_parent.other_atmos_machines))
|
||||
visible_message(span_notice("[src] begins climbing into the ventilation system...") ,span_notice("You begin climbing into the ventilation system..."))
|
||||
if(!do_after(src, 2.5 SECONDS, target = ventcrawl_target))
|
||||
return
|
||||
@@ -92,9 +92,9 @@
|
||||
if(HAS_TRAIT(src, TRAIT_MOVE_VENTCRAWLING) && istype(loc, /obj/machinery/atmospherics) && movement_type & VENTCRAWLING)
|
||||
var/list/total_members = list()
|
||||
var/obj/machinery/atmospherics/current_location = loc
|
||||
for(var/datum/pipeline/location_pipeline in current_location.returnPipenets())
|
||||
for(var/datum/pipeline/location_pipeline in current_location.return_pipenets())
|
||||
total_members += location_pipeline.members
|
||||
total_members += location_pipeline.other_atmosmch
|
||||
total_members += location_pipeline.other_atmos_machines
|
||||
|
||||
if(!total_members.len)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user