also contains a bunch of other changes for the quiver
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4190 c06c8d41-db1a-0410-9941-cceddc491573
CZCG4FOXPQXXUCGKK4W2IHUJK2PXUZJ22IAA6UIZ2EU7WX7VLOBQC
NY5JJY33IHF5EKTLPDFVYTN3PFNKV4A3MAH5MRQ3AWH53L2HFIQQC
K2CS6TCX2NDVL2ASEHGP4J4K4IJ6FP3ANNKTSIWVG43HPYSBX6ZQC
SDLKLUNFGVKDS55DDJZCBAVIB7NL3RRYPTACAY65SCUQKV6APFSAC
3VWSZUGYL36SO5AOZRASGK3VHFCFZUGGCGRT3R7BZB36IZPN7OSQC
HL47H6Q4SA2KSPHWZSOCGHHCDB6JGC4LLHPA4JUHNCCPF2ZGQNTAC
TM35IHKZZNBCMR3ERBS4EYHGUK5IVCPUT2JUITMT74AYAIUZSYFQC
EMJSHEKS7UTRRLF7GW5WYVI7RAAUJJQX2D3PAIO7UZFGNREIZOAAC
if (you.wield_change) { you.wield_change = false; _print_stats_wp(10); }
if (you.quiver_change) { you.quiver_change = false; _print_stats_qv(11); }
if (you.wield_change)
{
// weapon_change is set in a billion places; probably not all
// of them actually mean the user changed their weapon. Calling
// on_weapon_changed redundantly is normally OK; but if the user
// is wielding a bow and throwing javelins, the on_weapon_changed
// will switch them back to arrows, which will be annoying.
// Perhaps there should be another bool besides wield_change
// that's set in fewer places?
// Also, it's a little bogus to change simulation state in
// render code. We should find a better place for this.
you.m_quiver->on_weapon_changed();
_print_stats_wp(10);
}