mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-09 16:05:07 +00:00
## About The Pull Request shield gens now have a board, cant be printed  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>
15 lines
499 B
Plaintext
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
|
|
..()
|