Project Zomboid

Project Zomboid

Rick's MLC Cutlery
Mostrando 1-4 de 4 aportaciones
Actualización: 22 DIC 2024 a las 17:36

Updated for B42.

Actualización: 5 SEP 2024 a las 16:15

Cleaned up the ISEatFoodAction:start() to check if the food can use cutlery at the start of method so it doesn's spend time rummaging around in backpacks etc looking for spoons or forks and then finding out it didn't need them anyway.

Actualización: 9 ENE 2024 a las 5:26

Fixed an issue where cutlery is transferred even if eating does not use cutlery. This update will now only use cutlery if the correct EatType is set for the food.

Actualización: 8 ENE 2024 a las 7:03

Version 1.0 release. I can't believe it, but this code actually worked the first time I ran it.

This mod enhances the ISEatFoodAction by overriding start() perform() and stop() to detect if cutlery (spoon or fork) is in your backpack or other container. If it finds one, it will transfer it to your inventory, perform the vanilla eat action, then return the cutlery to the container where it came from.

Interrupting the eat will cause the cutlery to stay in your main inventory.

Eating with cutlery will reduce Unhappiness by 1, 0.5 or 0.25 depending on Eat All or 1/2 or 1/4. You will not get the cutlery bonus if you interrupt eating.