- type: entity
  parent: CrateGeneric
  id: WoodenBarrel
  name: wooden barrel
  description: A musty old wooden barrel.
  components:
  - type: Sprite
    sprite: _DV/Objects/Storage/barrel.rsi
    layers:
    - state: base
      map: ["enum.StorageVisualLayers.Base"]
    - state: closed
      map: ["enum.StorageVisualLayers.Door"]
    - state: paper # Frontier
      map: ["enum.PaperLabelVisuals.Layer"] # Frontier
      visible: false # Frontier
  - type: Icon
    sprite: _DV/Objects/Storage/barrel.rsi
    state: base
  - type: Damageable
    damageContainer: StructuralInorganic
    damageModifierSet: Wood
  - type: Destructible
    thresholds:
    - trigger:
        !type:DamageTrigger
        damage: 30
      behaviors:
      - !type:PlaySoundBehavior
        sound:
          collection: WoodDestroy
      - !type:SpawnEntitiesBehavior
        spawn:
          MaterialWoodPlank1:
            min: 1
            max: 4
      - !type:DoActsBehavior
        acts: [ "Destruction" ]
  - type: Construction
    graph: WoodenBarrel
    node: woodenbarrel
    containers:
    - entity_storage
  - type: StaticPrice
    price: 50
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PhysShapeAabb
          bounds: "-0.2,-0.3,0.2,0.4"
        density: 150
        mask:
        - SmallMobMask #this is so they can go under plastic flaps
        layer:
        - MachineLayer
  - type: Climbable
    # Frontier: visualizer
  - type: GenericVisualizer
    visuals:
      enum.PaperLabelVisuals.HasLabel:
        enum.PaperLabelVisuals.Layer:
          True: { visible: true }
          False: { visible: false }
      enum.PaperLabelVisuals.LabelType:
        enum.PaperLabelVisuals.Layer:
          Paper: { state: paper }
          Bounty: { state: paper }
          CaptainsPaper: { state: paper }
          Invoice: { state: paper }
  # End Frontier

- type: entity
  parent: StorageTank
  id: WoodenKeg
  name: wooden keg
  description: A musty old wooden keg, with a tap attached to the front.
  components:
  - type: SolutionContainerManager
    solutions:
      tank:
        maxVol: 500
  - type: ExaminableSolution
    solution: tank
  - type: UserInterface
    interfaces:
      enum.TransferAmountUiKey.Key:
        type: TransferAmountBoundUserInterface
  - type: DrawableSolution
    solution: tank
  - type: InjectableSolution
    solution: tank
  - type: Edible
    edible: Drink
    solution: tank
    destroyOnEmpty: false
  - type: Spillable
    solution: tank
  - type: DumpableSolution
    solution: tank
  - type: Sprite
    sprite: _DV/Objects/Storage/keg.rsi
    layers:
    - state: base
      map: ["enum.StorageVisualLayers.Base"]
  - type: Damageable
    damageContainer: StructuralInorganic
    damageModifierSet: Wood
  - type: StaticPrice
    price: 50
  - type: Construction
    graph: WoodenKeg
    node: woodenkeg
    containers:
    - entity_storage
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PhysShapeAabb
          bounds: "-0.2,-0.3,0.2,0.4"
        density: 200
        mask:
        - SmallMobMask #this is so they can go under plastic flaps
        layer:
        - MachineLayer
  - type: Transform
    noRot: false

- type: entity
  parent: WoodenKeg
  name: root beer keg
  description: A musty old wooden keg, with a tap attached to the front. Smells like root beer.
  id: WoodenKegRootBeer
  components:
  - type: Label
    currentLabel: reagent-name-root-beer
  - type: SolutionContainerManager
    solutions:
      tank:
        reagents:
        - ReagentId: RootBeer
          Quantity: 500

- type: entity
  parent: WoodenKeg
  name: beer keg
  description: A musty old wooden keg, with a tap attached to the front. Smells like beer.
  id: WoodenKegBeer
  components:
  - type: Label
    currentLabel: reagent-name-beer
  - type: SolutionContainerManager
    solutions:
      tank:
        reagents:
        - ReagentId: Beer
          Quantity: 500

- type: entity
  parent: WoodenKeg
  name: wine keg
  description: A musty old wooden keg, with a tap attached to the front. Smells like wine.
  id: WoodenKegWine
  components:
  - type: Label
    currentLabel: reagent-name-wine
  - type: SolutionContainerManager
    solutions:
      tank:
        reagents:
        - ReagentId: Wine
          Quantity: 500
