mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 19:52:40 +00:00
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.
9 lines
293 B
Plaintext
9 lines
293 B
Plaintext
/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)
|
|
..()
|