mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +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:
@@ -11,7 +11,7 @@
|
||||
use_power = NO_POWER_USE
|
||||
interaction_flags_atom = NONE
|
||||
interaction_flags_machine = NONE
|
||||
CanAtmosPass = ATMOS_PASS_NO
|
||||
can_atmos_pass = ATMOS_PASS_NO
|
||||
light_range = 4
|
||||
layer = ABOVE_OBJ_LAYER
|
||||
///First of the generators producing the containment field
|
||||
@@ -35,7 +35,7 @@
|
||||
if(field_gen_2)
|
||||
field_gen_2.fields -= src
|
||||
field_gen_2 = null
|
||||
CanAtmosPass = ATMOS_PASS_YES
|
||||
can_atmos_pass = ATMOS_PASS_YES
|
||||
air_update_turf(TRUE, FALSE)
|
||||
return ..()
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ no power level overlay is currently in the overlays list.
|
||||
density = TRUE
|
||||
use_power = NO_POWER_USE
|
||||
max_integrity = 500
|
||||
CanAtmosPass = ATMOS_PASS_YES
|
||||
can_atmos_pass = ATMOS_PASS_YES
|
||||
//100% immune to lasers and energy projectiles since it absorbs their energy.
|
||||
armor = list(MELEE = 25, BULLET = 10, LASER = 100, ENERGY = 100, BOMB = 0, BIO = 0, RAD = 0, FIRE = 50, ACID = 70)
|
||||
///Amount of energy stored, used for visual overlays (over 9000?)
|
||||
@@ -199,7 +199,7 @@ no power level overlay is currently in the overlays list.
|
||||
|
||||
/obj/machinery/field/generator/proc/turn_off()
|
||||
active = FG_OFFLINE
|
||||
CanAtmosPass = ATMOS_PASS_YES
|
||||
can_atmos_pass = ATMOS_PASS_YES
|
||||
air_update_turf(TRUE, FALSE)
|
||||
INVOKE_ASYNC(src, .proc/cleanup)
|
||||
addtimer(CALLBACK(src, .proc/cool_down), 5 SECONDS)
|
||||
@@ -275,7 +275,7 @@ no power level overlay is currently in the overlays list.
|
||||
turn_off()
|
||||
return
|
||||
move_resist = INFINITY
|
||||
CanAtmosPass = ATMOS_PASS_NO
|
||||
can_atmos_pass = ATMOS_PASS_NO
|
||||
air_update_turf(TRUE, TRUE)
|
||||
addtimer(CALLBACK(src, .proc/setup_field, 1), 1)
|
||||
addtimer(CALLBACK(src, .proc/setup_field, 2), 2)
|
||||
|
||||
Reference in New Issue
Block a user