From 340eb55f6f4e86a27ae17457d04d81ca52c17e6f Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Wed, 9 Jan 2008 17:27:13 +0000 Subject: List quiver in status section like you do for the hand weapon. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3234 c06c8d41-db1a-0410-9941-cceddc491573 --- crawl-ref/source/output.cc | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) (limited to 'crawl-ref/source/output.cc') diff --git a/crawl-ref/source/output.cc b/crawl-ref/source/output.cc index 7003483091..f527dfec17 100644 --- a/crawl-ref/source/output.cc +++ b/crawl-ref/source/output.cc @@ -31,6 +31,7 @@ #include "itemname.h" #include "itemprop.h" #include "items.h" +#include "item_use.h" #include "menu.h" #include "message.h" #include "ouch.h" @@ -392,6 +393,32 @@ void print_stats(void) you.wield_change = false; } + if (you.quiver_change) + { + gotoxy(1, 14, GOTO_STAT); + clear_to_end_of_line(); + gotoxy(1, 14, GOTO_STAT); + + you.quiver = get_fire_item_index(); + + if (you.quiver == ENDOFPACK) + cprintf("Nothing quivered"); + else + { + const item_def& quiver = you.inv[you.quiver]; + textcolor(quiver.colour); + + const std::string prefix = menu_colour_item_prefix(quiver); + const int prefcol = menu_colour(quiver.name(DESC_INVENTORY), prefix); + if (prefcol != -1) + textcolor(prefcol); + + cprintf("%s", quiver.name(DESC_INVENTORY, true).substr(0,38).c_str()); + textcolor(LIGHTGREY); + } + you.quiver_change = false; + } + // The colour scheme for these flags is currently: // // - yellow, "orange", red for bad conditions @@ -402,9 +429,9 @@ void print_stats(void) if (you.redraw_status_flags & REDRAW_LINE_1_MASK) { - gotoxy(1, 14, GOTO_STAT); + gotoxy(1, 15, GOTO_STAT); clear_to_end_of_line(); - gotoxy(1, 14, GOTO_STAT); + gotoxy(1, 15, GOTO_STAT); switch (you.burden_state) { -- cgit v1.2.3-54-g00ecf