egg rework (#21606)
* egg and raw egg * add DamageEntity * boiling and exploding eggs --------- Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
@@ -56,6 +56,16 @@
|
||||
# Wow double-yolk you're so lucky!
|
||||
- !type:DoActsBehavior
|
||||
acts: [ "Destruction" ]
|
||||
# all below are for egg cooking/exploding
|
||||
- type: AtmosExposed
|
||||
- type: Temperature
|
||||
currentTemperature: 290
|
||||
- type: InternalTemperature
|
||||
# ~1mm shell and ~1cm of albumen
|
||||
thickness: 0.011
|
||||
area: 0.04
|
||||
# conductivity of egg shell based on a paper from Romanoff and Romanoff (1949)
|
||||
conductivity: 0.456
|
||||
|
||||
# Splat
|
||||
- type: entity
|
||||
@@ -91,7 +101,6 @@
|
||||
name: egg
|
||||
components:
|
||||
- type: Sprite
|
||||
sprite: Objects/Consumable/Food/egg.rsi
|
||||
layers:
|
||||
- state: icon
|
||||
map: [ "enum.DamageStateVisualLayers.Base" ]
|
||||
@@ -101,3 +110,30 @@
|
||||
icon: ""
|
||||
- enum.DamageStateVisualLayers.Base:
|
||||
white: ""
|
||||
- type: Construction
|
||||
graph: Egg
|
||||
node: start
|
||||
|
||||
- type: entity
|
||||
parent: FoodEggBase
|
||||
id: FoodEggBoiled
|
||||
name: boiled egg
|
||||
description: A delicious hardboiled egg.
|
||||
components:
|
||||
- type: Sprite
|
||||
layers:
|
||||
- state: icon
|
||||
map: [ "enum.DamageStateVisualLayers.Base" ]
|
||||
- type: SolutionContainerManager
|
||||
solutions:
|
||||
food:
|
||||
maxVol: 6
|
||||
reagents:
|
||||
- ReagentId: EggCooked
|
||||
Quantity: 6
|
||||
- type: Temperature
|
||||
# preserve temperature from the boiling step
|
||||
currentTemperature: 344
|
||||
- type: Construction
|
||||
graph: Egg
|
||||
node: boiled
|
||||
|
||||
@@ -229,6 +229,11 @@
|
||||
flavorType: Complex
|
||||
description: flavor-complex-egg
|
||||
|
||||
- type: flavor
|
||||
id: raw-egg
|
||||
flavorType: Complex
|
||||
description: flavor-complex-raw-egg
|
||||
|
||||
- type: flavor
|
||||
id: bacon
|
||||
flavorType: Complex
|
||||
|
||||
@@ -65,10 +65,26 @@
|
||||
|
||||
- type: reagent
|
||||
id: Egg
|
||||
name: reagent-name-raw-egg
|
||||
group: Foods
|
||||
desc: reagent-desc-raw-egg
|
||||
physicalDesc: reagent-physical-desc-mucus-like
|
||||
flavor: raw-egg
|
||||
color: white
|
||||
recognizable: true
|
||||
metabolisms:
|
||||
Food:
|
||||
effects:
|
||||
- !type:AdjustReagent
|
||||
reagent: UncookedAnimalProteins
|
||||
amount: 0.5
|
||||
|
||||
- type: reagent
|
||||
id: EggCooked
|
||||
name: reagent-name-egg
|
||||
group: Foods
|
||||
desc: reagent-desc-egg
|
||||
physicalDesc: reagent-physical-desc-mucus-like
|
||||
physicalDesc: reagent-physical-desc-fluffy
|
||||
flavor: egg
|
||||
color: white
|
||||
recognizable: true
|
||||
@@ -77,7 +93,7 @@
|
||||
effects:
|
||||
- !type:AdjustReagent
|
||||
reagent: Protein
|
||||
amount: 0.5
|
||||
amount: 1
|
||||
|
||||
- type: reagent
|
||||
id: Blackpepper
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
# egg explodes when heated!!!
|
||||
- type: constructionGraph
|
||||
id: Egg
|
||||
start: start
|
||||
graph:
|
||||
- node: start
|
||||
edges:
|
||||
- to: boiled
|
||||
steps:
|
||||
- minTemperature: 344
|
||||
- node: boiled
|
||||
entity: FoodEggBoiled
|
||||
edges:
|
||||
- to: explode
|
||||
completed:
|
||||
- !type:DamageEntity
|
||||
damage:
|
||||
Blunt: 10
|
||||
steps:
|
||||
# egg explodes some time after the water in it boils and increases pressure, guessing ~110C
|
||||
- minTemperature: 383
|
||||
- node: explode
|
||||
@@ -8,6 +8,16 @@
|
||||
products:
|
||||
Protein: 0.5
|
||||
|
||||
- type: reaction
|
||||
id: EggCooking
|
||||
impact: Low
|
||||
minTemp: 344
|
||||
reactants:
|
||||
Egg:
|
||||
amount: 0.5
|
||||
products:
|
||||
EggCooked: 0.5
|
||||
|
||||
- type: reaction
|
||||
id: BloodToWine
|
||||
impact: Low
|
||||
|
||||
Reference in New Issue
Block a user