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:
Jack Edge
2017-12-05 20:20:44 +00:00
parent 6f2e27f7ee
commit 04a4a7e76b
6 changed files with 45 additions and 36 deletions
@@ -991,9 +991,9 @@
status_flags &= ~CANPUSH
if(module.clean_on_move)
flags_1 |= CLEAN_ON_MOVE_1
AddComponent(/datum/component/cleaning)
else
flags_1 &= ~CLEAN_ON_MOVE_1
qdel(GetComponent(/datum/component/cleaning))
hat_offset = module.hat_offset