# SPDX-FileCopyrightText: 2020 AJCM-git <60196617+AJCM-git@users.noreply.github.com>
# SPDX-FileCopyrightText: 2020 Paul Ritter <ritter.paul1@googlemail.com>
# SPDX-FileCopyrightText: 2020 Swept <jamesurquhartwebb@gmail.com>
# SPDX-FileCopyrightText: 2020 ike709 <ike709@users.noreply.github.com>
# SPDX-FileCopyrightText: 2021 DrSmugleaf <DrSmugleaf@users.noreply.github.com>
# SPDX-FileCopyrightText: 2021 Swept <sweptwastaken@protonmail.com>
# SPDX-FileCopyrightText: 2021 metalgearsloth <31366439+metalgearsloth@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: 2023 Jeff <velcroboy333@hotmail.com>
# SPDX-FileCopyrightText: 2023 Velcroboy <107660393+IamVelcroboy@users.noreply.github.com>
# SPDX-FileCopyrightText: 2023 potato1234_x <79580518+potato1234x@users.noreply.github.com>
# SPDX-FileCopyrightText: 2024 Nemanja <98561806+EmoGarbage404@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Solstice <solsticeofthewinter@gmail.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later

- type: entityTable
  id: GenericTrashItems
  table: !type:GroupSelector
    children:
    - !type:GroupSelector
      weight: 95
      children:
      - id: FoodPacketBoritosTrash
      - id: FoodPacketCheesieTrash
      - id: FoodPacketChipsTrash
      - id: FoodPacketChocolateTrash
      - id: FoodPacketChowMeinTrash
      - id: FoodPacketCnDsTrash
      - id: FoodPacketDanDanTrash
      - id: FoodPacketPistachioTrash
      - id: FoodPacketEnergyTrash
      - id: FoodPacketPopcornTrash
      - id: FoodPacketRaisinsTrash
      - id: FoodPacketSemkiTrash
      - id: FoodPacketSusTrash
      - id: FoodPacketSyndiTrash
      - id: FoodSnackLollypopTrash # Goobstation - Lollypops
      - id: FoodPacketLollypopTrash # Goobstation - Lollypops
      - id: BrokenBottle
    - !type:GroupSelector
      weight: 5
      children:
      - id: FoodPlateSmallTrash
      - id: FoodBowlBigTrash

- type: entity
  name: Trash Spawner
  id: RandomSpawner
  parent: MarkerBase
  suffix: 50
  components:
    - type: Sprite
      layers:
        - state: red
        - sprite: Objects/Consumable/Food/snacks.rsi
          state: pistachio-trash
    - type: EntityTableSpawner
      offset: 0.2
      table: !type:NestedSelector
        tableId: GenericTrashItems
        prob: 0.5
  placement:
    mode: AlignTileAny

- type: entity
  parent: RandomSpawner
  id: RandomSpawner100
  suffix: 100
  placement:
    mode: AlignTileAny
  components:
  - type: EntityTableSpawner
    offset: 0.2
    table: !type:NestedSelector
      tableId: GenericTrashItems