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
+1 -11
View File
@@ -59,17 +59,7 @@
continue
// if we are going to break this one
if(prob(APC_BREAK_PROBABILITY))
// if it has internal wires, cut the power wires
if(A.wires)
if(!A.wires.is_cut(WIRE_MAIN_POWER1))
A.wires.cut(WIRE_MAIN_POWER1)
if(!A.wires.is_cut(WIRE_MAIN_POWER2))
A.wires.cut(WIRE_MAIN_POWER2)
// if it was operating, toggle off the breaker
if(A.operating)
A.toggle_breaker()
// no matter what, ensure the area knows something happened to the power
current_area.powernet.power_change()
A.apc_short()
affected_apc_count++
log_and_message_admins("APC Short Out event has shorted out [affected_apc_count] APCs.")