Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions code/__DEFINES/access.dm
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@
#define ACCESS_MAINT_TUNNELS "maint_tunnels"
/// Access to get into APCs, engineering equipment lockers, typically mapped in for key power rooms across the station, engineering vending machines, emitters, and some other stuff.
#define ACCESS_ENGINE_EQUIP "engine_equip"
/// Access to get into air alarms, atmos equipment lockers, potentially atmos storage rooms (like the gas storage room).
#define ACCESS_ATMOS_EQUIP "atmos_equip"
/// Access to "construction" areas of the station. However, in mapping, it's used to get access to the front door and lathe room of the engineering department.
#define ACCESS_CONSTRUCTION "construction"
/// Access to the technical storage room (contains all the boards and other miscellaneous engineering gear).
Expand Down Expand Up @@ -286,6 +288,7 @@
/// Departmental/general/common area accesses. Do not use direct, access via SSid_access.get_flag_access_list(ACCESS_FLAG_COMMON)
#define COMMON_ACCESS list( \
ACCESS_ATMOSPHERICS, \
ACCESS_ATMOS_EQUIP, \
ACCESS_AUX_BASE, \
ACCESS_BAR, \
ACCESS_BIT_DEN, \
Expand Down Expand Up @@ -483,6 +486,7 @@
/// Used to seed the accesses_by_region list in SSid_access. A list of all engineering regional accesses that are overseen by the CE.
#define REGION_ACCESS_ENGINEERING list( \
ACCESS_ATMOSPHERICS, \
ACCESS_ATMOS_EQUIP, \
ACCESS_AUX_BASE, \
ACCESS_CE, \
ACCESS_CONSTRUCTION, \
Expand Down
1 change: 1 addition & 0 deletions code/controllers/subsystem/id_access.dm
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ SUBSYSTEM_DEF(id_access)
desc_by_access["[ACCESS_CHAPEL_OFFICE]"] = "Chapel Office"
desc_by_access["[ACCESS_TECH_STORAGE]"] = "Technical Storage"
desc_by_access["[ACCESS_ATMOSPHERICS]"] = "Atmospherics"
desc_by_access["[ACCESS_ATMOS_EQUIP]"] = "Atmospherics Equipment"
desc_by_access["[ACCESS_CREMATORIUM]"] = "Crematorium"
desc_by_access["[ACCESS_ARMORY]"] = "Armory"
desc_by_access["[ACCESS_CONSTRUCTION]"] = "Construction"
Expand Down
4 changes: 4 additions & 0 deletions code/datums/id_trim/jobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
sechud_icon_state = SECHUD_ATMOSPHERIC_TECHNICIAN
minimal_access = list(
ACCESS_ATMOSPHERICS,
ACCESS_ATMOS_EQUIP,
ACCESS_AUX_BASE,
ACCESS_CONSTRUCTION,
ACCESS_ENGINEERING,
Expand Down Expand Up @@ -346,6 +347,7 @@
extra_wildcard_access = list()
minimal_access = list(
ACCESS_ATMOSPHERICS,
ACCESS_ATMOS_EQUIP,
ACCESS_AUX_BASE,
ACCESS_BRIG_ENTRANCE,
ACCESS_CE,
Expand Down Expand Up @@ -1159,6 +1161,7 @@
ACCESS_ENGINEERING,
)
elevated_access = list(
ACCESS_ATMOS_EQUIP,
ACCESS_AUX_BASE,
ACCESS_CONSTRUCTION,
ACCESS_ENGINE_EQUIP,
Expand Down Expand Up @@ -1241,6 +1244,7 @@
sechud_icon_state = SECHUD_STATION_ENGINEER
minimal_access = list(
ACCESS_AUX_BASE,
ACCESS_ATMOS_EQUIP,
ACCESS_CONSTRUCTION,
ACCESS_ENGINEERING,
ACCESS_ENGINE_EQUIP,
Expand Down
8 changes: 4 additions & 4 deletions code/game/machinery/buttons.dm
Original file line number Diff line number Diff line change
Expand Up @@ -423,22 +423,22 @@ MAPPING_DIRECTIONAL_HELPERS(/obj/machinery/button/door, 24)
/obj/machinery/button/door/incinerator_vent_atmos_main
name = "turbine vent control"
id = INCINERATOR_ATMOS_MAINVENT
req_one_access = list(ACCESS_ATMOSPHERICS, ACCESS_MAINT_TUNNELS)
req_one_access = list(ACCESS_ATMOSPHERICS, ACCESS_ATMOS_EQUIP, ACCESS_MAINT_TUNNELS)

/obj/machinery/button/door/incinerator_vent_atmos_aux
name = "combustion chamber vent control"
id = INCINERATOR_ATMOS_AUXVENT
req_one_access = list(ACCESS_ATMOSPHERICS, ACCESS_MAINT_TUNNELS)
req_one_access = list(ACCESS_ATMOSPHERICS, ACCESS_ATMOS_EQUIP, ACCESS_MAINT_TUNNELS)

/obj/machinery/button/door/atmos_test_room_mainvent_1
name = "test chamber 1 vent control"
id = TEST_ROOM_ATMOS_MAINVENT_1
req_one_access = list(ACCESS_ATMOSPHERICS)
req_one_access = list(ACCESS_ATMOSPHERICS, ACCESS_ATMOS_EQUIP)

/obj/machinery/button/door/atmos_test_room_mainvent_2
name = "test chamber 2 vent control"
id = TEST_ROOM_ATMOS_MAINVENT_2
req_one_access = list(ACCESS_ATMOSPHERICS)
req_one_access = list(ACCESS_ATMOSPHERICS, ACCESS_ATMOS_EQUIP)

/obj/machinery/button/door/incinerator_vent_syndicatelava_main
name = "turbine vent control"
Expand Down
2 changes: 1 addition & 1 deletion code/game/objects/items/devices/flashlight.dm
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@
if(!scanning.get_bodypart(BODY_ZONE_HEAD))
to_chat(user, span_warning("[scanning] doesn't have a head!"))
return
if(light_power < 1)
if(light_power < 0.5)
to_chat(user, span_warning("[src] isn't bright enough to see anything!"))
return

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@

/obj/structure/closet/secure_closet/atmospherics
name = "atmospheric technician's locker"
req_access = list(ACCESS_ATMOSPHERICS)
req_access = list(ACCESS_ATMOS_EQUIP)
icon_state = "atmos"

/obj/structure/closet/secure_closet/atmospherics/PopulateContents()
Expand Down
10 changes: 5 additions & 5 deletions code/modules/atmospherics/environmental/LINDA_fire.dm
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@

/// base sprite used for our icon states when smoothing
/// BAAAASICALY the same as icon_state but is helpful to avoid duplicated work
var/fire_stage = ""
var/fire_stage = 1/*""*/
/**
* Volume is the representation of how big and healthy a fire is.
* Hotspot volume will be divided by turf volume to get the ratio for temperature setting on non bypassing mode.
Expand Down Expand Up @@ -307,7 +307,7 @@
perform_exposure()

if(bypassing)
set_fire_stage("heavy")
set_fire_stage(3/*"heavy"*/)
if(!cold_fire)
location.burn_tile()

Expand All @@ -323,9 +323,9 @@

else
if(volume > CELL_VOLUME*0.4)
set_fire_stage("medium")
set_fire_stage(2/*"medium"*/)
else
set_fire_stage("light")
set_fire_stage(1/*"light"*/)

if((visual_update_tick++ % 7) == 0)
update_color()
Expand All @@ -336,7 +336,7 @@
if(fire_stage == stage)
return
fire_stage = stage
icon_state = stage
icon_state = "[stage]"
dir = pick(GLOB.cardinals)
update_color()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
idle_power_usage = BASE_MACHINE_IDLE_CONSUMPTION * 0.05
active_power_usage = BASE_MACHINE_ACTIVE_CONSUMPTION * 0.02
power_channel = AREA_USAGE_ENVIRON
req_access = list(ACCESS_ENGINEERING)
req_access = list(ACCESS_ATMOS_EQUIP)
max_integrity = 250
integrity_failure = 0.33
armor_type = /datum/armor/machinery_airalarm
Expand Down
2 changes: 1 addition & 1 deletion code/modules/cargo/packs/emergency.dm
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
name = "Firefighting Tank Backpack"
desc = "Mow down fires with this high-capacity fire fighting tank backpack."
cost = CARGO_CRATE_VALUE * 1.8
access = ACCESS_ATMOSPHERICS
access = ACCESS_ATMOS_EQUIP
contains = list(/obj/item/watertank/atmos)
crate_name = "firefighting backpack crate"
crate_type = /obj/structure/closet/crate/secure/engineering/atmos
Expand Down
6 changes: 3 additions & 3 deletions code/modules/cargo/packs/engineering.dm
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@
desc = "Did someone let the air out of the shuttle again? We've got you covered. \
Contains two portable air pumps."
cost = CARGO_CRATE_VALUE * 4.5
access_view = ACCESS_ATMOSPHERICS
access_view = ACCESS_ATMOS_EQUIP
contains = list(/obj/machinery/portable_atmospherics/pump = 2)
crate_name = "portable air pump crate"
crate_type = /obj/structure/closet/crate/secure/engineering/atmos
Expand All @@ -132,7 +132,7 @@
name = "Portable Scrubber Crate"
desc = "Clean up that pesky plasma leak with your very own set of two portable scrubbers."
cost = CARGO_CRATE_VALUE * 4.5
access_view = ACCESS_ATMOSPHERICS
access_view = ACCESS_ATMOS_EQUIP
contains = list(/obj/machinery/portable_atmospherics/scrubber = 2)
crate_name = "portable scrubber crate"
crate_type = /obj/structure/closet/crate/secure/engineering/atmos
Expand All @@ -141,7 +141,7 @@
name = "Huge Portable Scrubber Crate"
desc = "A huge portable scrubber for huge atmospherics mistakes."
cost = CARGO_CRATE_VALUE * 7.5
access_view = ACCESS_ATMOSPHERICS
access_view = ACCESS_ATMOS_EQUIP
contains = list(/obj/machinery/portable_atmospherics/scrubber/huge/movable/cargo)
crate_name = "huge portable scrubber crate"
crate_type = /obj/structure/closet/crate/large
Expand Down
10 changes: 10 additions & 0 deletions code/modules/mapping/access_helpers.dm
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@
access_list += ACCESS_ATMOSPHERICS
return access_list

/obj/effect/mapping_helpers/airlock/access/any/engineering/atmos_equip/get_access()
var/list/access_list = ..()
access_list += ACCESS_ATMOS_EQUIP
return access_list

/obj/effect/mapping_helpers/airlock/access/any/engineering/tcoms/get_access()
var/list/access_list = ..()
access_list += ACCESS_TCOMMS
Expand Down Expand Up @@ -602,6 +607,11 @@
access_list += ACCESS_ATMOSPHERICS
return access_list

/obj/effect/mapping_helpers/airlock/access/all/engineering/atmos_equip/get_access()
var/list/access_list = ..()
access_list += ACCESS_ATMOS_EQUIP
return access_list

/obj/effect/mapping_helpers/airlock/access/all/engineering/tcoms/get_access()
var/list/access_list = ..()
access_list += ACCESS_TCOMMS
Expand Down
Loading