# SPDX-FileCopyrightText: 2022 ChilbroBaggins <107660393+ChilbroBaggins@users.noreply.github.com>
# SPDX-FileCopyrightText: 2022 Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
# SPDX-FileCopyrightText: 2023 potato1234_x <79580518+potato1234x@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Jeff <velcroboy333@hotmail.com>
# SPDX-FileCopyrightText: 2024 Velcroboy <107660393+IamVelcroboy@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aidenkrz <aiden@djkraz.com>
# SPDX-FileCopyrightText: 2025 Alpaccalypse <21291379+Alpaccalypse@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Solstice <solsticeofthewinter@gmail.com>
# SPDX-FileCopyrightText: 2025 Southbridge <7013162+southbridge-fur@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entity
  id: RandomVending
  name: random vending machine spawner
  suffix: Any
  parent: MarkerBase
  components:
  - type: Sprite
    layers:
    - state: red
    - sprite: Structures/Machines/VendingMachines/random.rsi
      state: any
  - type: RandomSpawner
    prototypes:
    - VendingMachineChang
    - VendingMachineCigs
    - VendingMachineCoffee
    - VendingMachineCola #Robust Sofdrinks
    - VendingMachineColaBlack #Robust Sofdrinks [Black]
    - VendingMachineColaRed #Space Cola
    - VendingMachineDiscount
    - VendingMachineDonut
    - VendingMachineDrGibb
    - VendingMachinePwrGame
    - VendingMachineShamblersJuice
    - VendingMachineSmite
    - VendingMachineSnack
    - VendingMachineSnackBlue
    - VendingMachineSnackGreen
    - VendingMachineSnackOrange
    - VendingMachineSnackTeal
    - VendingMachineSoda #Robust Sofdrinks [Soda]
    - VendingMachineSovietSoda #Boda
    - VendingMachineSpaceUp
    - VendingMachineStarkist
    - VendingMachineSweetToof # Goobstation
    chance: 1


- type: entityTable
  id: ClothingVendorTable
  table: !type:GroupSelector
    children:
    - id: VendingMachineClothing
      weight: 40
    - id: VendingMachineWinter
      weight: 40
    - id: VendingMachinePride
      weight: 10
    - id: VendingMachineTheater
      weight: 10

- type: entity
  id: RandomVendingClothing
  name: random vending machine spawner
  suffix: Clothing
  parent: MarkerBase
  components:
  - type: Sprite
    layers:
    - state: red
    - sprite: Structures/Machines/VendingMachines/random.rsi
      state: clothing
  - type: EntityTableSpawner
    table: !type:NestedSelector
      tableId: ClothingVendorTable