play action failed grunt when item too heavy

This commit is contained in:
2024-12-01 15:06:18 -06:00
parent 2876993c78
commit 4c27f731f5
2 changed files with 2 additions and 2 deletions

View File

@@ -499,7 +499,7 @@ static bool display_item_event_filter(cDialog& me, std::string id, size_t& first
set_item_flag(&item);
} else {
if(!allow_overload && item.item_weight() > univ.party[current_getting_pc].free_weight()) {
beep(); // TODO: This is a game event, so it should have a game sound, not a system alert.
play_sound(41);
me["prompt"].setText("It's too heavy to carry.");
give_help(38,0,me);
return true;

View File

@@ -477,7 +477,7 @@ bool cPlayer::give_item(cItem item, int flags) {
}
if(!allow_overload && item.item_weight() > free_weight()) {
if(do_print && print_result) {
//beep(); // TODO: This is a game event, so it should have a game sound, not a system alert.
play_sound(41);
print_result("Item too heavy to carry.");
}
return false;