summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/output.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-09 17:27:13 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2008-01-09 17:27:13 +0000
commit340eb55f6f4e86a27ae17457d04d81ca52c17e6f (patch)
tree32b3d924f5feda39cee37eb4139e21f541ffb819 /crawl-ref/source/output.cc
parent5698a4093e17ffde7c118393b221830c1b29dd94 (diff)
downloadcrawl-ref-340eb55f6f4e86a27ae17457d04d81ca52c17e6f.tar.gz
crawl-ref-340eb55f6f4e86a27ae17457d04d81ca52c17e6f.zip
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
Diffstat (limited to 'crawl-ref/source/output.cc')
-rw-r--r--crawl-ref/source/output.cc31
1 files changed, 29 insertions, 2 deletions
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)
{