Merge pull request #4157 from Ccomp5950/cleanbot_fix

Bugfix:  Actually implement cleanbot targeting.
This commit is contained in:
Chinsky
2013-12-31 17:33:14 -08:00
2 changed files with 14 additions and 7 deletions

View File

@@ -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)
..()
..()