From d7e8c1d7a3398d7a5bb817bc9fdfaed72d4b9b46 Mon Sep 17 00:00:00 2001 From: Eric Branlund Date: Sat, 18 Jan 2025 15:51:36 -0700 Subject: [PATCH] Apply purple_uniques to monster list glyphs Resolves https://github.com/angband/angband/issues/6166 . --- src/ui-mon-list.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/ui-mon-list.c b/src/ui-mon-list.c index 4e314683b..426468385 100644 --- a/src/ui-mon-list.c +++ b/src/ui-mon-list.c @@ -351,6 +351,11 @@ static void monster_list_get_glyphs(monster_list_t *list) /* If no monster attribute use the standard UI picture. */ if (!entry->attr) entry->attr = monster_x_attr[entry->race->ridx]; + /* If purple_uniques is relevant, apply it. */ + if (!(entry->attr & 0x80) && OPT(player, purple_uniques) + && rf_has(entry->race->flags, RF_UNIQUE)) { + entry->attr = COLOUR_VIOLET; + } } }