talk/shop: try to remove uneeded item's drop/give/use icons...

This commit is contained in:
ALONSO Laurent
2021-10-09 15:54:00 +02:00
committed by Celtic Minstrel
parent 0f37292ab5
commit 09f847585f
2 changed files with 4 additions and 8 deletions

View File

@@ -865,7 +865,8 @@ void handle_talk_event(location p) {
save_talk_str2 = univ.town.cur_talk().talk_nodes[which_talk_entry].str2;
can_save_talk = true;
stat_screen_mode = MODE_SHOP;
switch(ttype) {
case eTalkNode::REGULAR:
break;

View File

@@ -331,14 +331,9 @@ void put_item_screen(eItemWinMode screen_num) {
style.italic = false;
style.colour = Colours::BLACK;
// this is kludgy, awkwark, and has redundant code. Done this way to
// make go faster, and I got lazy.
if((stat_screen_mode == MODE_SHOP) &&
((is_town()) || (is_out()) || ((is_combat()) && (pc == univ.cur_pc)))) { // place give and drop and use
if(stat_screen_mode == MODE_SHOP && !is_combat()) { // place give and drop and use
place_item_graphic(i,item.graphic_num);
if(item.can_use()) // place use if can
place_item_button(ITEMBTN_NORM,i);
else place_item_button(ITEMBTN_ALL,i);
place_item_button(3,i,ITEMBTN_INFO); // info button
}
else {
place_item_graphic(i,item.graphic_num);