mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 03:02:54 +00:00
Merge pull request #8772 from VOREStation/upstream-merge-7503
[MIRROR] Replaces cable attack_ghost with normal examine
This commit is contained in:
@@ -110,17 +110,10 @@ 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
|
||||||
return ..() // then go ahead and delete the cable
|
return ..() // then go ahead and delete the cable
|
||||||
|
|
||||||
// Ghost examining the cable -> tells him the power
|
/obj/structure/cable/examine(mob/user)
|
||||||
/obj/structure/cable/attack_ghost(mob/user)
|
. = ..()
|
||||||
if(user.client && user.client.inquisitive_ghost)
|
if(isobserver(user))
|
||||||
user.examinate(src)
|
. += "<span class='warning'>[powernet?.avail > 0 ? "[DisplayPower(powernet.avail)] in power network." : "The cable is not powered."]</span>"
|
||||||
// following code taken from attackby (multitool)
|
|
||||||
if(powernet && (powernet.avail > 0))
|
|
||||||
to_chat(user, "<span class='warning'>[DisplayPower(powernet.avail)] in power network.</span>")
|
|
||||||
else
|
|
||||||
to_chat(user, "<span class='warning'>The cable is not powered.</span>")
|
|
||||||
return
|
|
||||||
|
|
||||||
|
|
||||||
// Rotating cables requires d1 and d2 to be rotated
|
// Rotating cables requires d1 and d2 to be rotated
|
||||||
/obj/structure/cable/set_dir(new_dir)
|
/obj/structure/cable/set_dir(new_dir)
|
||||||
|
|||||||
Reference in New Issue
Block a user