Skip to content

Commit

Permalink
Fix #52 (Genemod changes don't show in character creation until after…
Browse files Browse the repository at this point in the history
… something else updates)
  • Loading branch information
out-of-phaze committed May 31, 2024
1 parent 655163f commit 633a099
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mods/content/genemodding/cosmetics_selection.dm
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/datum/category_item/player_setup_item/physical/cosmetics/content(var/mob/user)
. += "<h2>Genemod Selection</h2>"

var/ear_display = "Normal"
var/ear_display = "NULL"
var/list/ear_styles = decls_repository.get_decls_of_subtype(/decl/sprite_accessory/ears)
var/list/tail_styles = decls_repository.get_decls_of_subtype(/decl/sprite_accessory/tail)
var/decl/sprite_accessory/ears/ear = (pref.ear_style in ear_styles) ? ear_styles[pref.ear_style] : null
Expand All @@ -16,7 +16,7 @@
if (ear.extra_overlay)
. += "<a href='?src=\ref[src];ear_color2=1'>Change Secondary Color</a> [COLORED_SQUARE(pref.ear_color_extra)]<br>"

var/tail_display = "Normal"
var/tail_display = "normal tail"
var/decl/sprite_accessory/tail/tails = (pref.tail_style in tail_styles) ? tail_styles[pref.tail_style] : null
if(tails)
tail_display = tails.name
Expand Down Expand Up @@ -67,7 +67,7 @@

else if(href_list["tail_style"])
// Construct the list of names allowed for this user.
var/list/pretty_tail_styles = list()
var/list/pretty_tail_styles = list("normal tail" = null)
for(var/path in tail_styles)
var/decl/sprite_accessory/tail/instance = tail_styles[path]
pretty_tail_styles[instance.name] = path
Expand Down
1 change: 1 addition & 0 deletions mods/content/genemodding/player_setup.dm
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@
character.ear_style = ear_styles[ear_style]
character.ear_color = ear_color
character.ear_color_extra = ear_color_extra
character.update_hair(update_icons = FALSE)
character.tail_style = tail_styles[tail_style]
character.tail_color = tail_color
character.tail_color_extra = tail_color_extra
Expand Down

0 comments on commit 633a099

Please sign in to comment.