mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Merge pull request #43359 from AnturK/clientsaboteur
Fixes flooding filters with borg chameleon module.
This commit is contained in:
committed by
yogstation13-bot
parent
f1e2cff7ff
commit
d6d8213ef4
@@ -16,6 +16,7 @@
|
||||
var/disguise = "engineer"
|
||||
var/datum/component/mobhook // need this to deal with unregistration properly
|
||||
var/mob/living/silicon/robot/user // needed for process()
|
||||
var/animation_playing = FALSE
|
||||
|
||||
/obj/item/borg_chameleon/Initialize()
|
||||
. = ..()
|
||||
@@ -48,6 +49,10 @@
|
||||
to_chat(user, "<span class='notice'>You deactivate \the [src].</span>")
|
||||
deactivate(user)
|
||||
else
|
||||
if(animation_playing)
|
||||
to_chat(user, "<span class='notice'>\the [src] is recharging.</span>")
|
||||
return
|
||||
animation_playing = TRUE
|
||||
to_chat(user, "<span class='notice'>You activate \the [src].</span>")
|
||||
playsound(src, 'sound/effects/seedling_chargeup.ogg', 100, 1, -6)
|
||||
var/start = user.filters.len
|
||||
@@ -74,6 +79,7 @@
|
||||
f = user.filters[start+i]
|
||||
animate(f)
|
||||
user.filters = null
|
||||
animation_playing = FALSE
|
||||
|
||||
/obj/item/borg_chameleon/process()
|
||||
if (user)
|
||||
|
||||
Reference in New Issue
Block a user