Allow relabeling any canister; port MULEbot to tgui

This commit is contained in:
Bjorn Neergaard
2016-01-18 14:21:56 -06:00
parent f8b005d835
commit 0a7236d955
16 changed files with 247 additions and 267 deletions
+1 -5
View File
@@ -457,7 +457,7 @@
else if(stat & (BROKEN|MAINT))
user << "<span class='warning'>Nothing happens!</span>"
else
if(src.allowed(usr) && !isWireCut(APC_WIRE_IDSCAN))
if(src.allowed(usr) && !wires.IsIndexCut(APC_WIRE_IDSCAN))
locked = !locked
user << "<span class='notice'>You [ locked ? "lock" : "unlock"] the APC interface.</span>"
update_icon()
@@ -717,10 +717,6 @@
// world << "[area.power_equip]"
area.power_change()
/obj/machinery/power/apc/proc/isWireCut(wireIndex)
return wires.IsIndexCut(wireIndex)
/obj/machinery/power/apc/proc/can_use(mob/user, loud = 0) //used by attack_hand() and Topic()
if(IsAdminGhost(user))
return 1