# SPDX-FileCopyrightText: 2021 AJCM-git <60196617+AJCM-git@users.noreply.github.com>
# SPDX-FileCopyrightText: 2022 EmoGarbage404 <98561806+EmoGarbage404@users.noreply.github.com>
# SPDX-FileCopyrightText: 2022 Pieter-Jan Briers <pieterjan.briers+git@gmail.com>
# SPDX-FileCopyrightText: 2024 Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entityTable
  id: RandomInstrumentTable
  table: !type:GroupSelector
    children:
    - !type:GroupSelector
      weight: 95
      children:
      - id: AcousticGuitarInstrument
      - id: ViolinInstrument
      - id: TrumpetInstrument
      - id: ElectricGuitarInstrument
      - id: AccordionInstrument
      - id: HarmonicaInstrument
      - id: TromboneInstrument
      - id: FrenchHornInstrument
      - id: EuphoniumInstrument
      - id: SaxophoneInstrument
      - id: BanjoInstrument
      - id: GlockenspielInstrument
      - id: XylophoneInstrument
      - id: BikeHornInstrument
      - id: RecorderInstrument
      - id: FluteInstrument
      - id: ClarinetInstrument
      - id: CelloInstrument
      - id: KalimbaInstrument
      - id: MicrophoneInstrument
      - id: BassGuitarInstrument
      - id: OcarinaInstrument
      - id: PanFluteInstrument
    - !type:GroupSelector
      weight: 5
      children:
      - id: SynthesizerInstrument
      - id: GunpetInstrument
      - id: BagpipeInstrument
      - id: RockGuitarInstrument
      - id: MusicBoxInstrument
      - id: ViolaInstrument

- type: entity
  id: RandomInstruments
  name: random instruments spawner
  parent: MarkerBase
  components:
  - type: Sprite
    layers:
      - state: red
      - sprite: Objects/Fun/Instruments/h_synthesizer.rsi
        state: icon
  - type: EntityTableSpawner
    table: !type:NestedSelector
      tableId: RandomInstrumentTable