Merge pull request #2115 from Yoshax/ED-Emag

Ensures security robots can be properly emagged
This commit is contained in:
Neerti
2016-07-13 19:14:23 -04:00
committed by GitHub
2 changed files with 26 additions and 0 deletions
+12
View File
@@ -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
..()