mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-30 16:47:34 +01:00
Persistence Patch
- Fixes Paper and font tags stacking across rounds, as shown in:  - Fixes Persistence being always-on because of if("persistence_enabled") config.persistence_enabled = 1. As explained: > it's on by default, which means config.txt will be read and if it's not there it stays at 1. If it is there,it gets set to 1. There is no way to disable it - Adds config options to enable/disable **Persistence for Maploaded objects**, as well as a verb to toggle such. - Adds Persistence to config. Currently IGNORE_MAPLOAD for Persistance is **Disabled.** Maploaded objects/dirt/etc will be saved by persistence, preserving current behavior. You will need to update config.txt with the following lines: \## Uncomment this to DISABLE persistence \#PERSISTENCE_DISABLED \## Uncomment this to DISABLE maploaded trash/paper/etc from being saved by the persistence system. \#PERSISTENCE_IGNORE_MAPLOAD
This commit is contained in:
@@ -15,7 +15,8 @@
|
||||
age = _age
|
||||
|
||||
/obj/item/trash/Initialize()
|
||||
SSpersistence.track_value(src, /datum/persistent/filth/trash)
|
||||
if(!mapload || !config.persistence_ignore_mapload)
|
||||
SSpersistence.track_value(src, /datum/persistent/filth/trash)
|
||||
. = ..()
|
||||
|
||||
/obj/item/trash/Destroy()
|
||||
|
||||
Reference in New Issue
Block a user