Merge pull request #12185 from Very-Soft/dontpersistspit

Don't persist spitwads and gum
This commit is contained in:
Casey
2022-02-09 00:31:49 -05:00
committed by CHOMPStation2
parent 4544be7d02
commit 76cbf128e0

View File

@@ -4,6 +4,10 @@
/datum/persistent/filth/trash/CheckTurfContents(var/turf/T, var/list/tokens)
var/too_much_trash = 0
for(var/obj/item/trash/trash in T)
//VOREStation Addition Start
if(istype(T, /obj/item/trash/spitwad) || istype(T, /obj/item/trash/spitgum))
return FALSE
//VOREStation Addition End
too_much_trash++
if(too_much_trash >= 5)
return FALSE