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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user