Fixes RD console circuit var not set.

Also removes redundant attackby code, and small change to text when
setting access protocol on the board.

Related to issue #5006
This commit is contained in:
mwerezak
2014-05-26 06:13:37 -04:00
committed by ZomgPonies
parent 2618439195
commit dd2fcf0eb3
2 changed files with 9 additions and 30 deletions
@@ -293,14 +293,15 @@
/obj/item/weapon/circuitboard/rdconsole/attackby(obj/item/I as obj, mob/user as mob)
if(istype(I,/obj/item/weapon/screwdriver))
user << "\blue You adjust the jumper on the access protocol pins."
if(src.build_path == "/obj/machinery/computer/rdconsole/core")
src.name = "Circuit Board (RD Console - Robotics)"
src.build_path = "/obj/machinery/computer/rdconsole/robotics"
user << "\blue Access protocols succesfully updated."
user << "\blue Access protocols set to robotics."
else
src.name = "Circuit Board (RD Console)"
src.build_path = "/obj/machinery/computer/rdconsole/core"
user << "\blue Defaulting access protocols."
user << "\blue Access protocols set to default."
return
/obj/structure/computerframe/attackby(obj/item/P as obj, mob/user as mob)