Fix random names breaking preferences (#62668)

The randomization (specifically from the random names secret) overrode your preferences, this fixes that.
This commit is contained in:
Mothblocks
2021-11-09 23:43:15 -08:00
committed by GitHub
parent 8ddb548c21
commit f3af9d6d9e
5 changed files with 32 additions and 7 deletions
+2 -1
View File
@@ -129,7 +129,8 @@ GLOBAL_DATUM(current_anonymous_theme, /datum/anonymous_theme)
* * target - mob for preferences and gender
*/
/datum/anonymous_theme/proc/anonymous_name(mob/target)
var/species_type = target.client.prefs.read_preference(/datum/preference/choiced/species)
var/datum/client_interface/client = GET_CLIENT(target)
var/species_type = client.prefs.read_preference(/datum/preference/choiced/species)
var/datum/species/species = new species_type
return species.random_name(target.gender,1)