Skip to content

Commit

Permalink
[MIRROR] [Early Mirror] Adds a station_only subtype of Atmospherics/S…
Browse files Browse the repository at this point in the history
…tation Alerts Consoles that only displays station (+mining station) alarms (#5308)

* [Early Mirror] Adds a station_only subtype of Atmospherics/Station Alerts Consoles that only displays station (+mining station) alarms (#4768)

* Adds a station_only subtype of Atmospherics/Station Alerts Consoles that only displays station (+mining station) alarms (#88343)

## About The Pull Request
A more proper way to be solving the alarm appearing in #88335 (That PR
still actually makes the alarm read the inside of the booth so its still
important)

As it turns out, Canary already does this - when creating a new
`/datum/station_alert/` to track the alarms, it passes the optional
areas filter included in the datum with a preset of all station areas
plus the mining station areas.

This PR (after a slight rework) adds a Subtype of the monitoring
consoles called `station_only`, which have checks that only display
alarms from the station and miningstation. These replace all pre-mapped
consoles in stations only.
This will mostly be notable on Icebox and other Multi-Z stations, where
ruins will stop polluting the alarm boards and alarms on all levels will
be displayed - and, on other stations, the fact that alarm boards will
now also display the mining station.
<details><summary>z-level vs station_only</summary>


![image](https://github.com/user-attachments/assets/625eeb1a-0dcf-4842-b02d-4d4dcf9fed51)


![image](https://github.com/user-attachments/assets/1627b062-11bd-4f1e-ac3d-f8824018460f)


</details>

Examining the console will display if it's in z-level or station-area
mode, and this can be changed by multitooling the circuitboard (for crew
rebuilding both damaged station consoles, or space ruins)

<details><summary>examines</summary>


![image](https://github.com/user-attachments/assets/3e9d863e-a7f8-4fdf-8545-cf5c2c4b3bf5)

![image](https://github.com/user-attachments/assets/7e06cdc0-8dce-4006-9d75-29f2fb291cab)


</details>

- [x] TO-DO: Fix Station Alerts Consoles not get set up correctly when
rebuilt ~~(the tracking is set up before the circuit can pass on
`station_only`)~~ (Done much cleaner now, thank you Lemon/Potato)
- [x] TO-DO: Test how this behaves with renamed or newly created
areas... (Renamed functions fine, Newly Created is probably better fixed
in the creation code so that it applies to other station area checks.)

## Why It's Good For The Game
Engineering shouldn't need to worry about ruins or otherwise non-station
alarms. Appearing in the station consoles is confusing and annoying to
those who like to see the board green all across.
Plus, they SHOULD be at least slightly worried about the mining station,
or at least able to tell somebody else about alerts there.
Also of course they should just be able to see all of icebox/tram/other
multi-z stations from alert consoles instead of needing to have one
per-zlevel
## Changelog
:cl:
qol: Atmospherics/Station Alerts Consoles can now be set to only display
station (+mining station) areas. Station-mapped ones are set to this by
default. Use a multitool on the circuitboard to toggle between z-level
or station-area tracking!
fix: In turn, Atmospherics Alert Consoles now actually show the whole of
multi-z stations instead of ignoring other z-levels
/:cl:

---------

Co-authored-by: LemonInTheDark <[email protected]>

* modular map consoles

---------

Co-authored-by: LemonInTheDark <[email protected]>
Co-authored-by: Bloop <[email protected]>

* [MIRROR] [Early Mirror] Adds a station_only subtype of Atmospherics/Station Alerts Consoles that only displays station (+mining station) alarms

* modular

---------

Co-authored-by: OrionTheFox <[email protected]>
Co-authored-by: LemonInTheDark <[email protected]>
Co-authored-by: Bloop <[email protected]>
Co-authored-by: StealsThePRs <[email protected]>
Co-authored-by: Iajret <[email protected]>
  • Loading branch information
6 people authored Jan 30, 2025
1 parent 6b893f3 commit 3082612
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 59 deletions.
12 changes: 6 additions & 6 deletions _maps/map_files/KiloStation2/KiloStation2.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -24874,7 +24874,7 @@
/area/station/hallway/primary/central)
"hXL" = (
/obj/effect/turf_decal/bot,
/obj/machinery/computer/station_alert,
/obj/machinery/computer/station_alert/station_only,
/obj/machinery/requests_console/directional/east{
department = "Atmospherics";
name = "Atmospherics Requests Console"
Expand Down Expand Up @@ -32223,7 +32223,7 @@
/turf/open/floor/iron/showroomfloor,
/area/station/security/brig)
"kql" = (
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 8
},
/obj/effect/turf_decal/tile/yellow/half/contrasted{
Expand Down Expand Up @@ -47818,7 +47818,7 @@
/turf/open/floor/iron/dark,
/area/station/ai_monitored/command/storage/satellite)
"pwo" = (
/obj/machinery/computer/station_alert,
/obj/machinery/computer/station_alert/station_only,
/obj/effect/turf_decal/bot,
/obj/structure/disposalpipe/segment{
dir = 4
Expand Down Expand Up @@ -58891,7 +58891,7 @@
/turf/open/floor/plating,
/area/station/maintenance/solars/starboard/aft)
"sWj" = (
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 8
},
/obj/effect/turf_decal/bot,
Expand Down Expand Up @@ -60658,7 +60658,7 @@
/turf/open/floor/iron/dark,
/area/station/engineering/atmos)
"tzH" = (
/obj/machinery/computer/station_alert,
/obj/machinery/computer/station_alert/station_only,
/obj/effect/turf_decal/bot,
/obj/machinery/light/directional/north,
/obj/machinery/newscaster/directional/north,
Expand Down Expand Up @@ -75023,7 +75023,7 @@
/obj/effect/turf_decal/stripes/corner{
dir = 1
},
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 8
},
/obj/effect/turf_decal/tile/neutral/half/contrasted{
Expand Down
10 changes: 5 additions & 5 deletions _maps/map_files/NSSJourney/NSSJourney.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -20137,7 +20137,7 @@
/turf/open/floor/iron,
/area/station/engineering/atmos)
"bSE" = (
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 8
},
/obj/machinery/light/directional/east,
Expand Down Expand Up @@ -23440,7 +23440,7 @@
/turf/open/floor/iron/smooth_large,
/area/station/engineering/main)
"cjU" = (
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 4
},
/obj/effect/turf_decal/siding/thinplating{
Expand Down Expand Up @@ -28173,7 +28173,7 @@
/turf/open/floor/iron,
/area/station/command/heads_quarters/ce)
"cSM" = (
/obj/machinery/computer/station_alert,
/obj/machinery/computer/station_alert/station_only,
/obj/item/radio/intercom/directional/north,
/turf/open/floor/iron/smooth_large,
/area/station/engineering/engine_smes)
Expand Down Expand Up @@ -35426,7 +35426,7 @@
/area/station/commons/dorms)
"hno" = (
/obj/effect/turf_decal/tile/neutral/fourcorners,
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 4
},
/obj/machinery/airalarm/directional/west,
Expand Down Expand Up @@ -48436,7 +48436,7 @@
/area/station/commons/vacant_room/office)
"piw" = (
/obj/structure/cable,
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 8
},
/obj/effect/turf_decal/tile/yellow,
Expand Down
30 changes: 15 additions & 15 deletions _maps/map_files/NSVBlueshift/Blueshift.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,7 @@
/turf/open/floor/wood,
/area/station/security/courtroom)
"arT" = (
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 1
},
/obj/machinery/computer/security/telescreen/research/directional/south,
Expand Down Expand Up @@ -4115,7 +4115,7 @@
/area/station/maintenance/department/engineering/engine_aft_starboard)
"aQq" = (
/obj/structure/window/reinforced/spawner/directional/east,
/obj/machinery/computer/atmos_alert{
/obj/machinery/computer/atmos_alert/station_only{
dir = 8
},
/obj/effect/turf_decal/bot,
Expand Down Expand Up @@ -4154,7 +4154,7 @@
/turf/open/floor/wood,
/area/station/maintenance/abandon_art_studio)
"aQT" = (
/obj/machinery/computer/atmos_alert{
/obj/machinery/computer/atmos_alert/station_only{
dir = 8
},
/obj/structure/window/reinforced/spawner/directional/east,
Expand Down Expand Up @@ -17649,7 +17649,7 @@
/area/station/maintenance/department/security/prison_upper)
"dsm" = (
/obj/structure/window/reinforced/spawner/directional/south,
/obj/machinery/computer/atmos_alert{
/obj/machinery/computer/atmos_alert/station_only{
dir = 1
},
/obj/effect/turf_decal/tile/yellow{
Expand Down Expand Up @@ -27850,7 +27850,7 @@
/obj/effect/turf_decal/siding/yellow{
dir = 4
},
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 4
},
/obj/machinery/computer/security/telescreen/ce/directional/west,
Expand Down Expand Up @@ -43219,7 +43219,7 @@
/area/station/ai_monitored/turret_protected/aisat_interior)
"ioW" = (
/obj/machinery/airalarm/directional/south,
/obj/machinery/computer/atmos_alert{
/obj/machinery/computer/atmos_alert/station_only{
dir = 1
},
/obj/effect/turf_decal/stripes{
Expand Down Expand Up @@ -43736,7 +43736,7 @@
/obj/effect/decal/cleanable/dirt{
icon_state = "dirt-flat-1"
},
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 8
},
/turf/open/floor/iron/smooth,
Expand Down Expand Up @@ -62882,7 +62882,7 @@
/turf/open/floor/iron/dark,
/area/station/cargo/office)
"mcu" = (
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 8
},
/obj/effect/decal/cleanable/dirt{
Expand Down Expand Up @@ -63779,7 +63779,7 @@
/turf/open/floor/plating,
/area/station/maintenance/disposal)
"mlC" = (
/obj/machinery/computer/atmos_alert{
/obj/machinery/computer/atmos_alert/station_only{
dir = 1
},
/obj/effect/turf_decal/tile/yellow/half/contrasted{
Expand Down Expand Up @@ -79765,7 +79765,7 @@
/obj/effect/decal/cleanable/dirt{
icon_state = "dirt-flat-1"
},
/obj/machinery/computer/atmos_alert{
/obj/machinery/computer/atmos_alert/station_only{
dir = 8
},
/turf/open/floor/iron/smooth,
Expand Down Expand Up @@ -83438,7 +83438,7 @@
/turf/open/floor/iron,
/area/station/hallway/primary/central)
"qaZ" = (
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 1
},
/obj/effect/turf_decal/tile/yellow/half/contrasted{
Expand Down Expand Up @@ -90618,7 +90618,7 @@
/turf/open/floor/iron/white,
/area/station/medical/medbay/central)
"rsd" = (
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 8
},
/obj/structure/window/reinforced/spawner/directional/south,
Expand Down Expand Up @@ -97371,7 +97371,7 @@
/obj/effect/turf_decal/siding/yellow{
dir = 4
},
/obj/machinery/computer/atmos_alert{
/obj/machinery/computer/atmos_alert/station_only{
dir = 4
},
/obj/machinery/keycard_auth/wall_mounted/directional/west,
Expand Down Expand Up @@ -118364,7 +118364,7 @@
/turf/open/floor/iron,
/area/station/command/bridge)
"wCR" = (
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 1
},
/obj/machinery/light/directional/south,
Expand Down Expand Up @@ -126553,7 +126553,7 @@
/area/station/security/prison/workout)
"yhu" = (
/obj/structure/window/reinforced/spawner/directional/west,
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 4
},
/obj/effect/turf_decal/tile/yellow{
Expand Down
20 changes: 10 additions & 10 deletions _maps/map_files/Ouroboros/Ouroboros.dmm
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
/turf/open/floor/iron,
/area/station/maintenance/disposal)
"abb" = (
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 1
},
/obj/effect/turf_decal/box,
Expand Down Expand Up @@ -12711,7 +12711,7 @@
/turf/open/floor/iron/dark/smooth_edge,
/area/station/security/brig)
"dLY" = (
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 8
},
/obj/effect/turf_decal/box,
Expand Down Expand Up @@ -17451,7 +17451,7 @@
/turf/open/floor/plating,
/area/station/maintenance/port/lesser)
"fca" = (
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 1
},
/obj/structure/railing/corner,
Expand Down Expand Up @@ -20107,7 +20107,7 @@
/area/station/medical/virology)
"fSG" = (
/obj/effect/turf_decal/box,
/obj/machinery/computer/atmos_alert{
/obj/machinery/computer/atmos_alert/station_only{
dir = 4
},
/turf/open/floor/iron/dark/smooth_large,
Expand Down Expand Up @@ -23942,7 +23942,7 @@
/turf/open/floor/iron/white,
/area/station/medical/chemistry)
"gZp" = (
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 8
},
/obj/effect/turf_decal/box,
Expand Down Expand Up @@ -27827,7 +27827,7 @@
/area/station/science/ordnance)
"iey" = (
/obj/effect/turf_decal/box,
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 8
},
/obj/machinery/light_switch/directional/east,
Expand Down Expand Up @@ -28958,7 +28958,7 @@
/turf/open/openspace,
/area/station/engineering/atmos/upper)
"ivc" = (
/obj/machinery/computer/station_alert,
/obj/machinery/computer/station_alert/station_only,
/obj/effect/turf_decal/box,
/obj/machinery/requests_console/auto_name/directional/north,
/obj/effect/mapping_helpers/requests_console/assistance,
Expand Down Expand Up @@ -44081,7 +44081,7 @@
/turf/closed/wall,
/area/station/commons/vacant_room/office)
"mHO" = (
/obj/machinery/computer/station_alert{
/obj/machinery/computer/station_alert/station_only{
dir = 4
},
/obj/effect/turf_decal/box,
Expand Down Expand Up @@ -70790,7 +70790,7 @@
/area/station/engineering/lobby)
"uBu" = (
/obj/effect/turf_decal/box,
/obj/machinery/computer/atmos_alert{
/obj/machinery/computer/atmos_alert/station_only{
dir = 4
},
/turf/open/floor/iron/dark/smooth_large,
Expand Down Expand Up @@ -73140,7 +73140,7 @@
/turf/open/floor/carpet/green,
/area/station/service/library/lounge)
"vjq" = (
/obj/machinery/computer/atmos_alert{
/obj/machinery/computer/atmos_alert/station_only{
dir = 8
},
/obj/effect/turf_decal/tile/yellow/half/contrasted{
Expand Down
Loading

0 comments on commit 3082612

Please sign in to comment.