Adds ability to modify RCON tags on SMES units and breaker boxes.

- Use multitool to change (for SMES, screwdriver the SMES first to open cover)
This commit is contained in:
Atlantiscze
2014-12-08 06:10:47 +01:00
parent 39229e4a1f
commit 321e4d443c
2 changed files with 19 additions and 1 deletions
+11
View File
@@ -77,6 +77,17 @@
update_locked = 0
busy = 0
/obj/machinery/power/breakerbox/attackby(var/obj/item/weapon/W as obj, var/mob/user as mob)
if(istype(W, /obj/item/device/multitool))
var/newtag = input(user, "Enter new RCON tag. Use \"NO_TAG\" to disable RCON or leave empty to cancel.", "SMES RCON system") as text
if(newtag)
RCon_tag = newtag
user << "<span class='notice'>You changed the RCON tag to: [newtag]</span>"
/obj/machinery/power/breakerbox/proc/set_state(var/state)
on = state
if(on)
+8 -1
View File
@@ -233,8 +233,15 @@
// - No action was taken in parent function (terminal de/construction atm).
if (..())
// Multitool - change RCON tag
if(istype(W, /obj/item/device/multitool))
var/newtag = input(user, "Enter new RCON tag. Use \"NO_TAG\" to disable RCON or leave empty to cancel.", "SMES RCON system") as text
if(newtag)
RCon_tag = newtag
user << "<span class='notice'>You changed the RCON tag to: [newtag]</span>"
return
// Charged above 1% and safeties are enabled.
if((charge > (capacity/100)) && safeties_enabled && (!istype(W, /obj/item/device/multitool)))
if((charge > (capacity/100)) && safeties_enabled)
user << "<span class='warning'>Safety circuit of [src] is preventing modifications while it's charged!</span>"
return