Borgs can activate the emergency tesla beacon (#14255)

This commit is contained in:
Doxxmedearly
2022-06-09 12:56:24 -04:00
committed by GitHub
parent e6f9da2ea1
commit 3b7cba673e
2 changed files with 13 additions and 6 deletions

View File

@@ -117,20 +117,17 @@
if(user)
to_chat(user, "<span class='notice'>You deactivate the beacon.</span>")
/obj/machinery/power/singularity_beacon/attack_ai(mob/user as mob)
/obj/machinery/power/singularity_beacon/attack_ai(mob/user)
return
/obj/machinery/power/singularity_beacon/attack_hand(var/mob/user as mob)
/obj/machinery/power/singularity_beacon/attack_hand(mob/user)
if(anchored)
return active ? Deactivate(user) : Activate(user)
else
to_chat(user, "<span class='danger'>You need to screw the beacon to the floor first!</span>")
return
/obj/machinery/power/singularity_beacon/attackby(obj/item/W as obj, mob/user as mob)
/obj/machinery/power/singularity_beacon/attackby(obj/item/W, mob/user)
if(W.isscrewdriver())
if(active)
to_chat(user, "<span class='danger'>You need to deactivate the beacon first!</span>")
@@ -171,3 +168,9 @@
/obj/machinery/power/singularity_beacon/emergency
name = "emergency singularity beacon"
desc = "A beacon that is designed to be used as last resort to contain Singularity or Tesla Engine. A one time use device."
/obj/machinery/power/singularity_beacon/emergency/attack_ai(mob/user)
if(Adjacent(user))
return attack_hand(user)
else
to_chat(user, SPAN_WARNING("You need to be adjacent to \the [src] to activate it!"))