mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-27 14:08:44 +01:00
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:
@@ -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)
|
||||
..()
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user