Files
Bubberstation/code/datums/wires/shieldwallgen.dm
jimmyl fa52602e37 xenobio shield gens can be rebuilt + some code cleanup and changes (#79887)
## About The Pull Request
shield gens now have a board, cant be printed
![2023-11-22
06_49_55-Window](https://github.com/tgstation/tgstation/assets/70376633/0041d965-98ae-40a1-b36a-fd6ce15f4720)

you may now screw open an unlocked shield generator to access its sole
wire, the wire that toggles it on and off
you may also after that crowbar it if it isnt active to deconstruct

converted things to balloon alerts and some cleaning

## Why It's Good For The Game

these things just vanishing if destroyed is dumb and wiring allows for
shenanigans

## Changelog
🆑
fix: shield wall gens actually use power now
qol: shield wall gens may now be rebuilt and use some balloon alerts,
and have wiring
/🆑

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
2023-11-30 14:06:42 -05:00

15 lines
499 B
Plaintext

/datum/wires/shieldwallgen
proper_name = "Shield Wall Generator"
randomize = TRUE
holder_type = /obj/machinery/power/shieldwallgen
/datum/wires/shieldwallgen/New(atom/holder)
wires = list(WIRE_ACTIVATE)
..()
/datum/wires/shieldwallgen/on_pulse(wire)
var/obj/machinery/power/shieldwallgen/generator = holder
if(generator.anchored && generator.powernet)
generator.active = generator.active ? FALSE : TRUE //shield gens use some silly defines here but its usually just a true or false
..()