fix nigf init (#17161)

This commit is contained in:
Kashargul
2025-02-16 04:27:52 -05:00
committed by GitHub
parent 1d630199d9
commit f8c24bcbe0
+9 -6
View File
@@ -150,16 +150,19 @@ You can also set the stat of a NIF to NIF_TEMPFAIL without any issues to disable
return FALSE
forceMove(parent)
parent.implants += src
if(!H) //Or letting them get deleted
return
if(H.mind)
owner = H.mind.name
owner_key = H.ckey
implant(H)
addtimer(CALLBACK(src, PROC_REF(quick_install), H), 1)
return TRUE
return FALSE
/obj/item/nif/proc/quick_install(var/mob/living/carbon/human/H)
if(!H) //Or letting them get deleted
return
if(H.mind)
owner = H.mind.name
owner_key = H.ckey
implant(H)
//Being removed from some mob
/obj/item/nif/proc/unimplant(var/mob/living/carbon/human/H)
var/datum/nifsoft/soulcatcher/SC = imp_check(NIF_SOULCATCHER)