[MIRROR] Conversion of realname and nickname from bay (#12391)

Co-authored-by: Aura Dusklight <46622484+NovaDusklight@users.noreply.github.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-02-08 23:57:46 +01:00
committed by GitHub
co-authored by Aura Dusklight Kashargul
parent 1047b90c96
commit aacdd1a4f2
33 changed files with 204 additions and 89 deletions
+3 -2
View File
@@ -419,11 +419,12 @@ ADMIN_VERB(respawn_character, (R_ADMIN|R_REJUVINATE), "Spawn Character", "(Re)Sp
var/charjob
var/records
var/datum/data/record/record_found
record_found = find_general_record("name",picked_client.prefs.real_name)
var/char_real_name = picked_client.prefs.read_preference(/datum/preference/name/real_name)
record_found = find_general_record("name", char_real_name)
//Found their record, they were spawned previously
if(record_found)
var/samejob = tgui_alert(src,"Found [picked_client.prefs.real_name] in data core. They were [record_found.fields["real_rank"]] this round. Assign same job? They will not be re-added to the manifest/records, either way.","Previously spawned",list("Yes","Assistant","No"))
var/samejob = tgui_alert(src,"Found [char_real_name] in data core. They were [record_found.fields["real_rank"]] this round. Assign same job? They will not be re-added to the manifest/records, either way.","Previously spawned",list("Yes","Assistant","No"))
if(!samejob)
return
if(samejob == "Yes")
+3 -2
View File
@@ -58,8 +58,9 @@
new_mob.ai_holder_type = /datum/ai_holder/simple_mob/inert //Dont want the mob AI to activate if the client dc's or anything
if(name)
new_mob.real_name = picked_client.prefs.real_name
new_mob.name = picked_client.prefs.real_name
var/spawner_name = picked_client.prefs.read_preference(/datum/preference/name/real_name)
new_mob.real_name = spawner_name
new_mob.name = spawner_name
new_mob.key = picked_client.key //Finally put them in the mob