Skip to content

Commit

Permalink
Update rbmk.dm
Browse files Browse the repository at this point in the history
cancel option to gas pump computers
  • Loading branch information
Bokkiewokkie authored Sep 26, 2023
1 parent 7184456 commit 80e05ea
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions nsv13/code/modules/power/reactor/rbmk.dm
Original file line number Diff line number Diff line change
Expand Up @@ -715,22 +715,14 @@ 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/attack_hand(mob/living/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/AltClick(mob/user)
. = ..()
if(!is_operational)
Expand Down

0 comments on commit 80e05ea

Please sign in to comment.