Merge pull request #11944 from Heroman3003/nifnerf

Makes NIFs not get automatically lost (hopefully)
This commit is contained in:
Casey
2022-01-08 12:39:30 -05:00
committed by CHOMPStation2
parent 09c686d59c
commit cd80228460
3 changed files with 18 additions and 3 deletions
@@ -38,11 +38,16 @@
if((character.type == /mob/living/carbon/human) && ispath(pref.nif_path) && pref.nif_durability)
new pref.nif_path(character,pref.nif_durability,pref.nif_savedata)
/*
//And now here's the trick. We wipe these so that if they die, they lose the NIF.
//Backup implants will start saving this again periodically, and so will cryo'ing out.
pref.nif_path = null
pref.nif_durability = null
pref.nif_savedata = null
*/
//No we do not, that's lame and admins have to re-NIF them later.
//If they leave round after they get their NIF extracted, it will save as 'gone' anyway
//The NIF will save automatically every time durability changes too now.
var/savefile/S = new /savefile(pref.path)
if(!S) WARNING ("Couldn't load NIF save savefile? [pref.real_name]")
S.cd = "/character[pref.default_slot]"