mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-13 08:56:49 +01:00
Atmos Alarm Control computer program search fix and UI refactor (#21056)
Scope creeped PR. Fixes a breaking bug in the Atmos Alarm Control application introduced after areas-cleanup PR, but also refactors it into a grid-based interface that actually allows you to reliably search alarms by name, department, and deck # (possible now with all the area metadata we have to play with). Also does behind-the-scenes cleanup of alarm panel code in general, a few area def problems, and some manually defined air alarm names on the map. --------- Signed-off-by: Batrachophreno <Batrochophreno@gmail.com>
This commit is contained in:
@@ -60,7 +60,11 @@
|
||||
var/alarms = list()
|
||||
for(var/obj/machinery/alarm/alarm in monitored_alarms)
|
||||
alarms += list(list(
|
||||
"name" = sanitize(alarm.name),
|
||||
"deck" = alarm.alarm_area.horizon_deck,
|
||||
"dept" = alarm.alarm_area.department,
|
||||
"subdept" = alarm.alarm_area.subdepartment,
|
||||
"name" = alarm.alarm_area_name,
|
||||
"searchname" = alarm.alarm_area_name_full,
|
||||
"ref"= "[REF(alarm)]",
|
||||
"danger" = max(alarm.danger_level, alarm.alarm_area.atmosalm)
|
||||
))
|
||||
|
||||
Reference in New Issue
Block a user