mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 11:43:31 +00:00
Ensures bots are only emaggable once
This commit is contained in:
@@ -87,12 +87,15 @@
|
|||||||
|
|
||||||
/mob/living/bot/secbot/emag_act(var/remaining_uses, var/mob/user)
|
/mob/living/bot/secbot/emag_act(var/remaining_uses, var/mob/user)
|
||||||
. = ..()
|
. = ..()
|
||||||
if(user)
|
if(!emagged)
|
||||||
user << "<span class='notice'>The [src] buzzes and beeps.</span>"
|
if(user)
|
||||||
emagged = 1
|
user << "<span class='notice'>\The [src] buzzes and beeps.</span>"
|
||||||
patrol_speed = 3
|
emagged = 1
|
||||||
target_speed = 4
|
patrol_speed = 3
|
||||||
return 1
|
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)
|
/mob/living/bot/secbot/attackby(var/obj/item/O, var/mob/user)
|
||||||
var/curhealth = health
|
var/curhealth = health
|
||||||
|
|||||||
Reference in New Issue
Block a user