Ghosts seeing power in a wire upon examination

This commit is contained in:
Yoshax
2016-07-25 14:23:53 +01:00
parent cdb09d2946
commit f48a49712f
2 changed files with 15 additions and 0 deletions

View File

@@ -110,6 +110,17 @@ var/list/possible_cable_coil_colours = list(
cable_list -= src //remove it from global cable list
..() // then go ahead and delete the cable
// Ghost examining the cable -> tells him the power
/obj/structure/cable/attack_ghost(mob/user)
if(user.client && user.client.inquisitive_ghost)
user.examinate(src)
// following code taken from attackby (multitool)
if(powernet && (powernet.avail > 0))
user << "<span class='warning'>[powernet.avail]W in power network.</span>"
else
user << "<span class='warning'>The cable is not powered.</span>"
return
///////////////////////////////////
// General procedures
///////////////////////////////////