Skip to content

Commit

Permalink
Apply purple_uniques to monster list glyphs
Browse files Browse the repository at this point in the history
  • Loading branch information
backwardsEric authored and NickMcConnell committed Jan 19, 2025
1 parent 234346c commit d7e8c1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ui-mon-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

Expand Down

0 comments on commit d7e8c1d

Please sign in to comment.