feat: eat to heal
This commit is contained in:
1 parent
7d592c43ca
commit
9bcb6f8a3d
7 files changed
+36
-21
No files matched your search
@@ -36,7 +36,7 @@ FoodItem::FoodItem(int id, int nutrition, bool isMeat)
|
||||
shared_ptr<ItemInstance> FoodItem::useTimeDepleted(shared_ptr<ItemInstance> instance, Level *level, shared_ptr<Player> player)
|
||||
{
|
||||
instance->count--;
|
||||
player->getFoodData()->eat(this);
|
||||
player->getFoodData()->eat(this, player);
|
||||
// 4J - new sound brought forward from 1.2.3
|
||||
level->playSound(player, eSoundType_RANDOM_BURP, 0.5f, level->random->nextFloat() * 0.1f + 0.9f);
|
||||
|
||||
|
||||
Reference in new issue
Block a user