feat: eat to heal

This commit is contained in:
str1k3r committed 2026-09-27 10:26:56 -04:00
1 parent 7d592c43ca
commit 9bcb6f8a3d
7 files changed
+36 -21

No files matched your search

+1 -1
View File
@@ -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);