mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-12 07:35:31 +01:00
Merge pull request #2115 from Yoshax/ED-Emag
Ensures security robots can be properly emagged
This commit is contained in:
@@ -85,6 +85,18 @@
|
||||
declare_arrests = !declare_arrests
|
||||
attack_hand(usr)
|
||||
|
||||
/mob/living/bot/secbot/emag_act(var/remaining_uses, var/mob/user)
|
||||
. = ..()
|
||||
if(!emagged)
|
||||
if(user)
|
||||
user << "<span class='notice'>\The [src] buzzes and beeps.</span>"
|
||||
emagged = 1
|
||||
patrol_speed = 3
|
||||
target_speed = 4
|
||||
return 1
|
||||
else
|
||||
user << "<span class='notice'>\The [src] is already corrupt.</span>"
|
||||
|
||||
/mob/living/bot/secbot/attackby(var/obj/item/O, var/mob/user)
|
||||
var/curhealth = health
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user