# SPDX-FileCopyrightText: 2024 Aidenkrz <aiden@djkraz.com>
# SPDX-FileCopyrightText: 2024 Jeff <velcroboy333@hotmail.com>
# SPDX-FileCopyrightText: 2024 Velcroboy <107660393+IamVelcroboy@users.noreply.github.com>
# SPDX-FileCopyrightText: 2025 Aiden <28298836+Aidenkrz@users.noreply.github.com>
#
# SPDX-License-Identifier: AGPL-3.0-or-later
#Spawners
- type: entity
  id: RandomSmokables
  name: random smokable spawner
  parent: MarkerBase
  placement:
    mode: PlaceFree
  components:
  - type: Transform
    anchored: false
  - type: Sprite
    layers:
      - sprite: Objects/Consumable/Smokeables/Cigarettes/Packs/black.rsi
        state: closed
  - type: EntityTableSpawner
    table: !type:NestedSelector
      tableId: SmokablesTable
      prob: 0.95

- type: entity
  id: RandomSoakedCigarette
  name: random soaked cigarette spawner
  parent: MarkerBase
  placement:
    mode: PlaceFree
  components:
  - type: Transform
    anchored: false
  - type: Sprite
    layers:
      - sprite: Objects/Consumable/Smokeables/Cigarettes/cigarette.rsi
        state: unlit-icon
  - type: EntityTableSpawner
    table: !type:NestedSelector
      tableId: RandomSoakedSmokeTable

#Tables
- type: entityTable
  id: SmokablesTable
  table: !type:GroupSelector
    children:
    #Just a cig
    - !type:GroupSelector
      weight: 36
      children:
      - id: Cigarette
    #Uncommon
    - !type:GroupSelector
      weight: 9
      children:
      - id: Cigar
      - id: CigPackGreen
      - id: CigPackRed
      - id: CigPackBlue
      - id: CigPackBlack
      - id: PackPaperRollingFilters
    #Butts
    - !type:GroupSelector
      weight: 3
      children:
      - id: CigaretteSpent
      - id: CigarSpent
        weight: 0.2
    #Rare
    - !type:GroupSelector
      children:
      - id: RandomSoakedCigarette
      - !type:GroupSelector
        children:
        - id: Joint
        - id: JointRainbow
          weight: 0.5
        - id: BluntCigar # Shitmed Change
        - id: BluntRainbow
          weight: 0.5
      - !type:GroupSelector
        children:
        - id: CigPackMixed
      - id: CigarGold
        weight: 0.10
