diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-09 16:17:48 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-06-09 16:17:48 +0000 |
commit | 7b7a36d0531a016ba81520bec2a4a4177e2ca8ed (patch) | |
tree | 2054ca1b5243de711a38a2751edc06f39d92b001 /crawl-ref/settings/menu_colours.txt | |
parent | 5443a68f96b0ba24b0de77573ad36a5633b39cd7 (diff) | |
download | crawl-ref-7b7a36d0531a016ba81520bec2a4a4177e2ca8ed.tar.gz crawl-ref-7b7a36d0531a016ba81520bec2a4a4177e2ca8ed.zip |
Yikes, so many files! And all I did was add more item evaluation
functions for menu colouring and pickup...
Added: emergency_item, good_item, dangerous_item, bad_item, and
useless_item, all taking into account player species and
mutations, so e.g. =see invisible is useless for Naga,
and !poison is always bad but only useless if you don't
know Evaporate.
Never autopickup useless, dangerous (e.g. ?immolation) or inedible items,
and simplify the item colour/pickup options accordingly. I'll have to
see if pickup.lua is still even needed after this.
Removed the menu_colour_prefix_id option as I can't see any reason to
turn it off.
Oh, and fixed a bug where Kenku were unable to stop levitating if they
gained level 15 while levitating.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@5658 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/settings/menu_colours.txt')
-rw-r--r-- | crawl-ref/settings/menu_colours.txt | 85 |
1 files changed, 13 insertions, 72 deletions
diff --git a/crawl-ref/settings/menu_colours.txt b/crawl-ref/settings/menu_colours.txt index e01eef7da9..e751cc41b4 100644 --- a/crawl-ref/settings/menu_colours.txt +++ b/crawl-ref/settings/menu_colours.txt @@ -9,16 +9,15 @@ menu = lightmagenta:.*misc.*rune( of Zot)? menu = lightmagenta:.*orb.*Zot # Artefacts +# menu = white:.*artefact.* -# If Options.menu_colour_prefix_id is set to true, you can -# differentiate further. #menu = white:.*identified.*artefact.* -#menu = magenta:.*unidentified.*artefact.* +#menu = lightblue:.*unidentified.*artefact.* # Ego items # -: if options.menu_colour_prefix_class and options.menu_colour_prefix_id then +: if options.menu_colour_prefix_class then menu = lightblue:(^identified armour .* pair of .* of ) menu = lightgrey:(^identified armour .* pair of ) menu = lightblue:(^identified (weapon|armour) .* of ) @@ -33,88 +32,30 @@ menu = lightblue:.*weapon.*(runed|glowing) menu = lightblue:.*armour.*(runed|glowing|embroidered|shiny|dyed) :end -# Mummies' potions -# -: if you.race() == "Mummy" then -menu_colour = darkgrey:.*potion.* -: end +# Emergency items +menu = yellow:.*emergency_item.* -# Emergency items -# -menu = cyan:.*scroll.*(blinking|teleport|fear) -menu = cyan:.*wand.*(teleport|healing|hasting) -menu = cyan:.*potion.*(heal|berserk|speed|resistance) +# Good items +menu = cyan:.*good_item.* menu = cyan:.*misc.*[lL]antern -# Good items -# -menu = magenta:.*scroll.*(acquirement) -menu = magenta:.*potion.*(gain (strength|dexterity|intelligence)) -menu = magenta:.*potion.*(experience|magic) -: if not you_real_undead() then -menu = magenta:.*potion.*(of mutation) -: else -menu = lightred:.*potion.*(of mutation) -: end +# Bad items +menu = lightred:.*bad_item.* -# Dangerous items -# -menu = lightred:.*scroll.*(forgetfulness|torment|curse armour) -menu = lightred:.*scroll.*(immolation|curse weapon) -menu = lightred:.*potion.*(slowing|degeneration|poison|confusion) -menu = lightred:.*potion.*(paralysis|decay) -menu = lightred:.*jewellery.*(inaccuracy|hunger) +# Dangerous (but still useful) items +menu = magenta:.*dangerous_item.* # Useless items -# -menu = darkgrey:.*scroll.*(random uselessness|paper|noise) -menu = darkgrey:.*potion.*water - -: if you.race() == "Mummy" then -menu = darkgrey:.*jewellery.*(sustenance) -: end - -: if you_real_undead() then -menu = darkgrey:.*jewellery.*(regeneration|rage) -: end - -: if string.find(you.race(), "Draconian", 0, true) then -menu = darkgrey:.*jewellery.*(controlled flight) -ae = >amulet.*(controlled flight) -: end - -: if you.race() == "Green Draconian" or you.race() == "Naga" then -menu = darkgrey:.*jewellery.*(poison resistance) -ae = >ring.*(poison resistance) -: end - -< if you.race() == "Naga" or - you.race() == "Spriggan" or - you.race() == "Vampire" then > -menu = darkgrey:.*jewellery.*(see invis) -ae = >ring.*(see invis) -:end +menu = darkgrey:.*useless_item.* : if you.race() == "Spriggan" then menu = darkgrey:.*jewellery.*(sustenance) ae = >ring.*(sustenance) :end -# need to save and restore after temple if you get trog later -: if you.god() == "Trog" then -menu = darkgrey:.*jewellery.*(rage|wizardry) -ae = >amulet.*(rage) -ae = >ring.*(wizardry) -: end - -# Exceptions -# -menu = yellow:.*potion.*(porridge|gluggy white) - # Defaults for normal items # -menu = lightred:.* equipped.* cursed +menu = lightred:.*equipped.* cursed menu = green:.*equipped.* menu = green:uncursed menu = red:cursed -menu = lightgrey:^(scroll|potion|ring|amulet) |