mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-21 03:51:49 +01:00
Persistence code refactoring (#22044)
# Summary This PR refactores code and structure of the current persistence subsystem, in preparation for Persistency: Circles, Squares and Triangles. This should not contain any user facing changes. ~~This PR is based of branch #21925 and **needs** to be merged in order. The files changed display will be meaningless until then.~~ *Done.* ## Changes - Split subsystem in partial files. - Refactored proc names, added "persistentObject" format for current code. - Renamed SQL table. - Refactored logging and call hiearachy. - Fix CI labeler adding DB label on non-SQL files.
This commit is contained in:
@@ -293,7 +293,7 @@
|
||||
icon_state = "folded_wall-torn"
|
||||
persistency_considered_trash = TRUE
|
||||
|
||||
/obj/item/inflatable/torn/persistence_apply_content(content, x, y, z)
|
||||
/obj/item/inflatable/torn/persistent_objects_apply_content(content, x, y, z)
|
||||
src.x = x
|
||||
src.y = y
|
||||
src.z = z
|
||||
@@ -308,7 +308,7 @@
|
||||
icon_state = "folded_door-torn"
|
||||
persistency_considered_trash = TRUE
|
||||
|
||||
/obj/item/inflatable/door/torn/persistence_apply_content(content, x, y, z)
|
||||
/obj/item/inflatable/door/torn/persistent_objects_apply_content(content, x, y, z)
|
||||
src.x = x
|
||||
src.y = y
|
||||
src.z = z
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
user.drop_from_inventory(attacking_item, src)
|
||||
notices++
|
||||
update_icon()
|
||||
SSpersistence.register_track(attacking_item, ckey(usr.key)) // Add paper to persistent tracker
|
||||
SSpersistence.objectsRegisterTrack(attacking_item, ckey(usr.key)) // Add paper to persistent tracker
|
||||
to_chat(user, SPAN_NOTICE("You pin the paper to the noticeboard."))
|
||||
else
|
||||
to_chat(user, SPAN_NOTICE("\The [src] is already full of papers and can not fit another."))
|
||||
@@ -71,7 +71,7 @@
|
||||
add_fingerprint(usr)
|
||||
notices--
|
||||
update_icon()
|
||||
SSpersistence.deregister_track(P) // Remove paper from persistent tracker
|
||||
SSpersistence.objectsDeregisterTrack(P) // Remove paper from persistent tracker
|
||||
if(href_list["write"])
|
||||
if((usr.stat || usr.restrained())) //For when a player is handcuffed while they have the notice window open
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user