# A cup is a small container used to hold liquids for drinking.[1]
- type: entity
  abstract: true
  parent: DrinkBase
  id: DrinkBaseCup
  components:
  - type: SolutionContainerManager
    solutions:
      drink:
        maxVol: 20
  - type: FitsInDispenser
    solution: drink
  - type: SolutionTransfer
    canChangeTransferAmount: true
    maxTransferAmount: 10
  - type: StaticPrice
    price: 10
  # Sunrise start
  - type: EmitSoundOnPickup
    sound:
      path: /Audio/_Sunrise/Items/Cup/pickup.ogg
  - type: EmitSoundOnDrop
    sound:
      path: /Audio/_Sunrise/Items/Cup/drop.ogg
  - type: EmitSoundOnLand
    sound:
      path: /Audio/_Sunrise/Items/Cup/drop.ogg
  # Sunrise end

# A mug is a type of cup.[2]
- type: entity
  abstract: true
  parent: [ DrinkBaseMaterialPorcelain, DrinkBaseCup, DrinkVisualsFill ]
  id: DrinkBaseMug
  name: mug
  description: A mug.
  components:
  - type: Sprite
    sprite: Objects/Consumable/Drinks/mug.rsi
  - type: SolutionContainerVisuals
    maxFillLevels: 3
    inHandsFillBaseName: null

## Misc Cups

- type: entity
  parent: [DrinkBaseMaterialGold, DrinkBaseCup]
  id: DrinkGoldenCup
  name: golden cup
  description: A golden cup.
  components:
  - type: Sprite
    sprite: Objects/Consumable/Drinks/golden_cup.rsi
  - type: StaticPrice
    price: 125

- type: entity
  parent: DrinkBaseMug # a teacup is basically a mug
  id: DrinkTeacupEmpty
  name: teacup
  description: A plain white porcelain teacup.
  components:
  - type: Sprite
    sprite: Objects/Consumable/Drinks/teacup.rsi
  - type: SolutionContainerVisuals
    maxFillLevels: 4

- type: entity
  parent: [ DrinkBaseMaterialGlass, DrinkBaseCup, DrinkVisualsFillOverlay ]
  id: DrinkGlassCoupeShaped
  name: coupe glass
  description: A classic thin neck coupe glass, the icon of fragile labels on crates around the galaxy.
  components:
  - type: Sprite
    sprite: Objects/Consumable/Drinks/glass_coupe_shape.rsi
  - type: SolutionContainerVisuals
    inHandsMaxFillLevels: 1

- type: entity
  parent: [DrinkBaseMaterialCardboard, DrinkBaseCup, DrinkBaseEmptyTrash, DrinkVisualsFill]
  id: DrinkWaterCup
  name: water cup
  description: A paper water cup.
  components:
  - type: SolutionContainerManager
    solutions:
      drink:
        maxVol: 5 # One sip at a time. No rushing at the water cooler
  - type: Item
    size: Tiny
  - type: Sprite
    sprite: Objects/Consumable/Drinks/water_cup.rsi
  - type: SolutionContainerVisuals
    maxFillLevels: 1
    inHandsFillBaseName: null
  - type: Tag
    tags:
    - Trash
    - WhitelistChameleon
  - type: Clothing
    slots:
    - HEAD
    quickEquip: false
    sprite: Clothing/Head/Hats/party_water_cup.rsi
  - type: SpillWhenWorn
    solution: drink

# Mugs
- type: entity
  parent: DrinkBaseMug
  id: DrinkMug
  name: mug
  description: A plain white mug.
  components:
  - type: Sprite
    sprite: Objects/Consumable/Drinks/mug.rsi

- type: entity
  parent: DrinkBaseMug
  id: DrinkMugBlack
  name: black mug
  description: A sleek black mug.
  components:
  - type: Sprite
    sprite: Objects/Consumable/Drinks/mug_black.rsi

- type: entity
  parent: DrinkBaseMug
  id: DrinkMugBlue
  name: blue mug
  description: A blue and black mug.
  components:
  - type: Sprite
    sprite: Objects/Consumable/Drinks/mug_blue.rsi

- type: entity
  parent: DrinkBaseMug
  id: DrinkMugGreen
  name: green mug
  description: A pale green and pink mug.
  components:
  - type: Sprite
    sprite: Objects/Consumable/Drinks/mug_green.rsi

- type: entity
  parent: DrinkBaseMug
  id: DrinkMugDog
  name: funny dog mug
  description: It looks like a cartoon beagle.
  components:
  - type: Sprite
    sprite: Objects/Consumable/Drinks/mug_dog.rsi

- type: entity
  parent: DrinkBaseMug
  id: DrinkMugHeart
  name: heart mug
  description: A white mug, it prominently features a red heart.
  components:
  - type: Sprite
    sprite: Objects/Consumable/Drinks/mug_heart.rsi

- type: entity
  parent: [DrinkBaseMaterialMetal, DrinkBaseMug]
  id: DrinkMugMetal
  name: metal mug
  description: A metal mug. You're not sure which metal.
  components:
  - type: Sprite
    sprite: Objects/Consumable/Drinks/mug_metal.rsi

