mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[MIRROR] assign account to nifs (#8517)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user