[MIRROR] assign account to nifs (#8517)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2
2024-06-12 08:13:48 -07:00
committed by GitHub
parent 69033e37bd
commit 95c2dba6fe
2 changed files with 7 additions and 0 deletions

View File

@@ -35,6 +35,7 @@ You can also set the stat of a NIF to NIF_TEMPFAIL without any issues to disable
var/tmp/list/nifsofts[TOTAL_NIF_SOFTWARE] // All our nifsofts
var/tmp/list/nifsofts_life = list() // Ones that want to be talked to on life()
var/owner // Owner character name
var/owner_key // Account associated with the nif
var/examine_msg //Message shown on examine.
var/tmp/vision_flags = 0 // Flags implants set for faster lookups
@@ -155,6 +156,7 @@ You can also set the stat of a NIF to NIF_TEMPFAIL without any issues to disable
return
if(H.mind)
owner = H.mind.name
owner_key = H.ckey
implant(H)
return TRUE
@@ -284,10 +286,12 @@ You can also set the stat of a NIF to NIF_TEMPFAIL without any issues to disable
//Firsties
if(!install_done)
if(human.mind.name == owner)
owner_key = human.ckey
install_done = world.time + 1 MINUTE
notify("Welcome back, [owner]! Performing quick-calibration...")
else if(!owner)
install_done = world.time + 15 MINUTES // CHOMPedit: Install time from 35 minutes to 15 minutes.
owner_key = human.ckey
notify("Adapting to new user...")
sleep(5 SECONDS)
notify("Adjoining optic [human.isSynthetic() ? "interface" : "nerve"], please be patient.",TRUE)