From f0eb99a289dbc0d1f8a528781370535528568014 Mon Sep 17 00:00:00 2001 From: Jordie0608 Date: Wed, 30 Aug 2017 22:56:51 +1000 Subject: [PATCH] adds comments --- code/controllers/subsystem/persistence.dm | 6 +++--- code/modules/mob/living/simple_animal/friendly/cat.dm | 2 +- code/modules/mob/living/simple_animal/friendly/dog.dm | 2 +- .../mob/living/simple_animal/hostile/megafauna/colossus.dm | 2 +- code/modules/mob/living/simple_animal/parrot.dm | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/code/controllers/subsystem/persistence.dm b/code/controllers/subsystem/persistence.dm index fe950d64f22..97c569b99ba 100644 --- a/code/controllers/subsystem/persistence.dm +++ b/code/controllers/subsystem/persistence.dm @@ -22,7 +22,7 @@ SUBSYSTEM_DEF(persistence) var/placed_satchel = 0 var/path var/obj/item/storage/backpack/satchel/flat/F = new() - if(fexists("data/npc_saves/SecretSatchels.sav")) + if(fexists("data/npc_saves/SecretSatchels.sav")) //legacy compatability to convert old format to new var/savefile/secret_satchels = new /savefile("data/npc_saves/SecretSatchels.sav") var/sav_text secret_satchels[SSmapping.config.map_name] >> sav_text @@ -72,7 +72,7 @@ SUBSYSTEM_DEF(persistence) /datum/controller/subsystem/persistence/proc/LoadChiselMessages() var/list/saved_messages = list() - if(fexists("data/npc_saves/ChiselMessages.sav")) + if(fexists("data/npc_saves/ChiselMessages.sav")) //legacy compatability to convert old format to new var/savefile/chisel_messages_sav = new /savefile("data/npc_saves/ChiselMessages.sav") var/saved_json chisel_messages_sav[SSmapping.config.map_name] >> saved_json @@ -117,7 +117,7 @@ SUBSYSTEM_DEF(persistence) log_world("Loaded [saved_messages.len] engraved messages on map [SSmapping.config.map_name]") /datum/controller/subsystem/persistence/proc/LoadTrophies() - if(fexists("data/npc_saves/TrophyItems.sav")) + if(fexists("data/npc_saves/TrophyItems.sav")) //legacy compatability to convert old format to new var/savefile/S = new /savefile("data/npc_saves/TrophyItems.sav") var/saved_json S >> saved_json diff --git a/code/modules/mob/living/simple_animal/friendly/cat.dm b/code/modules/mob/living/simple_animal/friendly/cat.dm index 50a034cf447..a49fbde2acf 100644 --- a/code/modules/mob/living/simple_animal/friendly/cat.dm +++ b/code/modules/mob/living/simple_animal/friendly/cat.dm @@ -112,7 +112,7 @@ ..() /mob/living/simple_animal/pet/cat/Runtime/proc/Read_Memory() - if(fexists("data/npc_saves/Runtime.sav")) + if(fexists("data/npc_saves/Runtime.sav")) //legacy compatability to convert old format to new var/savefile/S = new /savefile("data/npc_saves/Runtime.sav") S["family"] >> family fdel(S) diff --git a/code/modules/mob/living/simple_animal/friendly/dog.dm b/code/modules/mob/living/simple_animal/friendly/dog.dm index ef60aa565dd..7ed2b4a2837 100644 --- a/code/modules/mob/living/simple_animal/friendly/dog.dm +++ b/code/modules/mob/living/simple_animal/friendly/dog.dm @@ -327,7 +327,7 @@ ..() /mob/living/simple_animal/pet/dog/corgi/Ian/proc/Read_Memory() - if(fexists("data/npc_saves/Ian.sav")) + if(fexists("data/npc_saves/Ian.sav")) //legacy compatability to convert old format to new var/savefile/S = new /savefile("data/npc_saves/Ian.sav") S["age"] >> age S["record_age"] >> record_age diff --git a/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm b/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm index 467d1a1e6f7..78616fe0077 100644 --- a/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm +++ b/code/modules/mob/living/simple_animal/hostile/megafauna/colossus.dm @@ -289,7 +289,7 @@ Difficulty: Very Hard memory_saved = TRUE /obj/machinery/smartfridge/black_box/proc/ReadMemory() - if(fexists("data/npc_saves/Blackbox.sav")) + if(fexists("data/npc_saves/Blackbox.sav")) //legacy compatability to convert old format to new var/savefile/S = new /savefile("data/npc_saves/Blackbox.sav") S["stored_items"] >> stored_items fdel(S) diff --git a/code/modules/mob/living/simple_animal/parrot.dm b/code/modules/mob/living/simple_animal/parrot.dm index d66bfe1936e..85f41e30570 100644 --- a/code/modules/mob/living/simple_animal/parrot.dm +++ b/code/modules/mob/living/simple_animal/parrot.dm @@ -923,7 +923,7 @@ ..(gibbed) /mob/living/simple_animal/parrot/Poly/proc/Read_Memory() - if(fexists("data/npc_saves/Poly.sav")) + if(fexists("data/npc_saves/Poly.sav")) //legacy compatability to convert old format to new var/savefile/S = new /savefile("data/npc_saves/Poly.sav") S["phrases"] >> speech_buffer S["roundssurvived"] >> rounds_survived