Skip to content

Commit

Permalink
AGCNR Control Computer (#2548)
Browse files Browse the repository at this point in the history
Co-authored-by: Bokkiewokkie <[email protected]>
  • Loading branch information
SerynEngi and Bokkiewokkie authored Oct 14, 2023
1 parent f9d91dc commit bc3552b
Showing 1 changed file with 3 additions and 11 deletions.
14 changes: 3 additions & 11 deletions nsv13/code/modules/power/reactor/rbmk.dm
Original file line number Diff line number Diff line change
Expand Up @@ -715,23 +715,15 @@ The reactor CHEWS through moderator. It does not do this slowly. Be very careful
var/datum/radio_frequency/radio_connection
var/on = FALSE

/obj/machinery/computer/reactor/pump/AltClick(mob/user)
/obj/machinery/computer/reactor/pump/interact(mob/living/user)
. = ..()
var/newPressure = input(user, "Set new output pressure (kPa)", "Remote pump control", null) as num
var/newPressure = input(user, "Set new output pressure (kPa)", "Remote pump control", null) as null|num
if(!newPressure)
return
newPressure = clamp(newPressure, 0, MAX_OUTPUT_PRESSURE) //Number sanitization is not handled in the pumps themselves, only during their ui_act which this doesn't use.
signal(on, newPressure)

/obj/machinery/computer/reactor/attack_robot(mob/user)
. = ..()
attack_hand(user)

/obj/machinery/computer/reactor/attack_ai(mob/user)
. = ..()
attack_hand(user)

/obj/machinery/computer/reactor/pump/attack_hand(mob/living/user)
/obj/machinery/computer/reactor/pump/AltClick(mob/user)
. = ..()
if(!is_operational)
return FALSE
Expand Down

0 comments on commit bc3552b

Please sign in to comment.