Files
f881d54dbf Panel port test [IDB IGNORE] (#17350)
* no more self callbacks on update fullness

* fix missing code

* Belly test

* import type

* full partiy

* .

* fix preview

* in belly to late join

* robot nutri

* .

* .

* update export

* finish open todos

* code cleanup

* fix some old slacking

* move this to a define

* fixing

* ,

* .

* Creates a Consume Belly Reagents pref (#10)

* Creates a Consume Belly Reagents pref

Added a Consume Belly Reagents pref that blocks the consumption of all reagents produced by a belly via reagent containers such as food, drink, beakers, pills, syringes and hyposprays. Seems to work well as intended.

* These changes at least do not cause any problems

* Missed this one

* Reverts reagent_names

* _BELLY versions

* Fixed typo

* .

* fix admin spawn mobs bellies

* also fix that bug

* hints

* fix that

* .

* initial

* should be all

* that is no longer needed

* fluids into hand items

I was convinced this was broken until it was pointed out that the item has to be ON THE GROUND to fill it...Instead of in your hand. That seems so convoluted.

ARC = active-hand reagent container. IRC = inactive-hand reagent container.

* some stuff

---------

Co-authored-by: SatinIsle <98125273+SatinIsle@users.noreply.github.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
2025-03-16 17:08:47 -04:00

57 lines
1.7 KiB
Plaintext

/obj/machinery/computer/station_alert
name = "Station Alert Console"
desc = "Used to access the station's automated alert system."
icon_keyboard = "tech_key"
icon_screen = "alert:0"
light_color = "#e6ffff"
circuit = /obj/item/circuitboard/stationalert_engineering
var/datum/tgui_module/alarm_monitor/alarm_monitor
var/monitor_type = /datum/tgui_module/alarm_monitor/engineering
/obj/machinery/computer/station_alert/security
monitor_type = /datum/tgui_module/alarm_monitor/security
circuit = /obj/item/circuitboard/stationalert_security
/obj/machinery/computer/station_alert/all
monitor_type = /datum/tgui_module/alarm_monitor/all
circuit = /obj/item/circuitboard/stationalert_all
/obj/machinery/computer/station_alert/Initialize(mapload)
alarm_monitor = new monitor_type(src)
alarm_monitor.register_alarm(src, "update_console_icon")
. = ..()
/obj/machinery/computer/station_alert/Destroy()
alarm_monitor.unregister_alarm(src)
qdel(alarm_monitor)
. = ..()
/obj/machinery/computer/station_alert/attack_ai(mob/user)
add_fingerprint(user)
if(stat & (BROKEN|NOPOWER))
return
tgui_interact(user)
return
/obj/machinery/computer/station_alert/attack_hand(mob/user)
add_fingerprint(user)
if(stat & (BROKEN|NOPOWER))
return
tgui_interact(user)
return
/obj/machinery/computer/station_alert/tgui_interact(mob/user)
alarm_monitor.tgui_interact(user)
/obj/machinery/computer/station_alert/proc/update_console_icon()
if(!(stat & (BROKEN|NOPOWER)))
var/last_icon = icon_screen
var/list/alarms = alarm_monitor ? alarm_monitor.major_alarms() : list()
if(alarms.len)
icon_screen = "alert:2"
else
icon_screen = initial(icon_screen)
if(last_icon != icon_screen)
update_icon()