Files
BatrachophrenoandGitHub c92d909534 Wires Panel and Signaler Expansion (#22846)
Fleshes out wire panel skill behavior and signaler management.

Electrical Engineering 4 was very OP for revealing all wire labels of
all machines, and it was super fun while it lasted.

Wire panels now have associated skills with their use, and increased
skill ranks will increase the proportion of wires (chosen at random)
that are easily recognizable on sight for certain types of wiring
panels.
**Professional:** 75% revealed
**Trained:** 50% revealed
**Familiar:** 30% revealed
_(note: having both Electrical and Mechanical engineering at least
Trained gives you that baseline 30%, reflecting how your knowledge can
probably translate to decent guesswork.)_

The following wire panels are affected:
**Electrical Engineering:**
- APCs
- Cameras
- IFF Beacons
- Radios
- Smartfridges
- SMES Units

**Mechanical Engineering**
- Airlocks
- Disposal Units
- Fabricators
- Vending Machines

**Atmospherics Systems**
- Air Alarms

**Reactor Systems**
- Particle Accelerator Control Boxes (lol)

**Robotics**
- Hardsuits
- Suit Storage Units (sharing the love is all)
- Robots
- Tag Scanners

**Xenobiology**
- Stasis Cages

Also, I made it possible to blow out all the lights in an APC's area by
snipping the power regulator cable and then pulsing the lights wire.
Great for signalers.

Speaking of signalers, new app deployed to all Engineering, Research,
and Robotics personal modular computers:
<img width="816" height="722" alt="Screenshot 2026-07-14 144049"
src="https://github.com/user-attachments/assets/3d588712-ebfd-47ac-b699-7cdac2c04907"
/>

Self-explanatory. Please only use corporate-provided software for
behavior within your contract regulations.
2026-07-26 18:05:15 +00:00

68 lines
1.8 KiB
Plaintext

/datum/wires/nuclearbomb
proper_name = "Nuclear Fission Device"
holder_type = /obj/structure/machinery/nuclearbomb
random = 1
// If we ever get an explosives or similar skill... well, probably not even then.
associated_skill = null
/datum/wires/nuclearbomb/New()
wires = list(
WIRE_LIGHT, WIRE_TIMING,
WIRE_SAFETY
)
/// Listen, Derek. I know you're a surgeon, but...
add_duds(2)
..()
/datum/wires/nuclearbomb/interactable(mob/user)
if(!..())
return FALSE
var/obj/structure/machinery/nuclearbomb/N = holder
return N.panel_open
/datum/wires/nuclearbomb/get_status()
var/obj/structure/machinery/nuclearbomb/N = holder
. += ..()
. += "The device is [N.timing ? "shaking!" : "still."]"
. += "The device is is [N.safety ? "quiet" : "whirring"]."
. += "The lights are [N.lighthack ? "static" : "functional"]."
/datum/wires/nuclearbomb/on_pulse(wire)
var/obj/structure/machinery/nuclearbomb/N = holder
switch(wire)
if(WIRE_LIGHT)
N.lighthack = !N.lighthack
N.update_icon()
spawn(100)
N.lighthack = !N.lighthack
N.update_icon()
if(WIRE_TIMING)
if(N.timing)
spawn
log_and_message_admins("pulsed a nuclear bomb's detonation wire, causing it to explode.")
N.explode()
if(WIRE_SAFETY)
N.safety = !N.safety
spawn(100)
N.safety = !N.safety
if(N.safety == 1)
N.visible_message(SPAN_NOTICE("\The [N] quiets down."))
N.secure_device()
else
N.visible_message(SPAN_NOTICE("\The [N] emits a quiet whirling noise!"))
/datum/wires/nuclearbomb/on_cut(wire, mend, source)
var/obj/structure/machinery/nuclearbomb/N = holder
switch(wire)
if(WIRE_SAFETY)
N.safety = mend
if(N.timing)
spawn
log_and_message_admins("cut a nuclear bomb's timing wire, causing it to explode.")
N.explode()
if(WIRE_TIMING)
N.secure_device()
if(WIRE_LIGHT)
N.lighthack = !mend
N.update_icon()