Skip to content

Commit

Permalink
Clear flavortext on force species change (#22919)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamsong authored Jan 5, 2025
1 parent 23af29f commit 553c5f4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@

if(noblood)
user.set_species(/datum/species/human, TRUE, TRUE)
user.dna.features["flavor_text"] = "";
if(user.client?.prefs?.read_preference(/datum/preference/name/backup_human) && !is_banned_from(user.client?.ckey, "Appearance"))
user.fully_replace_character_name(user.dna.real_name, user.client.prefs.read_preference(/datum/preference/name/backup_human))
else
Expand Down
1 change: 1 addition & 0 deletions code/modules/antagonists/changeling/changeling.dm
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,7 @@ GLOBAL_VAR(changeling_team_objective_type)
if(ishuman(C) && ((NO_DNA_COPY in C.dna.species.species_traits) || !C.has_dna() || (NOHUSK in C.dna.species.species_traits)))
to_chat(C, span_userdanger("You have been made a human, as your original race had incompatible DNA."))
C.set_species(/datum/species/human, TRUE, TRUE)
C.dna.features["flavor_text"] = ""
if(C.client?.prefs?.read_preference(/datum/preference/name/backup_human) && !is_banned_from(C.client?.ckey, "Appearance"))
C.fully_replace_character_name(C.dna.real_name, C.client.prefs.read_preference(/datum/preference/name/backup_human))
else
Expand Down
1 change: 1 addition & 0 deletions code/modules/jobs/job_types/_job.dm
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@
if(H.dna.species.id != SPECIES_HUMAN)
H.set_species(/datum/species/human)
H.apply_pref_name(/datum/preference/name/backup_human, preference_source)
H.dna.features["flavor_text"] = ""

if(forced_species)
H.set_species(forced_species)
Expand Down

0 comments on commit 553c5f4

Please sign in to comment.