Files
Polaris/code/modules/persistence/effects/trash.dm
Atermonera b123a4750b Adds persistent smartfridges for garden products, material sheets (#8042)
* Addsd sheet storage smartfridge
Implements persistent item storage

* Adds persistent produce smartfridge
Repaths smartfridge base type to /produce subtype

* Raises produce cap to 50, per staff meeting
2021-05-12 21:05:04 -09:00

17 lines
447 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)
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