mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-06-14 18:04:50 +01:00
75dfd8291e
These just always have bothered me. I'd prefer if they didn't hang around.
21 lines
602 B
Plaintext
21 lines
602 B
Plaintext
/datum/persistent/filth/trash
|
|
name = "trash"
|
|
|
|
/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
|
|
return TRUE
|
|
|
|
/datum/persistent/filth/trash/GetEntryAge(var/atom/entry)
|
|
var/obj/item/trash/trash = entry
|
|
return trash.age
|
|
|
|
/datum/persistent/filth/trash/GetEntryPath(var/atom/entry)
|
|
return entry.type |