mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 07:38:05 +01:00
Fixes cleanbot animation & speed (#68707)
* Fixes the bug, turns cleaning time into a var, and fixes some extra space
This commit is contained in:
@@ -36,6 +36,9 @@
|
||||
var/weapon_orig_force = 0
|
||||
var/chosen_name
|
||||
|
||||
/// The time it takes for the cleanbot to clean something.
|
||||
var/cleaning_time = 1 SECONDS
|
||||
|
||||
var/list/stolen_valor = list()
|
||||
|
||||
var/static/list/officers_titles = list(
|
||||
@@ -143,7 +146,7 @@
|
||||
|
||||
/mob/living/simple_animal/bot/cleanbot/Initialize(mapload)
|
||||
. = ..()
|
||||
AddComponent(/datum/component/cleaner, 0.1 SECONDS)
|
||||
AddComponent(/datum/component/cleaner, cleaning_time, on_cleaned_callback=CALLBACK(src, /atom/.proc/update_icon_state))
|
||||
|
||||
chosen_name = name
|
||||
get_targets()
|
||||
@@ -357,7 +360,7 @@
|
||||
start_cleaning(src, T, src)
|
||||
target = null
|
||||
mode = BOT_IDLE
|
||||
update_icon_state()
|
||||
|
||||
else if(istype(A, /obj/item) || istype(A, /obj/effect/decal/remains))
|
||||
visible_message(span_danger("[src] sprays hydrofluoric acid at [A]!"))
|
||||
playsound(src, 'sound/effects/spray2.ogg', 50, TRUE, -6)
|
||||
|
||||
Reference in New Issue
Block a user