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/source/output.cc | |
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/source/output.cc')
-rw-r--r-- | crawl-ref/source/output.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index e5a0f367f0..14dc57e16e 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -650,12 +650,14 @@ static void _get_status_lights(std::vector<status_light>& out) if (wearing_amulet( AMU_CONTROLLED_FLIGHT )) { int color = _dur_colour( you.light_flight()? BLUE : MAGENTA, - (you.duration[DUR_LEVITATION] <= 10 && !perm) ); + (you.duration[DUR_LEVITATION] <= 10 + && !perm) ); out.push_back(status_light(color, "Fly")); } else { - int color = _dur_colour(BLUE, (you.duration[DUR_LEVITATION] <= 10 && !perm)); + int color = _dur_colour(BLUE, (you.duration[DUR_LEVITATION] <= 10 + && !perm)); out.push_back(status_light(color, "Lev")); } } @@ -1457,7 +1459,7 @@ void update_monster_pane() for (unsigned int i=1; i < mons.size(); i++) if (! monster_pane_info::less_than(mons[i-1], mons[i])) -- lines_needed; - } + } #if BOTTOM_JUSTIFY_MONSTER_LIST const int skip_lines = std::max<int>(0, crawl_view.mlistsz.y-lines_needed); |