Adds stats to creation/destruction of cleanable decals and trash on station (#44989)

* Adds stat tracking to mess on station

* Checks for maint to make sure stats aren't counting maint trash which is irrelevant to the janitor

* adds mapload arg to init

* asdasd
This commit is contained in:
cacogen
2019-07-12 14:11:23 -07:00
committed by Rob Bailey
parent da1a96fd2d
commit 85ca0d5272
5 changed files with 43 additions and 0 deletions
@@ -25,6 +25,16 @@
if(LAZYLEN(diseases_to_add))
AddComponent(/datum/component/infective, diseases_to_add)
var/turf/T = get_turf(src)
if(is_station_level(T.z))
SSblackbox.record_feedback("tally", "station_mess_created", 1, name)
/obj/effect/decal/cleanable/Destroy()
var/turf/T = get_turf(src)
if(is_station_level(T.z))
SSblackbox.record_feedback("tally", "station_mess_destroyed", 1, name)
return ..()
/obj/effect/decal/cleanable/proc/replace_decal(obj/effect/decal/cleanable/C) // Returns true if we should give up in favor of the pre-existing decal
if(mergeable_decal)
return TRUE