materialComposition:
Plastic: 25
+# Strong plastic
+- type: entity
+ abstract: true
+ parent: DrinkBaseMaterialPlastic
+ id: DrinkBaseMaterialStrongPlastic
+ components:
+ - type: Destructible
+ thresholds:
+ - trigger: # Overkill threshold
+ !type:DamageTrigger
+ damage: 200
+ behaviors:
+ - !type:DoActsBehavior
+ acts: [ "Destruction" ]
+ - trigger:
+ !type:DamageTrigger
+ damage: 20 # can take a few more hits than basic plastic
+ behaviors:
+ - !type:PlaySoundBehavior
+ sound:
+ collection: MetalCrunch # TODO a plastic break collection
+ - !type:SpillBehavior { }
+ - !type:DoActsBehavior
+ acts: [ "Destruction" ]
+ - type: PhysicalComposition
+ materialComposition:
+ Plastic: 100
+
# Fragile cardboard
- type: entity
abstract: true
- type: entity
- parent: DrinkBase
+ parent: [ DrinkBaseMaterialStrongPlastic, DrinkBase, DrinkVisualsFill ]
id: Bucket
name: bucket
description: It's a boring old bucket.
components:
- - type: Clickable
- type: Edible
- edible: Drink
- solution: bucket
- destroyOnEmpty: false
utensil: Spoon
- type: Sprite
sprite: Objects/Tools/bucket.rsi
- layers:
- - state: icon
- - map: ["enum.SolutionContainerLayers.Fill"]
- state: fill-1
- visible: false
- type: Item
size: Normal
- type: Clothing
quickEquip: false
- type: SolutionContainerManager
solutions:
- bucket:
+ drink:
maxVol: 250
- - type: MixableSolution
- solution: bucket
- type: SolutionTransfer
transferAmount: 100
maxTransferAmount: 100
minTransferAmount: 10
- canChangeTransferAmount: true
- - type: UserInterface
- interfaces:
- enum.TransferAmountUiKey.Key:
- type: TransferAmountBoundUserInterface
- - type: MeleeWeapon
- soundNoDamage:
- path: "/Audio/Effects/Fluids/splat.ogg"
- damage:
- types:
- Blunt: 0
- - type: Spillable
- solution: bucket
- type: SpillWhenWorn
- solution: bucket
- - type: DrawableSolution
- solution: bucket
- - type: RefillableSolution
- solution: bucket
- - type: DrainableSolution
- solution: bucket
- - type: SolutionItemStatus
- solution: bucket
- - type: Appearance
+ solution: drink
- type: SolutionContainerVisuals
maxFillLevels: 3
- fillBaseName: fill-
- - type: ExaminableSolution
- solution: bucket
+ inHandsFillBaseName: null
- type: Tag
tags:
- Bucket
- type: PhysicalComposition
materialComposition:
Plastic: 50
- - type: DnaSubstanceTrace
- type: entity
parent: Bucket
components:
- type: SolutionContainerManager
solutions:
- bucket:
+ drink:
maxVol: 500