- type: entityTable
  id: MaintFluffTable
  table: !type:GroupSelector
    children:
    # Common Group
    - !type:GroupSelector
      weight: 75
      children:
      - !type:NestedSelector
        weight: 5 # Roughly 7% chance
        tableId: AllToysTable
      # Smoker's specialty
      - !type:AllSelector
        children:
        - id: Lighter
        - id: CigCartonBlue
      # Gar glasses
      - !type:GroupSelector
        children:
        - id: ClothingEyesGlassesGar
        - id: ClothingEyesGlassesGarOrange
        - id: ClothingEyesGlassesGarGiga
      - id: Wristwatch
        weight: 0.5
      - id: ClothingHeadHatCake
      - id: ClothingHeadHatSkub
      - id: ClothingHeadHatCone
      - id: ClothingNeckBling
      - id: ClothingHeadHelmetCosmonaut
      - id: ClothingHeadHelmetBasic
      - id: ClothingShoeSlippersDuck
      - id: ClothingUnderSocksBee
      - id: ClothingUnderSocksCoder
      - id: ClothingHeadHatSquid
      # Animal Masks
      - !type:GroupSelector
        children:
        - id: ClothingMaskRat
        - id: ClothingMaskFox
        - id: ClothingMaskBee
        - id: ClothingMaskBear
        - id: ClothingMaskRaven
        - id: ClothingMaskJackal
        - id: ClothingMaskBat
      - id: ClothingBeltSuspendersRed
      - id: ClothingBeltSuspendersBlack
      - id: ClothingEyesEyepatch
      - id: ClothingEyesGlasses
      - id: ClothingHandsGlovesLatex
      - id: ClothingHandsGlovesFingerless
      - id: ClothingHandsGlovesColorBlack
      - id: ClothingHeadHatBeret
      - id: ClothingHeadHatBowlerHat
      - id: ClothingHeadHatFedoraBrown
        weight: 0.5
      - id: ClothingHeadHatFedoraGrey
        weight: 0.5
      - id: ClothingHeadHatFez
      - id: ClothingHeadHatPaper
      - id: ClothingHeadHatPirate
      - id: ClothingMaskSterile
      - id: ClothingMultipleHeadphones
      - id: ClothingNeckTieRed
      - id: ClothingOuterCoatGentle
      - !type:AllSelector
        children:
        - id: ClothingOuterCoatJensen
        - id: ClothingEyesGlassesJensen
      - id: ClothingOuterCoatLab
      - !type:AllSelector
        children:
        - !type:GroupSelector # Starlight start
          children:
          - id: ClothingOuterCoatPirate
          - id: ClothingOuterCoatPirateDark # Starlight end
        - id: ClothingHeadHatPirateTricord
        - id: Spyglass #Starlight
      - id: ClothingHeadHatTophat
      - id: ClothingOuterHoodieBlack
        weight: 0.5
      - id: ClothingOuterHoodieGrey
        weight: 0.5
      - !type:GroupSelector
        children:
        - id: ClothingOuterFlannelRed
        - id: ClothingOuterFlannelBlue
        - id: ClothingOuterFlannelGreen
      - id: ClothingOuterVestHazard
      - id: ClothingShoesBootsJack
      - id: ClothingShoesHighheelBoots
      - id: ClothingShoesBootsLaceup
      - id: ClothingShoesLeather
      - id: ClothingShoesBootsSalvage
      - id: ClothingShoesBootsWork
      - id: ClothingShoesTourist
      - id: ClothingUniformJumpsuitLoungewear
      - id: ClothingHeadHatCowboyRed
      - id: ClothingNeckOldMantle # Starlight
      - id: TatteredClothesUniformSuit #SL
      - id: CamoUniformSuit #SL
      - id: ClothingOuterBurnedRobes #SL
      - id: ClothingNeckTatteredHood #SL
      - id: SpyglassImprovised #SL
        weight: 0.65 #SL
    # Uncommon Group
    - !type:GroupSelector
      weight: 23
      children:
      - id: ClothingNeckCloakHerald
      - id: ClothingHeadHelmetTemplar
      # Cloaks
      - !type:GroupSelector
        children:
        - id: ClothingNeckCloakTrans
        - id: ClothingNeckCloakAdmin
        - id: ClothingNeckCloakMoth
        - id: ClothingNeckCloakVoid
        - id: ClothingNeckCloakGoliathCloak
        - id: ClothingNeckCloakAce
        - id: ClothingNeckCloakAro
        - id: ClothingNeckCloakAroace
        - id: ClothingNeckCloakBi
        - id: ClothingNeckCloakIntersex
        - id: ClothingNeckCloakLesbian
        - id: ClothingNeckCloakGay
        - id: ClothingNeckCloakEnby
        - id: ClothingNeckCloakPan
      - id: ToyFigurineSkeleton
      - id: MysteryFigureBox
      - id: PlushieMimeLizard #starlight
      - id: SnailPlushie #starlight
      - id: AxolotlPlushie #starlight
      # Cult
      - !type:AllSelector
        children:
        - id: ClothingOuterRobesCult
        - id: ClothingShoesCult
      - id: ClothingHandsGlovesMercFingerless
      - id: ClothingHandsGlovesNitrile
      - id: ClothingHandsGlovesPowerglove
      - id: ClothingHeadHatAnimalHeadslime
      - id: ClothingHeadHatBeretMerc
      - id: ClothingHeadHatOutlawHat
      - id: ClothingHeadHatUshanka
      - id: ClothingHeadHatBunny
      - id: ClothingMaskNeckGaiter
      - id: ClothingNeckScarfStripedZebra
      - id: ClothingOuterGhostSheet
      - id: ClothingUniformJumpsuitAncient
      - id: ClothingUniformJumpsuitPirate
      - id: ClothingShoesBootsCowboyFancy
      - id: ClothingHeadHatCowboyBountyHunter
      # Pins
      - !type:GroupSelector
        children:
        - id: ClothingNeckLGBTPin
        - id: ClothingNeckAllyPin
        - id: ClothingNeckAromanticPin
        - id: ClothingNeckAsexualPin
        - id: ClothingNeckAroacePin
        - id: ClothingNeckBisexualPin
        - id: ClothingNeckGayPin
        - id: ClothingNeckIntersexPin
        - id: ClothingNeckLesbianPin
        - id: ClothingNeckNonBinaryPin
        - id: ClothingNeckPansexualPin
        - id: ClothingNeckPluralPin
        - id: ClothingNeckOmnisexualPin
        - id: ClothingNeckGenderqueerPin
        - id: ClothingNeckGenderfluidPin
        - id: ClothingNeckTransPin
        - id: ClothingNeckAutismPin
        - id: ClothingNeckGoldAutismPin
    # Rare Group
    - !type:GroupSelector
      weight: 2
      children:
      - id: DrinkMugDog
      - id: CigarGold
      - id: ClothingUniformJumpsuitFamilyGuy
      - id: WristwatchGold
      - id: MysteryLighterBox
      - id: ClothingHeadBowlHelmet #Starlight

- type: entity
  name: Maint Loot Spawner
  suffix: Fluff+Clothes
  id: MaintenanceFluffSpawner
  parent: MarkerBase
  components:
  - type: Sprite
    layers:
      - state: red
      - sprite: Clothing/Eyes/Glasses/gar.rsi
        state: icon-super
  - type: EntityTableSpawner
    table: !type:NestedSelector
      tableId: MaintFluffTable
      prob: 0.6

- type: entityTable
  id: MaintToolsTable
  table: !type:GroupSelector
    children:
    # Common Group
    - !type:GroupSelector
      weight: 75
      children:
      - id: FlashlightLantern
      - id: ToolboxEmergencyFilled
      - !type:GroupSelector
        children:
        - id: OxygenTankFilled
        - id: DoubleEmergencyOxygenTankFilled
      - !type:GroupSelector
        children:
        - id: NitrogenTankFilled
        - id: DoubleEmergencyNitrogenTankFilled
      - !type:GroupSelector #Starlight
        children:
        - id: CoolingUnit
        - id: EmergencyCoolingUnit
      - id: EmergencyFunnyOxygenTankFilled
        weight: 0.5
      - !type:GroupSelector
        weight: 3
        children:
        - id: SheetSteel10
        - id: SheetPlastic10
        - id: SheetGlass10
        - id: PartRodMetal10
        - id: MaterialCardboard10
          weight: 0.25
        - id: MaterialCloth10
          weight: 0.25
        - id: MaterialWoodPlank10
          weight: 0.25
      - id: Plunger
      - id: PowerCellMedium
      - id: PowerCellSmall
      - !type:NestedSelector
        tableId: AllSoapsTable
      - id: Wirecutter
      - id: Screwdriver
      - id: Wrench
      - id: Crowbar
      - id: Multitool
      - id: Shovel
      - id: Welder
      - id: GasAnalyzer
      - id: SprayPainter
      - id: Flare
      - id: Beaker
      - id: ClothingMaskGas
      - id: ClothingMaskBreath
      - id: DoorElectronics
      - id: APCElectronics
      - id: InflatableWallStack5
      - id: CableHVStack10
      - id: CableMVStack10
      - id: CableApcStack10
      - !type:GroupSelector
        children:
        - id: ClothingHandsGlovesColorYellowBudget
          weight: 5
        - id: ClothingHandsGlovesFingerlessInsulated
          weight: 0.5
        - id: ClothingHandsGlovesColorYellow
          weight: 1
        - id: ClothingHandsGlovesConducting
          weight: 0.1
      # Uncommon Group
    - !type:GroupSelector
      weight: 23
      children:
      - id: ClothingHeadHatCone
        weight: 2
      - id: BookRandomStory
        weight: 0.25
      - id: ToolboxElectricalFilled
      - id: ToolboxMechanicalFilled
      - id: ToolboxRoboticistFilled # Starlight
        weight: 0.6 # Starlight. You'll never see it coming.
      - id: ClothingShoesGaloshnt # Starlight
        weight: 0.4 # Starlight. Fake galoshes to crush your spirit.
      - id: ClothingBeltUtility
      - id: ToolboxArtisticFilled
      - id: GeigerCounter
      - id: trayScanner
      - id: HandheldGPSBasic
      - id: HandLabeler
      - id: GlowstickGreen
      - id: Bucket
      - id: RadioHandheld
      - id: AppraisalTool
      - id: ModularReceiver
      - id: WeaponFlareGun
      - id: BarberScissors
      - id: TwinPointerKit # Starlight: Added twinpointer to maints loot
      - id: JetpackImprovisedFilled #Starlight
      - id: Flash0Use # Starlight
        weight: 0.6 # Starlight
      - id: Flash1Use # Starlight
        weight: 0.7 # Starlight
      - id: SciFlash # Starlight
        weight: 0.5 # Starlight
      - !type:GroupSelector
        children:
        - id: DrinkSpaceGlue
        - id: DrinkSpaceLube
      # Rare Group
    - !type:GroupSelector
      weight: 2
      children:
      - id: Binoculars
      - id: LanternFlash
      - id: PowerCellHigh
      - id: NetProbeCartridge
      - id: WelderIndustrial
      - id: SheetPlasteel10
      - id: ClothingMaskGasExplorer
      - id: TechnologyDisk
      - id: ResearchDisk5000
      - id: PetCarrier
      - id: DrinkMopwataBottleRandom
      - id: SpectralLocator
      - id: WehpetInstrument
      - id: LidSalami
        weight: 0.05
      - id: MakeshiftID # Starlight
      - id: Flash3Use # Starlight
        weight: 0.3 # Starlight
      - id: Flash4Use # Starlight
        weight: 0.15 # Starlight
      - id: Flash # Starlight
        weight: 0.05 # Starlight

