Fixes #3998
Fixes #3992
This commit is contained in:
Werner
2017-12-23 20:28:22 +01:00
committed by Erki
parent bb5a34eaf8
commit 855562c7c2
3 changed files with 17 additions and 4 deletions

View File

@@ -279,6 +279,12 @@ var/list/ai_verbs_default = list(
aiPDA.owner = pickedName
aiPDA.name = pickedName + " (" + aiPDA.ownjob + ")"
//Set the ID Name
if(idcard)
idcard.registered_name = pickedName
idcard.assignment = "AI"
idcard.update_name()
setup_icon() //this is because the ai custom name is related to the ai name, so, we just call the setup icon after someone named their ai
/*

View File

@@ -336,6 +336,12 @@
// if we've changed our name, we also need to update the display name for our PDA
setup_PDA()
// We also need to update our internal ID
if(idcard)
idcard.assignment = prefix
idcard.registered_name = changed_name
idcard.update_name()
//We also need to update name of internal camera.
if (camera)
camera.c_tag = changed_name