Strictify item weapon type enum

This commit is contained in:
2014-12-01 14:57:18 -05:00
parent 3a1de0c890
commit afd45b3774
6 changed files with 36 additions and 32 deletions

View File

@@ -341,7 +341,8 @@ void put_item_screen(short screen_num,short suppress_buttons)
sout << univ.party[pc].items[i_num].name << " ";
else { /// Don't place # of charges when Sell button up and space tight
sout << univ.party[pc].items[i_num].full_name << ' ';
if ((univ.party[pc].items[i_num].charges > 0) && (univ.party[pc].items[i_num].type != 2)
// TODO: Why are bashing weapons excluded from this?
if(univ.party[pc].items[i_num].charges > 0 && univ.party[pc].items[i_num].type != eWeapType::BASHING
&& (stat_screen_mode <= 1))
sout << '(' << int(univ.party[pc].items[i_num].charges) << ')';
}