Playing 3.2, but probably applies to most recent versions. When there is a lot of junk on the ground the object list ("]") command is great to find the "interesting" objects. It is also useful that it highlights artifacts in violet and objects that have not been seen yet in red. I thought it would be even more useful if it also highlighted objects that were not fully identified. I wondered if it might be a simple edit to make this happen, since the code to highlight was already there. It turns out that it was, as evidenced by the fact that I was able to do it.
If you are the compile-it-yourself type, you can make this change by editing src/object/obj-util.c and finding the display_itemlist function. Find the following code:
Add three lines to it as follows:
I picked orange; if you want a different color, look in src/z-term.h, find the color name you want, and substitute it for TERM_ORANGE. Recompile and install and there you have it.
If you are the compile-it-yourself type, you can make this change by editing src/object/obj-util.c and finding the display_itemlist function. Find the following code:
Code:
if (artifact_p(o_ptr) && object_is_known(o_ptr)) /* known artifact */ attr = TERM_VIOLET; else if (!object_flavor_is_aware(o_ptr)) /* unaware of kind */ attr = TERM_RED; else if (object_is_worthless(o_ptr)) /* worthless */ attr = TERM_SLATE; else /* default */ attr = TERM_WHITE;
Code:
if (artifact_p(o_ptr) && object_is_known(o_ptr)) /* known artifact */ attr = TERM_VIOLET; else if (!object_flavor_is_aware(o_ptr)) /* unaware of kind */ attr = TERM_RED; [B][COLOR="Yellow"] else if (!object_is_known(o_ptr)) /* not fully known */ attr = TERM_ORANGE;[/COLOR] [/B] else if (object_is_worthless(o_ptr)) /* worthless */ attr = TERM_SLATE; else /* default */ attr = TERM_WHITE;
Comment