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:
@@ -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
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
canAcceptFood: true
|
||||
- type: Appearance
|
||||
- type: SolutionContainerVisuals
|
||||
- type: Food
|
||||
- type: Edible
|
||||
transferAmount: 2.5
|
||||
- type: Spillable
|
||||
solution: food
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
whitelist:
|
||||
components:
|
||||
- Food
|
||||
- Edible
|
||||
tags:
|
||||
- CP14FitInFryingPan #Todo delete this tag from game
|
||||
cP14Ignorelist:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user