- type: entity
  parent: DrinkBaseMug
  id: DrinkMugMoebius
  name: moebius mug
  description: A mug with a Moebius Laboratories logo on it. Not even your morning coffee is safe from corporate advertising.
  components:
  - type: Sprite
    sprite: Objects/Consumable/Drinks/mug_moebius.rsi

- type: entity
  parent: DrinkBaseMug
  id: DrinkMugOne
  name: "#1 mug"
  description: "A white mug, it prominently features a #1."
  components:
  - type: Sprite
    sprite: Objects/Consumable/Drinks/mug_one.rsi

- type: entity
  parent: DrinkBaseMug
  id: DrinkMugRainbow
  name: rainbow mug
  description: A rainbow mug. The colors are almost as blinding as a welder.
  components:
  - type: Sprite
    sprite: Objects/Consumable/Drinks/mug_rainbow.rsi

- type: entity
  parent: DrinkBaseMug
  id: DrinkMugRed
  name: red mug
  description: A red and black mug.
  components:
  - type: Sprite
    sprite: Objects/Consumable/Drinks/mug_red.rsi

## Filled

- type: entity
  parent: DrinkBaseMug
  id: DrinkHotCoco
  name: hot chocolate
  suffix: Full
  description: A heated drink consisting melted chocolate and heated milk.
  components:
  - type: SolutionContainerManager
    solutions:
      drink:
        reagents:
        - ReagentId: HotCocoa
          Quantity: 20
  - type: Icon
    sprite: Objects/Consumable/Drinks/mug.rsi
    state: icon-vend-brown
  - type: Sprite
    layers:
    - state: icon
    - state: fill-3
      map: ["enum.SolutionContainerLayers.Fill"]
  - type: TrashOnSolutionEmpty
    solution: drink

- type: entity
  parent: DrinkBaseMug
  id: DrinkHotCoffee
  name: coffee
  suffix: Full
  description: Coffee is a brewed drink prepared from roasted seeds, commonly called coffee beans, of the coffee plant.
  components:
  - type: SolutionContainerManager
    solutions:
      drink:
        reagents:
        - ReagentId: Coffee
          Quantity: 20
  - type: Icon
    sprite: Objects/Consumable/Drinks/mug.rsi
    state: icon-vend-brown
  - type: Sprite
    layers:
    - state: icon
    - state: fill-3
      map: ["enum.SolutionContainerLayers.Fill"]
  - type: TrashOnSolutionEmpty
    solution: drink

- type: entity
  parent: DrinkBaseMug
  id: DrinkCafeLatte
  name: cafe latte
  suffix: Full
  description: A nice, strong and tasty beverage while you are reading.
  components:
  - type: SolutionContainerManager
    solutions:
      drink:
        reagents:
        - ReagentId: CafeLatte
          Quantity: 20
  - type: Icon
    sprite: Objects/Consumable/Drinks/cafe_latte.rsi
    state: icon-vend
  - type: Sprite
    sprite: Objects/Consumable/Drinks/cafe_latte.rsi
    layers:
    - state: icon
    - state: fill-1
      map: ["enum.SolutionContainerLayers.Fill"]
  - type: SolutionContainerVisuals
    maxFillLevels: 1
    changeColor: false
  - type: TrashOnSolutionEmpty
    solution: drink

- type: entity
  parent: DrinkTeacupEmpty
  id: DrinkTeacup
  name: tea
  components:
  - type: SolutionContainerManager
    solutions:
      drink:
        reagents:
        - ReagentId: Tea
          Quantity: 20
  - type: Icon
    sprite: Objects/Consumable/Drinks/teacup.rsi
    state: icon-vend-tea
  - type: TrashOnSolutionEmpty
    solution: drink

- type: entity
  parent: DrinkTeacupEmpty
  id: DrinkGreenTea
  name: green tea
  components:
  - type: SolutionContainerManager
    solutions:
      drink:
        reagents:
        - ReagentId: GreenTea
          Quantity: 20
  - type: Icon
    sprite: Objects/Consumable/Drinks/teacup.rsi
    state: icon-vend-green-tea
  - type: TrashOnSolutionEmpty
    solution: drink

# TODO this needs fill levels
- type: entity
  parent: [DrinkBaseMaterialPlastic, DrinkBaseCup]
  id: DrinkLean
  name: grape juice
  description: Damn, no fun allowed.
  components:
  - type: SolutionContainerManager
    solutions:
      drink:
        reagents:
        - ReagentId: JuiceGrape
          Quantity: 20
  - type: Sprite
    sprite: Objects/Consumable/Drinks/lean.rsi
  - type: Item
    sprite: Objects/Consumable/Drinks/lean.rsi
  - type: TrashOnSolutionEmpty
    solution: drink

#[1] https://en.wikipedia.org/wiki/Cup
#[2] https://en.wikipedia.org/wiki/Mug
