Adds a mind backup nifsoft and fixes one-time scans not saving nifs.

-Adds a nifsoft that can be used for manual mind backups on the go sleevemate style.
-Fixes one-time backups not saving nifs (sleevemate and this thing)
-Apparently the backup proc only saved nifs on the second sync.
This commit is contained in:
Verkister
2017-10-19 12:16:53 +03:00
parent 5b1ca0edfc
commit e7fc6a3800
3 changed files with 58 additions and 20 deletions

View File

@@ -81,6 +81,21 @@ SUBSYSTEM_DEF(transcore)
else
MR = new(mind, mind.current, add_to_db = TRUE, one_time = one_time)
//Pass a 0 to not change NIF status (because the elseif is checking for null)
if(nif)
MR.nif_path = nif.type
MR.nif_durability = nif.durability
var/list/nifsofts = list()
for(var/N in nif.nifsofts)
if(N)
var/datum/nifsoft/nifsoft = N
nifsofts += nifsoft.type
MR.nif_software = nifsofts
else if(isnull(nif)) //Didn't pass anything, so no NIF
MR.nif_path = null
MR.nif_durability = null
MR.nif_software = null
return 1
// Send a past-due notification to the medical radio channel.