mirror of
https://github.com/CHOMPstation/CHOMPstation.git
synced 2026-07-16 09:32:47 +01:00
removed SC self backup and added a null
This commit is contained in:
@@ -462,8 +462,6 @@
|
||||
if(istype(HP) && HP.nif && HP.nif.flag_check(NIF_O_SCOTHERS,NIF_FLAGS_OTHER))
|
||||
var/datum/nifsoft/soulcatcher/SC = HP.nif.imp_check(NIF_SOULCATCHER)
|
||||
SC.catch_mob(H)
|
||||
else if(H.nif && H.nif.flag_check(NIF_SC_BACKUPS))
|
||||
SStranscore.m_backup(H,0) //If dying inside a pred who lacks SC, let ours do a backup if enabled before it's gone for good.
|
||||
else if(H.nif && H.nif.flag_check(NIF_O_SCMYSELF,NIF_FLAGS_OTHER)) //They are caught in their own NIF
|
||||
var/datum/nifsoft/soulcatcher/SC = H.nif.imp_check(NIF_SOULCATCHER)
|
||||
SC.catch_mob(H)
|
||||
|
||||
@@ -526,7 +526,7 @@
|
||||
|
||||
//Re-supply a NIF if one was backed up with them.
|
||||
if(MR.nif_path)
|
||||
var/obj/item/device/nif/nif = new MR.nif_path(occupant,,MR.nif_savedata)
|
||||
var/obj/item/device/nif/nif = new MR.nif_path(occupant,null,MR.nif_savedata)
|
||||
for(var/path in MR.nif_software)
|
||||
new path(nif)
|
||||
nif.durability = MR.nif_durability //Restore backed up durability after restoring the softs.
|
||||
|
||||
Reference in New Issue
Block a user