-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MIRROR] xenobio shield gens can be rebuilt + some code cleanup and c…
…hanges [MDB IGNORE] (#25353) (#904) * 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 :cl: fix: shield wall gens actually use power now qol: shield wall gens may now be rebuilt and use some balloon alerts, and have wiring /:cl: --------- * xenobio shield gens can be rebuilt + some code cleanup and changes --------- Co-authored-by: SkyratBot <[email protected]> Co-authored-by: jimmyl <[email protected]> Co-authored-by: MrMelbert <51863163+MrMelbert@ users.noreply.github.com>
- Loading branch information
1 parent
18f5169
commit 0b9ab7a
Showing
5 changed files
with
75 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/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 | ||
..() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters