- 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:
        - id: ClothingOuterCoatPirate
        - id: ClothingHeadHatPirateTricord
      - 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
      # begin starcup: corporate jackets
      - id: ClothingCorpoJacketDiscountDans
      - id: ClothingCorpoJacketGilthari
      - id: ClothingCorpoJacketHephaestus
      - id: ClothingCorpoJacketScarab
      - id: ClothingCorpoJacketStarship
      - id: ClothingCorpoJacketBishop
      - !type:GroupSelector # rarer than the other jackets but not rare enouch for the uncommon thing
        children:
        - id: ClothingCorpoJacketCybersun
        - id: ClothingCorpoJacketCybersunChalice
        - id: ClothingCorpoJacketHawkmoon
        - id: ClothingCorpoJacketInterdyne
        - id: ClothingCorpoJacketElectra
        - id: ClothingCorpoJacketDonkChef
        - id: ClothingCorpoJacketDonkRoboticist
        - id: ClothingCorpoJacketFPA
      # end starcup
    # Uncommon Group
    - !type:GroupSelector
      weight: 23
      children:
      - id: TravelCamera
      - 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: MysterySpaceBladeBox # starcup
      # 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
      # begin starcup: candy buckets
      - !type:GroupSelector
        children:
        - id: CandyBucketPailPlainRandom
        - id: CandyBucketPailSmileyRandom
        - id: CandyBucketPailCat
        - id: CandyBucketPailClown
        - id: CandyBucketPailGhost
        - id: CandyBucketPailPumpkin
        - id: CandyBucketPailSkeleton
      # end starcup
    # Rare Group
    - !type:GroupSelector
      weight: 2
      children:
      - id: DrinkMugDog
      - id: CigarGold
      - id: ClothingUniformJumpsuitFamilyGuy
      - id: WristwatchGold
      - id: RubberStampGreytide
      - id: MysteryLighterBox

- 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:
      # begin starcup: add misc. tools & tweaks
      - !type:GroupSelector
        children:
        - id: FlashlightLantern
        - id: FlashlightLanternGreen
        - id: FlashlightLanternPurple
        - id: FlashlightLanternTeal
        - id: FlashlightLanternRed
        - id: FlashlightBig
      # end starcup
      - id: ToolboxEmergencyFilled
      - !type:GroupSelector
        children:
        - id: OxygenTankFilled
        - id: DoubleEmergencyOxygenTankFilled
      - !type:GroupSelector
        children:
        - id: NitrogenTankFilled
        - id: DoubleEmergencyNitrogenTankFilled
      - 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
      # begin starcup: add misc. tools & tweaks
      - !type:GroupSelector
        children:
        - id: Wrench
        - id: HeavyWrench
        - id: MonkeyWrench
        - id: PipeWrench
      - id: BroomItemBrown
      - id: ItemHammer
      # end starcup
      - id: Crowbar
      - id: Multitool
      - id: Shovel
      - id: ChoppingAxe # starcup: add chopping axes & fireaxe resprite
      - 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: 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
      - !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: LidSalami
        weight: 0.05

- 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
      # begin starcup: add misc. tools & tweaks
      - id: CrashAxe
      - id: BrushAxe
      # end starcup
    # 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: 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: EntityTableSpawner
    table:
      id: Spaceshroom
      prob: 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
