Adds supermatter events (#21406)

* Class D and C SM events

* see above

* B-Class events

* A-class events

* S-class events (ebents done)

* Start of console

* datumization p1

* supermatter_event

* beginning of tgui

* adds new circuitboard for anomaly monitoring

* more supermatter event code

* forgot to change last_events

* tgui progression

* fix the freakin errors

* forgot to move this to on_start()

* some small fixes - tgui stuff to change

* bug fixes

* TGUI take two - in progress

* TGUI and circuit board removal for anom console

* Fixes world time spamming events

* S class event fix

* Fixes D class events

* Fixes worldtime based event calling

* Apply suggestions from code review

Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>

* ACTUAL logging

* I blame copypaste

* Goddamit

---------

Co-authored-by: Contrabang <91113370+Contrabang@users.noreply.github.com>
Co-authored-by: Burzah <mbsx@proton.me>
Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
Co-authored-by: Luc <89928798+lewcc@users.noreply.github.com>
This commit is contained in:
Silverplate
2023-08-22 21:48:13 +01:00
committed by GitHub
co-authored by Luc Contrabang Burzah DGamerL
parent c203fe01b9
commit 8d6cfbd418
7 changed files with 299 additions and 18 deletions
+13
View File
@@ -1012,6 +1012,19 @@
to_chat(user, "You emag the APC interface.")
update_icon()
/obj/machinery/power/apc/proc/apc_short()
// if it has internal wires, cut the power wires
if(wires)
if(!wires.is_cut(WIRE_MAIN_POWER1))
wires.cut(WIRE_MAIN_POWER1)
if(!wires.is_cut(WIRE_MAIN_POWER2))
wires.cut(WIRE_MAIN_POWER2)
// if it was operating, toggle off the breaker
if(operating)
toggle_breaker()
// no matter what, ensure the area knows something happened to the power
apc_area.powernet.power_change()
/// *************
/// APC subtypes
/// *************