# Reagent Containers
- type: entity
+ abstract: true
parent: BaseItem
id: ReagentContainerBase
- abstract: true
components:
- type: Sprite
sprite: Objects/Consumable/Food/ingredients.rsi
- type: SolutionTransfer
# This is potentially badly-handled due to 'drink opening',
# but it lets the flour be tampered with, refilled, etc.
+ - type: DrawableSolution
+ solution: food
- type: RefillableSolution
solution: food
- type: DrainableSolution
solution: food
useSound:
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
sound:
collection: packetOpenSounds
- - type: Spillable
- solution: food
+ # packet can be broken open
+ - type: Destructible
+ thresholds:
+ - trigger:
+ !type:DamageTrigger
+ damage: 2
+ behaviors:
+ - !type:PlaySoundBehavior
+ sound:
+ collection: desecration
+ - !type:SpillBehavior
+ solution: food
+ - !type:DoActsBehavior
+ acts: [ "Destruction" ]
+ # packet contents can be splashed when open
- type: MeleeWeapon
soundNoDamage:
path: "/Audio/Effects/Fluids/splat.ogg"
damage:
types:
Blunt: 0
- - type: TrashOnEmpty
- solution: food
- 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
name: flour bag
description: A big bag of flour. Good for baking!
reagents:
- ReagentId: Flour
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
- parent: ReagentContainerBase
+ parent: [ReagentPacketBase, ItemHeftyBase]
id: ReagentContainerFlourSmall
name: flour pack
description: A pack of flour. Good for baking!
reagents:
- ReagentId: Flour
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
- parent: ReagentContainerBase
+ parent: ReagentPacketBase
id: ReagentContainerCornmeal
name: cornmeal bag
description: A big bag of cornmeal. Good for cooking!
Quantity: 50
- type: entity
- parent: ReagentContainerBase
+ parent: ReagentPacketBase
id: ReagentContainerCornmealSmall
name: cornmeal pack
description: A pack of cornmeal. Good for cooking!
Quantity: 20
- type: entity
- parent: ReagentContainerBase
+ parent: ReagentPacketBase
id: ReagentContainerRice
name: rice bag
description: A big bag of rice. Good for cooking!
Quantity: 50
- type: entity
- parent: ReagentContainerBase
+ parent: ReagentPacketBase
id: ReagentContainerRiceSmall
name: rice pack
description: A pack of rice. Good for cooking!
Quantity: 20
- type: entity
- parent: ReagentContainerBase
+ parent: ReagentPacketBase
id: ReagentContainerSugar
name: sugar bag
description: A big bag of tasty spacey sugar.
Quantity: 50
- type: entity
- parent: ReagentContainerBase
+ parent: ReagentPacketBase
id: ReagentContainerSugarSmall
name: sugar pack
description: A pack of tasty spacey sugar.
# Milk
- type: entity
- parent: ReagentContainerBase
+ parent: ReagentPacketBase
id: ReagentContainerMilk
name: milk
description: It's milk. White and nutritious goodness!
Quantity: 50
- type: entity
- parent: ReagentContainerBase
+ parent: ReagentPacketBase
id: ReagentContainerMilkSoy
name: soy milk
description: It's soy milk. White and nutritious goodness!
Quantity: 50
- type: entity
- parent: ReagentContainerBase
+ parent: ReagentPacketBase
id: ReagentContainerMilkOat
name: oat milk
description: It's oat milk. Tan and nutritious goodness!
# Misc
- type: entity
- parent: ReagentContainerBase
+ parent: ReagentPacketBase
id: ReagentContainerOliveoil
name: olive oil
description: Olive oil. From space olives presumably.
Quantity: 20
- type: entity
- parent: ReagentContainerBase
+ parent: ReagentPacketBase
id: ReagentContainerMayo
name: mayonnaise
description: Bottle of mayonnaise.
Quantity: 20
# - type: entity
-# parent: ReagentContainerBase
+# parent: ReagentPacketBase
# id: ReagentContainerAllspice
# name: all-spice
# description:
- type: entity
abstract: true
- parent: BaseItem
+ parent: FoodBase
id: FoodBakingBase
description: Used in various recipes.
components:
- type: Sprite
sprite: Objects/Consumable/Food/ingredients.rsi
- - type: Food
- type: SolutionContainerManager
solutions:
food: