mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-16 13:12:22 +00:00
* Port Trash/Writing Persistence from World * stuff beyond straight portin * Fixed admin menu * Config, cigbutts, blood exceptions, offices.... * mapped butts
17 lines
447 B
Plaintext
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 |