1
0

Fixed food handler for mushroom soup - proper food level and saturation are applied and the player receives a wooden bowl back after nomming

This commit is contained in:
James Ravenscroft
2013-08-08 16:32:14 +01:00
parent cc920ea929
commit 9f7db50de0
3 changed files with 9 additions and 0 deletions

View File

@@ -400,7 +400,14 @@ void cPlayer::FinishEating(void)
return;
}
ItemHandler->OnFoodEaten(m_World, this, &Item);
GetInventory().RemoveOneEquippedItem();
//if the food is mushroom soup, return a bowl to the inventory
if( Item.m_ItemType == E_ITEM_MUSHROOM_SOUP ) {
cItem emptyBowl(E_ITEM_BOWL, 1, 0, "");
GetInventory().AddItem(emptyBowl, true, true);
}
}