play action failed grunt when item too heavy
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user