mirror of
https://github.com/fulpstation/fulpstation.git
synced 2025-12-10 01:57:01 +00:00
About The Pull Request Adds 'notice' span class to all visible_messages which had no span class, making all those black messages blue. Why It's Good For The Game This should help differentiate action-messages from talking-messages in the chat. More actions will be blue, thus black talking-messages should pop out more.
49 lines
1.5 KiB
Plaintext
49 lines
1.5 KiB
Plaintext
/datum/wires/particle_accelerator/control_box
|
|
holder_type = /obj/machinery/particle_accelerator/control_box
|
|
proper_name = "Particle Accelerator"
|
|
|
|
/datum/wires/particle_accelerator/control_box/New(atom/holder)
|
|
wires = list(
|
|
WIRE_POWER, WIRE_STRENGTH, WIRE_LIMIT,
|
|
WIRE_INTERFACE
|
|
)
|
|
add_duds(2)
|
|
..()
|
|
|
|
/datum/wires/particle_accelerator/control_box/interactable(mob/user)
|
|
var/obj/machinery/particle_accelerator/control_box/C = holder
|
|
if(C.construction_state == 2)
|
|
return TRUE
|
|
|
|
/datum/wires/particle_accelerator/control_box/on_pulse(wire)
|
|
var/obj/machinery/particle_accelerator/control_box/C = holder
|
|
switch(wire)
|
|
if(WIRE_POWER)
|
|
C.toggle_power()
|
|
if(WIRE_STRENGTH)
|
|
C.add_strength()
|
|
if(WIRE_INTERFACE)
|
|
C.interface_control = !C.interface_control
|
|
if(WIRE_LIMIT)
|
|
C.visible_message("<span class='notice'>[icon2html(C, viewers(holder))]<b>[C]</b> makes a large whirring noise.</span>")
|
|
|
|
/datum/wires/particle_accelerator/control_box/on_cut(wire, mend)
|
|
var/obj/machinery/particle_accelerator/control_box/C = holder
|
|
switch(wire)
|
|
if(WIRE_POWER)
|
|
if(C.active == !mend)
|
|
C.toggle_power()
|
|
if(WIRE_STRENGTH)
|
|
for(var/i = 1; i < 3; i++)
|
|
C.remove_strength()
|
|
if(WIRE_INTERFACE)
|
|
if(!mend)
|
|
C.interface_control = FALSE
|
|
if(WIRE_LIMIT)
|
|
C.strength_upper_limit = (mend ? 2 : 3)
|
|
if(C.strength_upper_limit < C.strength)
|
|
C.remove_strength()
|
|
|
|
/datum/wires/particle_accelerator/control_box/emp_pulse() // to prevent singulo from pulsing wires
|
|
return
|