mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
Merge pull request #2198 from Yoshax/ghostpower
Ghosts seeing power in a wire upon examination
This commit is contained in:
@@ -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
|
||||||
///////////////////////////////////
|
///////////////////////////////////
|
||||||
|
|||||||
4
html/changelogs/Superbee29.yml
Normal file
4
html/changelogs/Superbee29.yml
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
author: Superbee29
|
||||||
|
delete-after: True
|
||||||
|
changes:
|
||||||
|
- rscadd: "Ghosts can now see the power in a cable when examining it."
|
||||||
Reference in New Issue
Block a user