Refactor Food component to Edible in meal and cooking entities

Replaced the deprecated 'Food' component with the 'Edible' component in bowl, plate, and pie_pan YAML prototypes. Updated base cooking entity whitelist to include 'Edible' for compatibility. This change standardizes food consumption logic and improves maintainability.
This commit is contained in:
Ed
2025-09-08 12:49:43 +03:00
parent a246db9ec1
commit 67e5ef8ecb
4 changed files with 7 additions and 6 deletions

View File

@@ -21,9 +21,8 @@
canAcceptFood: true
- type: Appearance
- type: SolutionContainerVisuals
- type: Food
useSound:
path: /Audio/Items/drink.ogg
- type: Edible
edible: Drink
utensil: Spoon
transferAmount: 2.5
- type: Spillable

View File

@@ -22,7 +22,7 @@
canAcceptFood: true
- type: Appearance
- type: SolutionContainerVisuals
- type: Food
- type: Edible
transferAmount: 2.5
- type: Spillable
solution: food

View File

@@ -32,6 +32,7 @@
whitelist:
components:
- Food
- Edible
tags:
- CP14FitInFryingPan #Todo delete this tag from game
cP14Ignorelist:

View File

@@ -55,9 +55,10 @@
burn:
True: { visible: true }
False: { visible: false }
- type: Food
solution: cooker
- type: Edible
edible: Food
transferAmount: 2.5
solution: cooker
trash:
- CP14PlatePie
- type: Spillable