Skip to content

Commit

Permalink
Correct how the display_char option handles gems and gold.
Browse files Browse the repository at this point in the history
DCHAR_ITEM_GOLD and DCHAR_ITEM_GEM were in a different order in
dchar_names[] (used by the "display_char" option) to the one in
dungeon_char_type, meaning that the option had unexpected effects.

Fix this, and add item_gem to the docs for this option.
  • Loading branch information
Aliscans committed Mar 17, 2024
1 parent 424f3ba commit 0965991
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crawl-ref/docs/options_guide.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2811,7 +2811,7 @@ display_char = <dungeon_character_name : symbol>
invis_exposed, item_detected, item_orb, item_rune, item_weapon,
item_armour, item_wand, item_scroll, item_ring, item_potion,
item_missile, item_book, item_staff, item_rod, item_miscellany,
item_corpse, item_skeleton, item_gold, item_amulet, cloud,
item_corpse, item_skeleton, item_gold, item_gem, item_amulet, cloud,
cloud_weak, cloud_fading, cloud_terminal, tree, transporter,
transporter_landing, space, fired_bolt, fired_zap, fired_burst,
fired_debug, fired_missile, fired_missile, explosion, frame_horiz,
Expand Down
6 changes: 3 additions & 3 deletions crawl-ref/source/viewchar.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ dungeon_char_type dchar_by_name(const string &name)
#if TAG_MAJOR_VERSION == 34
"item_rod",
#endif
"item_talisman", "item_miscellany", "item_corpse", "item_skeleton", "item_gem", "item_gold",
"item_amulet", "cloud", "cloud_weak", "cloud_fading", "cloud_terminal",
"tree",
"item_talisman", "item_miscellany", "item_corpse", "item_skeleton",
"item_gold", "item_gem", "item_amulet", "cloud", "cloud_weak",
"cloud_fading", "cloud_terminal", "tree",
#if TAG_MAJOR_VERSION == 34
"teleporter",
#endif
Expand Down

0 comments on commit 0965991

Please sign in to comment.