- type: entity
  name: Maint Loot Spawner
  suffix: Tools+Cells+Mats
  id: MaintenanceToolSpawner
  parent: MarkerBase
  components:
  - type: Sprite
    layers:
      - state: red
      - sprite: Objects/Power/power_cells.rsi
        state: high
  - type: EntityTableSpawner
    table: !type:NestedSelector
      tableId: MaintToolsTable
      prob: 0.6

- type: entityTable
  id: MaintWeaponTable
  table: !type:GroupSelector
    children:
    # Common Group
    - !type:GroupSelector
      weight: 95
      children:
      - id: Machete
      - id: Claymore
      - id: BaseBallBat
      - id: CombatKnife
      - id: Spear
      - id: RifleStock
      - id: ModularReceiver
      - id: HydroponicsToolScythe
      - id: SwordMakeshift  #starlight Start: Adds some Makeshift Items
      - id: MakeshiftShield
      - id: SwordImprovised
      - id: ImprovisedShield
      - id: WeaponSniperMakeshift
        weight: .8
      - id: WeaponShotgunMakeshift
        weight: .8
      - id: WeaponLaserSvalinn # Starlight- The svalinn's 14 dps... I think it's maints loot worthy.
        weight: .8
      - id: ClothingOuterArmorMakeshift
      - id: WeaponMeleeSwitchblade
      - id: SpearSteel #Starlight End:
    # Rare Group
    - !type:GroupSelector
      weight: 5
      children:
      - id: Lighter
      - id: Matchbox
      - id: ClothingEyesBlindfold
      - id: ClothingMaskMuzzle
      - id: ClothingMaskGasSecurity
      - id: ShardGlass
        weight: 2
      - id: Syringe
      - id: Mousetrap
      - !type:GroupSelector
        weight: 2
        children:
        - id: Brutepack1
        - id: Ointment1
        - id: Gauze1
      - id: Bola
      - id: SurvivalKnife
      - id: ScalpelShiv
      - id: Shiv
      - id: SawImprov
      - id: HydroponicsToolMiniHoe
      - id: EmeraldLizitar #starlight
      - id: ClothingHandsKnuckleDusters
      - !type:NestedSelector
        tableId: AllToyWeaponsTable

