mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-20 03:25:49 +01:00
Refactors client data loading
This commit is contained in:
@@ -1363,7 +1363,7 @@
|
||||
to_chat(usr, "<span class='warning'>[M] doesn't seem to have an active client.</span>")
|
||||
return
|
||||
|
||||
if(M.flavor_text == "" && M.client.prefs.flavor_text == "")
|
||||
if(M.flavor_text == "" && M.client.prefs.active_character.flavor_text == "")
|
||||
to_chat(usr, "<span class='warning'>[M] has no flavor text set.</span>")
|
||||
return
|
||||
|
||||
@@ -1377,8 +1377,8 @@
|
||||
M.flavor_text = ""
|
||||
|
||||
// Clear and save the DB character's flavor text
|
||||
M.client.prefs.flavor_text = ""
|
||||
M.client.prefs.save_character(M.client)
|
||||
M.client.prefs.active_character.flavor_text = ""
|
||||
M.client.prefs.active_character.save(M.client)
|
||||
|
||||
else if(href_list["userandomname"])
|
||||
if(!check_rights(R_ADMIN))
|
||||
@@ -1401,12 +1401,12 @@
|
||||
message_admins("[key_name_admin(usr)] has forced [key_name_admin(M)] to use a random name.")
|
||||
|
||||
// Update the mob's name with a random one straight away
|
||||
var/random_name = random_name(M.client.prefs.gender, M.client.prefs.species)
|
||||
var/random_name = random_name(M.client.prefs.active_character.gender, M.client.prefs.active_character.species)
|
||||
M.rename_character(M.real_name, random_name)
|
||||
|
||||
// Save that random name for next rounds
|
||||
M.client.prefs.real_name = random_name
|
||||
M.client.prefs.save_character(M.client)
|
||||
M.client.prefs.active_character.real_name = random_name
|
||||
M.client.prefs.active_character.save(M.client)
|
||||
|
||||
else if(href_list["asays"])
|
||||
if(!check_rights(R_ADMIN))
|
||||
|
||||
Reference in New Issue
Block a user