bowl is open (#20453)

Co-authored-by: deltanedas <@deltanedas:kde.org>
This commit is contained in:
deltanedas
2023-09-30 20:52:24 +01:00
committed by GitHub
parent 6f6f9eb364
commit 54851faefa
4 changed files with 65 additions and 107 deletions

View File

@@ -21,12 +21,6 @@
damage: damage:
types: types:
Blunt: 5 Blunt: 5
- type: Drink
solution: food
- type: DrawableSolution
solution: food
- type: Damageable
damageContainer: Inorganic
- type: SolutionTransfer - type: SolutionTransfer
canChangeTransferAmount: true canChangeTransferAmount: true
- type: UserInterface - type: UserInterface

View File

@@ -1,7 +1,7 @@
# Base # Base
- type: entity - type: entity
parent: FoodInjectableBase parent: [FoodInjectableBase, ItemHeftyBase]
id: FoodEggBase id: FoodEggBase
description: An egg! description: An egg!
abstract: true abstract: true
@@ -28,15 +28,7 @@
ignoreEmpty: true ignoreEmpty: true
popup: spike-solution-egg popup: spike-solution-egg
- type: DeleteOnTrigger - type: DeleteOnTrigger
- type: DamageOnLand # egg fragile
damage:
types:
Blunt: 1
- type: DamageOtherOnHit
damage:
types:
Blunt: 1
#Dignity: 25
- type: DamageOnHighSpeedImpact - type: DamageOnHighSpeedImpact
minimumSpeed: 0.1 minimumSpeed: 0.1
damage: damage:

View File

@@ -5,9 +5,9 @@
# Reagent Containers # Reagent Containers
- type: entity - type: entity
abstract: true
parent: BaseItem parent: BaseItem
id: ReagentContainerBase id: ReagentContainerBase
abstract: true
components: components:
- type: Sprite - type: Sprite
sprite: Objects/Consumable/Food/ingredients.rsi sprite: Objects/Consumable/Food/ingredients.rsi
@@ -18,6 +18,8 @@
- type: SolutionTransfer - type: SolutionTransfer
# This is potentially badly-handled due to 'drink opening', # This is potentially badly-handled due to 'drink opening',
# but it lets the flour be tampered with, refilled, etc. # but it lets the flour be tampered with, refilled, etc.
- type: DrawableSolution
solution: food
- type: RefillableSolution - type: RefillableSolution
solution: food solution: food
- type: DrainableSolution - type: DrainableSolution
@@ -26,22 +28,58 @@
solution: food solution: food
useSound: useSound:
path: /Audio/Items/eating_1.ogg path: /Audio/Items/eating_1.ogg
- type: Damageable
damageContainer: Inorganic
- type: Spillable
solution: food
- type: TrashOnEmpty
solution: food
- type: entity
abstract: true
parent: ReagentContainerBase
id: ReagentPacketBase
components:
- type: Openable - type: Openable
sound: sound:
collection: packetOpenSounds collection: packetOpenSounds
- type: Spillable # packet can be broken open
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 2
behaviors:
- !type:PlaySoundBehavior
sound:
collection: desecration
- !type:SpillBehavior
solution: food solution: food
- !type:DoActsBehavior
acts: [ "Destruction" ]
# packet contents can be splashed when open
- type: MeleeWeapon - type: MeleeWeapon
soundNoDamage: soundNoDamage:
path: "/Audio/Effects/Fluids/splat.ogg" path: "/Audio/Effects/Fluids/splat.ogg"
damage: damage:
types: types:
Blunt: 0 Blunt: 0
- type: TrashOnEmpty
solution: food
- type: entity - type: entity
parent: ReagentContainerBase abstract: true
id: ItemHeftyBase
components:
- type: DamageOnLand
damage:
types:
Blunt: 1
- type: DamageOtherOnHit
damage:
types:
Blunt: 1
- type: entity
parent: [ReagentPacketBase, ItemHeftyBase]
id: ReagentContainerFlour id: ReagentContainerFlour
name: flour bag name: flour bag
description: A big bag of flour. Good for baking! description: A big bag of flour. Good for baking!
@@ -55,34 +93,9 @@
reagents: reagents:
- ReagentId: Flour - ReagentId: Flour
Quantity: 50 Quantity: 50
- type: DamageOnLand
damage:
types:
Blunt: 1
- type: DamageOtherOnHit
damage:
types:
Blunt: 1
- type: Damageable
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 2
behaviors:
- !type:PlaySoundBehavior
sound:
collection: desecration
- !type:SpillBehavior
solution: food
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: TrashOnEmpty
solution: food
- type: entity - type: entity
parent: ReagentContainerBase parent: [ReagentPacketBase, ItemHeftyBase]
id: ReagentContainerFlourSmall id: ReagentContainerFlourSmall
name: flour pack name: flour pack
description: A pack of flour. Good for baking! description: A pack of flour. Good for baking!
@@ -96,32 +109,9 @@
reagents: reagents:
- ReagentId: Flour - ReagentId: Flour
Quantity: 20 Quantity: 20
- type: DamageOnLand
damage:
types:
Blunt: 1
- type: DamageOtherOnHit
damage:
types:
Blunt: 1
- type: Damageable
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 2
behaviors:
- !type:PlaySoundBehavior
sound:
collection: desecration
- !type:SpillBehavior
solution: food
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
parent: ReagentContainerBase parent: ReagentPacketBase
id: ReagentContainerCornmeal id: ReagentContainerCornmeal
name: cornmeal bag name: cornmeal bag
description: A big bag of cornmeal. Good for cooking! description: A big bag of cornmeal. Good for cooking!
@@ -136,7 +126,7 @@
Quantity: 50 Quantity: 50
- type: entity - type: entity
parent: ReagentContainerBase parent: ReagentPacketBase
id: ReagentContainerCornmealSmall id: ReagentContainerCornmealSmall
name: cornmeal pack name: cornmeal pack
description: A pack of cornmeal. Good for cooking! description: A pack of cornmeal. Good for cooking!
@@ -152,7 +142,7 @@
Quantity: 20 Quantity: 20
- type: entity - type: entity
parent: ReagentContainerBase parent: ReagentPacketBase
id: ReagentContainerRice id: ReagentContainerRice
name: rice bag name: rice bag
description: A big bag of rice. Good for cooking! description: A big bag of rice. Good for cooking!
@@ -167,7 +157,7 @@
Quantity: 50 Quantity: 50
- type: entity - type: entity
parent: ReagentContainerBase parent: ReagentPacketBase
id: ReagentContainerRiceSmall id: ReagentContainerRiceSmall
name: rice pack name: rice pack
description: A pack of rice. Good for cooking! description: A pack of rice. Good for cooking!
@@ -183,7 +173,7 @@
Quantity: 20 Quantity: 20
- type: entity - type: entity
parent: ReagentContainerBase parent: ReagentPacketBase
id: ReagentContainerSugar id: ReagentContainerSugar
name: sugar bag name: sugar bag
description: A big bag of tasty spacey sugar. description: A big bag of tasty spacey sugar.
@@ -198,7 +188,7 @@
Quantity: 50 Quantity: 50
- type: entity - type: entity
parent: ReagentContainerBase parent: ReagentPacketBase
id: ReagentContainerSugarSmall id: ReagentContainerSugarSmall
name: sugar pack name: sugar pack
description: A pack of tasty spacey sugar. description: A pack of tasty spacey sugar.
@@ -216,7 +206,7 @@
# Milk # Milk
- type: entity - type: entity
parent: ReagentContainerBase parent: ReagentPacketBase
id: ReagentContainerMilk id: ReagentContainerMilk
name: milk name: milk
description: It's milk. White and nutritious goodness! description: It's milk. White and nutritious goodness!
@@ -232,7 +222,7 @@
Quantity: 50 Quantity: 50
- type: entity - type: entity
parent: ReagentContainerBase parent: ReagentPacketBase
id: ReagentContainerMilkSoy id: ReagentContainerMilkSoy
name: soy milk name: soy milk
description: It's soy milk. White and nutritious goodness! description: It's soy milk. White and nutritious goodness!
@@ -248,7 +238,7 @@
Quantity: 50 Quantity: 50
- type: entity - type: entity
parent: ReagentContainerBase parent: ReagentPacketBase
id: ReagentContainerMilkOat id: ReagentContainerMilkOat
name: oat milk name: oat milk
description: It's oat milk. Tan and nutritious goodness! description: It's oat milk. Tan and nutritious goodness!
@@ -266,7 +256,7 @@
# Misc # Misc
- type: entity - type: entity
parent: ReagentContainerBase parent: ReagentPacketBase
id: ReagentContainerOliveoil id: ReagentContainerOliveoil
name: olive oil name: olive oil
description: Olive oil. From space olives presumably. description: Olive oil. From space olives presumably.
@@ -282,7 +272,7 @@
Quantity: 20 Quantity: 20
- type: entity - type: entity
parent: ReagentContainerBase parent: ReagentPacketBase
id: ReagentContainerMayo id: ReagentContainerMayo
name: mayonnaise name: mayonnaise
description: Bottle of mayonnaise. description: Bottle of mayonnaise.
@@ -298,7 +288,7 @@
Quantity: 20 Quantity: 20
# - type: entity # - type: entity
# parent: ReagentContainerBase # parent: ReagentPacketBase
# id: ReagentContainerAllspice # id: ReagentContainerAllspice
# name: all-spice # name: all-spice
# description: # description:
@@ -316,13 +306,12 @@
- type: entity - type: entity
abstract: true abstract: true
parent: BaseItem parent: FoodBase
id: FoodBakingBase id: FoodBakingBase
description: Used in various recipes. description: Used in various recipes.
components: components:
- type: Sprite - type: Sprite
sprite: Objects/Consumable/Food/ingredients.rsi sprite: Objects/Consumable/Food/ingredients.rsi
- type: Food
- type: SolutionContainerManager - type: SolutionContainerManager
solutions: solutions:
food: food:

View File

@@ -548,7 +548,7 @@
- type: entity - type: entity
name: tomato name: tomato
parent: FoodProduceBase parent: [FoodProduceBase, ItemHeftyBase]
id: FoodTomato id: FoodTomato
description: I say to-mah-to, you say tom-mae-to. description: I say to-mah-to, you say tom-mae-to.
components: components:
@@ -576,15 +576,6 @@
reagents: reagents:
- ReagentId: JuiceTomato - ReagentId: JuiceTomato
Quantity: 10 Quantity: 10
- type: DamageOnLand
damage:
types:
Blunt: 1
- type: DamageOtherOnHit
damage:
types:
Blunt: 1
#Dignity: 25
- type: Damageable - type: Damageable
damageContainer: Biological damageContainer: Biological
- type: DamageOnHighSpeedImpact - type: DamageOnHighSpeedImpact
@@ -1329,7 +1320,7 @@
- type: entity - type: entity
name: watermelon name: watermelon
parent: FoodProduceBase parent: [FoodProduceBase, ItemHeftyBase]
id: FoodWatermelon id: FoodWatermelon
description: Round green object that you can slice and eat. description: Round green object that you can slice and eat.
components: components:
@@ -1358,14 +1349,6 @@
reagents: reagents:
- ReagentId: JuiceWatermelon - ReagentId: JuiceWatermelon
Quantity: 20 Quantity: 20
- type: DamageOnLand
damage:
types:
Blunt: 1
- type: DamageOtherOnHit
damage:
types:
Blunt: 1
- type: Damageable - type: Damageable
damageContainer: Biological damageContainer: Biological
- type: DamageOnHighSpeedImpact - type: DamageOnHighSpeedImpact