diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-02 16:52:40 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-02 16:52:40 +0000 |
commit | 0a4efdf86b33220269f7439aeb5952a88d50efa7 (patch) | |
tree | fb0826c6072cd6f598ed9e905dea8faa4fd30601 /crawl-ref/source/itemname.h | |
parent | b50eafe8de72cbcc4431813934695c22642cdd46 (diff) | |
download | crawl-ref-0a4efdf86b33220269f7439aeb5952a88d50efa7.tar.gz crawl-ref-0a4efdf86b33220269f7439aeb5952a88d50efa7.zip |
Fix a stupid bug I'd introduced when fixing another one.
Fix 1939901: Weapon listing not updated right away after being cursed.
Put the code to colour arbitrary substrings of a message according to
the menu_colour settings into a function of its own, and use it for
pick up and eating prompts (currently from floor only) as well as for
the "Things that are here" listing. Could be overly spammy, thus needs
testing. If all works well, we can remove the "msg =" settings in
food_colouring.txt that currently don't do anything anyway, or reuse
them for non-prompt messages like "You see here a green rat corpse."
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5436 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/itemname.h')
-rw-r--r-- | crawl-ref/source/itemname.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/crawl-ref/source/itemname.h b/crawl-ref/source/itemname.h index af5645892a..e1a01c241c 100644 --- a/crawl-ref/source/itemname.h +++ b/crawl-ref/source/itemname.h @@ -40,7 +40,7 @@ enum item_type_id_state_type // used for values in id[4][50] ID_KNOWN_TYPE }; -// [dshaligram] If you edit potion colours/descriptions, also update +// [dshaligram] If you edit potion colours/descriptions, also update // itemname.cc. enum potion_description_colour_type { @@ -61,7 +61,7 @@ enum potion_description_colour_type PDC_NCOLOURS }; -// [dshaligram] If you edit potion colours/descriptions, also update +// [dshaligram] If you edit potion colours/descriptions, also update // itemname.cc. enum potion_description_qualifier_type { @@ -131,6 +131,8 @@ void set_ident_type( object_class_type basetype, int subtype, * called from: command - itemname - invent.h * *********************************************************************** */ const std::string menu_colour_item_prefix(const item_def &item); +const std::string get_menu_colour_prefix_tags(item_def &item, + description_level_type desc); void init_item_name_cache(); item_types_pair item_types_by_name(std::string name); |