mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-30 08:37:43 +01:00
Replaces CLEAN_ON_MOVE_1 flag with cleaning component
CLEAN_ON_MOVE_1 is a flag checked on every atom movable's Moved() and triggers a janiborg/upgraded janicart clean on the turf if present. Replacing this with a component does the same thing and frees up a flag slot. Also fixes a bug where a spawned in "upgraded" janicart wouldn't actually clean the floors.
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
floorbuffer = TRUE
|
||||
qdel(I)
|
||||
to_chat(user, "<span class='notice'>You upgrade [src] with the floor buffer.</span>")
|
||||
flags_1 |= CLEAN_ON_MOVE_1
|
||||
AddComponent(/datum/component/cleaning)
|
||||
update_icon()
|
||||
else
|
||||
return ..()
|
||||
@@ -70,3 +70,7 @@
|
||||
|
||||
/obj/vehicle/ridden/janicart/upgraded
|
||||
floorbuffer = TRUE
|
||||
|
||||
/obj/vehicle/ridden/janicart/upgraded/Initialize(mapload)
|
||||
. = ..()
|
||||
AddComponent(/datum/component/cleaning)
|
||||
|
||||
Reference in New Issue
Block a user