Merge pull request #2198 from Yoshax/ghostpower

Ghosts seeing power in a wire upon examination
This commit is contained in:
EmperorJon
2016-07-25 17:51:47 +01:00
committed by GitHub
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 cable_list -= src //remove it from global cable list
..() // then go ahead and delete the cable ..() // 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 // General procedures
/////////////////////////////////// ///////////////////////////////////

View File

@@ -0,0 +1,4 @@
author: Superbee29
delete-after: True
changes:
- rscadd: "Ghosts can now see the power in a cable when examining it."