- type: entity
  abstract: true
  parent: [ DrinkBaseMaterialGlass, DrinkBase, DrinkBaseOpenable, DrinkBaseEmptyTrash, DrinkVisualsAll ]
  id: BaseChemistryVial
  components:
  - type: Item
    size: Tiny
  - type: Openable
    sound:
      collection: bottleCloseSounds # using closed here for the quieter sound
    closeable: true
    closeSound:
      collection: bottleCloseSounds
  - type: FitsInDispenser
    solution: drink
  - type: ExaminableSolution
    exactVolume: true # It's a chemistry tool
  - type: Tag
    tags:
    - Trash
    - CentrifugeCompatible # unique feature of vials
  - type: DamageOnLand
    ignoreResistances: true
    damage:
      types:
        Blunt: 3 # can be thrown once without breaking

## Entities

- type: entity
  parent: [SolutionTiny, BaseChemistryVial]
  id: ChemistryEmptyVial
  name: vial
  description: A small vial.
  components:
  - type: Item
    sprite: Objects/Specific/Chemistry/vial.rsi
  - type: Sprite
    sprite: Objects/Specific/Chemistry/vial.rsi
  - type: SolutionContainerVisuals
    maxFillLevels: 6
    inHandsMaxFillLevels: 4
  - type: SolutionTransfer
    maxTransferAmount: 30
  - type: StaticPrice
    price: 100
  - type: Destructible
    thresholds:
    - trigger:
        !type:DamageTrigger
        damage: 5
      behaviors:
      - !type:SpawnEntitiesBehavior
        spawn:
          ShardGlass:
            min: 0
            max: 1
        transferForensics: true

- type: entity
  parent: [SolutionVeryTiny, BaseChemistryVial]
  id: ChemistryEmptyVialSmall
  name: mini vial
  description: A smaller vial.
  components:
  - type: Item
    sprite: Objects/Specific/Chemistry/vial_mini.rsi
  - type: Sprite
    sprite: Objects/Specific/Chemistry/vial_mini.rsi
  - type: SolutionContainerVisuals
    maxFillLevels: 5
    inHandsMaxFillLevels: 4
  - type: SolutionTransfer
    maxTransferAmount: 10
  - type: StaticPrice
    price: 50
  - type: PhysicalComposition
    materialComposition:
      Glass: 10

## Reagent filled

- type: entity
  parent: ChemistryEmptyVial
  id: VestineChemistryVial
  suffix: vestine
  components:
  - type: Label
    localizedLabel: reagent-name-vestine
  - type: Solution
    solution:
      reagents:
      - ReagentId: Vestine
        Quantity: 30
  - type: Tag
    tags: &TagVial # Remove trash tag when we have a filled solution
    - CentrifugeCompatible

- type: entity
  parent: ChemistryEmptyVialSmall
  id: RadiumChemistryVial
  suffix: radium
  components:
  - type: Label
    localizedLabel: reagent-name-radium
  - type: Solution
    solution:
      reagents:
      - ReagentId: Radium
        Quantity: 5
  - type: Tag
    tags: *TagVial

- type: entity
  parent: ChemistryEmptyVialSmall
  id: ChlorineChemistryVial
  suffix: chlorine
  components:
  - type: Label
    localizedLabel: reagent-name-chlorine
  - type: Solution
    solution:
      reagents:
      - ReagentId: Chlorine
        Quantity: 5
  - type: Tag
    tags: *TagVial

- type: entity
  parent: ChemistryEmptyVialSmall
  id: PlasmaChemistryVial
  suffix: plasma
  components:
  - type: Label
    localizedLabel: reagent-name-plasma
  - type: Solution
    solution:
      reagents:
      - ReagentId: Plasma
        Quantity: 15
  - type: Tag
    tags: *TagVial
