Bugfix: Actually implement cleanbot targeting.

Cleanbots won't attempt to clean up the same mess.

Also buffed how quickly they clean up dirt from 5 seconds to 2 seconds.

It was creating a blank list and then checking that list to see if anything else had
that mess targeted.  Removed the blank list check and added an actual check.
This commit is contained in:
Ccomp5950
2013-12-30 21:59:20 -06:00
parent 7a7eca4393
commit 645710cb0b
2 changed files with 14 additions and 7 deletions
@@ -1,7 +1,8 @@
/obj/effect/decal/cleanable
var/list/random_icon_states = list()
var/targeted_by = null // Used so cleanbots can't claim a mess.
/obj/effect/decal/cleanable/New()
if (random_icon_states && length(src.random_icon_states) > 0)
src.icon_state = pick(src.random_icon_states)
..()
..()