Fix funny message: can't give to dead pcs because 'no item slot'

This commit is contained in:
2025-04-06 18:04:52 -05:00
parent 3af79e80d3
commit 8b14519fa5
4 changed files with 9 additions and 2 deletions

View File

@@ -334,6 +334,9 @@ void handle_sale(int i) {
else if(base_item.variety == eItemType::QUEST) ASB("You already completed this.");
else ASB("You own too many of this.");
break;
// This should not happen:
case eBuyStatus::DEAD:
break;
}
break;
case eShopItemType::ALCHEMY:

View File

@@ -967,6 +967,10 @@ short select_pc(eSelectPC mode, std::string title, eSkill highlight_highest, boo
extra_info = "no item slot";
can_pick = false;
break;
case eBuyStatus::DEAD:
// Extra info not really needed, and kind of silly to print
can_pick = false;
break;
default:
break;
}