added consumption timeout for beverages and snacks (#5013)
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
This commit is contained in:
@@ -1,13 +1,24 @@
|
|||||||
|
#
|
||||||
|
# Base component for consumable food
|
||||||
|
#
|
||||||
|
- type: entity
|
||||||
|
parent: BaseItem
|
||||||
|
id: FoodBase
|
||||||
|
abstract: true
|
||||||
|
components:
|
||||||
|
- type: Food
|
||||||
|
- type: ItemCooldown
|
||||||
|
- type: UseDelay
|
||||||
|
delay: 1.5
|
||||||
|
|
||||||
# This base type is used to cover all of the "obvious" things that should be doable to open-package food.
|
# This base type is used to cover all of the "obvious" things that should be doable to open-package food.
|
||||||
# Practically this means injection.
|
# Practically this means injection.
|
||||||
# But it might in future also mean drawing with a syringe, so this is a base prototype just in case.
|
# But it might in future also mean drawing with a syringe, so this is a base prototype just in case.
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseItem
|
parent: FoodBase
|
||||||
id: FoodInjectableBase
|
id: FoodInjectableBase
|
||||||
abstract: true
|
abstract: true
|
||||||
components:
|
components:
|
||||||
- type: Food
|
|
||||||
- type: InjectableSolution
|
- type: InjectableSolution
|
||||||
solution: food
|
solution: food
|
||||||
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# Base
|
# Base
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseItem
|
parent: FoodBase
|
||||||
id: FoodSnackBase
|
id: FoodSnackBase
|
||||||
abstract: true
|
abstract: true
|
||||||
components:
|
components:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseItem
|
parent: FoodBase
|
||||||
id: FoodBowlBase
|
id: FoodBowlBase
|
||||||
abstract: true
|
abstract: true
|
||||||
components:
|
components:
|
||||||
|
|||||||
@@ -20,6 +20,9 @@
|
|||||||
interfaces:
|
interfaces:
|
||||||
- key: enum.TransferAmountUiKey.Key
|
- key: enum.TransferAmountUiKey.Key
|
||||||
type: TransferAmountBoundUserInterface
|
type: TransferAmountBoundUserInterface
|
||||||
|
- type: ItemCooldown
|
||||||
|
- type: UseDelay
|
||||||
|
delay: 1.0
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: DrinkBase
|
parent: DrinkBase
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseItem
|
parent: DrinkBase
|
||||||
id: DrinkBottleBaseFull
|
id: DrinkBottleBaseFull
|
||||||
abstract: true
|
abstract: true
|
||||||
components:
|
components:
|
||||||
@@ -10,12 +10,6 @@
|
|||||||
solutions:
|
solutions:
|
||||||
drink:
|
drink:
|
||||||
maxVol: 100
|
maxVol: 100
|
||||||
- type: SolutionTransfer
|
|
||||||
canChangeTransferAmount: true
|
|
||||||
- type: UserInterface
|
|
||||||
interfaces:
|
|
||||||
- key: enum.TransferAmountUiKey.Key
|
|
||||||
type: TransferAmountBoundUserInterface
|
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
state: icon
|
state: icon
|
||||||
- type: DamageOnLand
|
- type: DamageOnLand
|
||||||
@@ -26,8 +20,6 @@
|
|||||||
damage:
|
damage:
|
||||||
types:
|
types:
|
||||||
Blunt: 4
|
Blunt: 4
|
||||||
- type: Spillable
|
|
||||||
solution: drink
|
|
||||||
- type: Damageable
|
- type: Damageable
|
||||||
damageContainer: Inorganic
|
damageContainer: Inorganic
|
||||||
- type: Destructible
|
- type: Destructible
|
||||||
|
|||||||
@@ -37,6 +37,9 @@
|
|||||||
- type: Tag
|
- type: Tag
|
||||||
tags:
|
tags:
|
||||||
- Trash
|
- Trash
|
||||||
|
- type: ItemCooldown
|
||||||
|
- type: UseDelay
|
||||||
|
delay: 1.0
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: DrinkCanBaseFull
|
parent: DrinkCanBaseFull
|
||||||
|
|||||||
@@ -28,6 +28,9 @@
|
|||||||
state: icon
|
state: icon
|
||||||
- type: Spillable
|
- type: Spillable
|
||||||
solution: drink
|
solution: drink
|
||||||
|
- type: ItemCooldown
|
||||||
|
- type: UseDelay
|
||||||
|
delay: 1.0
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: DrinkBaseCup
|
parent: DrinkBaseCup
|
||||||
|
|||||||
Reference in New Issue
Block a user