- type: entity
  name: Maint Loot Spawner
  suffix: Scrap+Weapons
  id: MaintenanceWeaponSpawner
  parent: MarkerBase
  components:
  - type: Sprite
    layers:
      - state: red
      - sprite: Objects/Weapons/Melee/machete.rsi
        state: icon
  - type: EntityTableSpawner
    table: !type:NestedSelector
      tableId: MaintWeaponTable
      prob: 0.6

- type: entity
  name: Maint Loot Spawner
  suffix: Plants
  id: MaintenancePlantSpawner
  parent: MarkerBase
  components:
    - type: Sprite
      layers:
        - state: red
        - sprite: Objects/Misc/spaceshroom.rsi
          state: structure
    - type: RandomSpawner
      prototypes:
        - Spaceshroom
      chance: 0.6
      offset: 0.0


- type: entityTable
  id: InsulsTable
  table: !type:GroupSelector
    children:
    - id: ClothingHandsGlovesColorYellowBudget # budget insuls
      weight: 85
    - id: ClothingHandsGlovesColorYellow # true insuls
      weight: 10
    - id: ClothingHandsGlovesFingerlessInsulated # fingerless
      weight: 4
    - id: ClothingHandsGlovesConducting # conducting
      weight: 1

- type: entity
  name: Maint Loot Spawner
  id: MaintenanceInsulsSpawner
  suffix: Insuls, safe
  parent: MarkerBase
  components:
  - type: Sprite
    layers:
    - state: red
    - sprite: Clothing/Hands/Gloves/Color/yellow.rsi
      state: icon
  - type: EntityTableSpawner
    table: !type:NestedSelector
      tableId: InsulsTable
