# region Clutter
- type: entityTable
  id: TableDungeonLootSupplyClutter
  table: !type:GroupSelector
    children:
    - !type:NestedSelector
      tableId: TableDungeonLootSupplyTools
      weight: 0.3
    - !type:NestedSelector
      tableId: TableDungeonLootEngineeringParts
      weight: 0.05
    - !type:NestedSelector
      tableId: TableDungeonLootSupplyClothes
      weight: 0.3
    - !type:NestedSelector
      tableId: TableDungeonLootSupplyCircuitBoards
      weight: 0.05
    - !type:NestedSelector
      tableId: TableDungeonLootEngineeringToolboxes
      weight: 0.15
    - !type:NestedSelector
      tableId: TableDungeonLootGeneralOreSingle
      weight: 0.05
    - !type:NestedSelector
      tableId: TableDungeonLootGeneralOreFull
      weight: 0.1
    - !type:NestedSelector
      tableId: TableArtLoot
      weight: 0.05

- type: entityTable
  id: TableDungeonLootSupplyClutterWithMines
  table: !type:GroupSelector
    children:
    - !type:NestedSelector
      tableId: TableDungeonLootSupplyClutter
      weight: 0.98
    - !type:NestedSelector
      tableId: NFTableRandomConcealedMine
      weight: 0.01

# region Tools
- type: entityTable
  id: TableDungeonLootSupplyTools
  table: !type:GroupSelector
    children:
    - !type:NestedSelector
      tableId: TableDungeonLootSupplyMining
      weight: 16
    - !type:NestedSelector
      tableId: TableDungeonLootSupplyCrushers
      weight: 16
    - !type:NestedSelector
      tableId: TableDungeonLootSupplyPka
      weight: 14
    - !type:NestedSelector
      tableId: TableDungeonLootEngineeringToolsCommon
      weight: 16
    - !type:NestedSelector
      tableId: TableDungeonLootGeneralHandheldDisplays
      weight: 6
    - !type:NestedSelector
      tableId: TableDungeonLootEngineeringToolboxes
      weight: 10
    - !type:GroupSelector
      weight: 10
      children:
      - !type:NestedSelector
        tableId: TableDungeonLootGeneralLighters
        weight: 20
      - !type:NestedSelector
        tableId: TableDungeonLootGeneralFlashlights
        weight: 60
      - !type:NestedSelector
        tableId: TableDungeonLootGeneralFlares
        weight: 20

- type: entityTable
  id: TableDungeonLootSupplyMining
  table: !type:GroupSelector
    children:
    - id: Pickaxe
      weight: 0.2
    - id: MiningDrill
      weight: 0.75
    - id: MiningDrillDiamond
      weight: 0.05

- type: entityTable
  id: TableDungeonLootSupplyCrushers
  table: !type:GroupSelector
    children:
    - id: WeaponCrusherDagger
      weight: 0.4
    - id: WeaponCrusher
      weight: 0.35
    - id: WeaponCrusherGlaive
      weight: 0.25

- type: entityTable
  id: TableDungeonLootSupplyPka
  table: !type:GroupSelector
    children:
    - id: NFWeaponPkaSawn
      weight: 0.24
    - id: NFWeaponPka
      weight: 0.35
    - id: NFWeaponPkaCannon
      weight: 0.4
    - id: ShuttleGunKineticFlatpack
      weight: 0.01

# region Circuit Boards
- type: entityTable
  id: TableDungeonLootSupplyCircuitBoards
  table: !type:GroupSelector
    children:
    # Computers
    - !type:GroupSelector
      weight: 0.1
      children:
      - id: ComputerIFFCircuitboard
    # Lathes
    - !type:GroupSelector
      weight: 0.4
      children:
      - id: AutolatheMachineCircuitboard
        weight: 0.4
      - id: SalvageTechFabCircuitboardNF
        weight: 0.3
      - id: CargoTechFabCircuitboardNF
        weight: 0.3
    - !type:GroupSelector
      weight: 0.2
      children:
      #- id: OreProcessorCivilianCircuitboard # Future is now. Unless it isn't.
      - id: OreProcessorMachineCircuitboard
      - id: OreProcessorIndustrialMachineCircuitboard
      - id: AmmoTechFabCircuitboard
    # Machines
    - !type:GroupSelector
      weight: 0.4
      children:
      - id: NFScrapProcessorCircuitboard
      - id: MaterialReclaimerMachineCircuitboard
      - id: TurboItemRechargerCircuitboard
      - id: GyroscopeMachineCircuitboard
      - id: MiniGravityGeneratorCircuitboard
      - id: ThrusterMachineCircuitboard
      - id: ShuttleGunKineticCircuitboard
        weight: 0.01
      - id: ShuttleGunSvalinnMachineGunCircuitboard
        weight: 0.01

# region Clothes
# this is mostly just clutter for flavor
- type: entityTable
  id: TableDungeonLootSupplyClothes
  table: !type:GroupSelector
    children:
    - !type:NestedSelector
      tableId: TableDungeonLootSupplyClothesBags
      weight: 40
    - !type:NestedSelector
      tableId: TableDungeonLootSupplyClothesHats
      weight: 5
    - !type:NestedSelector
      tableId: TableDungeonLootSupplyClothesJumpsuits
      weight: 20
    - !type:NestedSelector
      tableId: TableDungeonLootSupplyClothesBoots
      weight: 5
    - !type:NestedSelector
      tableId: TableDungeonLootSupplyClothesBelts
      weight: 15
    - !type:GroupSelector
      weight: 15
      children:
      - !type:NestedSelector
        tableId: TableDungeonLootSupplyEvas
      - !type:NestedSelector
        tableId: TableDungeonLootSupplyHardsuits

- type: entityTable
  id: TableDungeonLootSupplyClothesBags
  table: !type:GroupSelector
    children:
    - id: ClothingBackpackDuffelCargo
      weight: 3
    - id: ClothingBackpackDuffelSalvage
      weight: 3
    - id: ClothingBackpackMessengerCargo
      weight: 2
    - id: ClothingBackpackMessengerSalvage
      weight: 2
    - id: ClothingBackpackCargo
      weight: 2
    - id: ClothingBackpackSalvage
      weight: 2
    - id: ClothingBackpackSatchelCargo
      weight: 2
    - id: ClothingBackpackSatchelSalvage
      weight: 2
    - !type:GroupSelector
      weight: 0.5
      children:
      - id: NFPouchCargo
      - id: NFPouchSalvage
      - id: NFPouchUtility

- type: entityTable
  id: TableDungeonLootSupplyClothesBelts
  table: !type:GroupSelector
    children:
    # spawn probabilities skewed towards empty belts to reduce entity spam
    - !type:GroupSelector
      weight: 0.2
      children:
      - id: ClothingBeltUtility
        weight: 0.7
      - id: ClothingBeltUtilityFilled
        weight: 0.3
    - !type:GroupSelector
      weight: 20
      children:
      - id: ClothingBeltSalvageWebbing
        weight: 0.7
      - id: ClothingBeltSalvageWebbingFilledNF
        weight: 0.3
    - !type:GroupSelector
      weight: 0.05
      children:
      - id: ConstructionBag
        weight: 0.95
      - id: ConstructionBagOfHolding
        weight: 0.05
    - !type:GroupSelector
      weight: 0.1
      children:
      - id: OreBag
        weight: 0.95
      - id: OreBagOfHolding
        weight: 0.05

- type: entityTable
  id: TableDungeonLootSupplyClothesHats
  table: !type:GroupSelector
    children:
    - id: ClothingHeadHatCargosoft
      weight: 4
    - id: ClothingHeadHatOrangesoft
      weight: 4
    - id: ClothingHeadHatQMsoft
      weight: 0.5

- type: entityTable
  id: TableDungeonLootSupplyClothesJumpsuits
  table: !type:GroupSelector
    children:
    - !type:GroupSelector
      weight: 99
      children:
      - id: ClothingUniformJumpsuitCargo
      - id: ClothingUniformJumpsuitMilitaryCargo
      - id: ClothingUniformJumpsuitSalvageSpecialist
      - id: ClothingUniformJumpsuitMilitarySalvageSpecialist

- type: entityTable
  id: TableDungeonLootSupplyClothesBoots
  table: !type:GroupSelector
    children:
    - id: ClothingShoesBootsWork
    - id: ClothingShoesBootsSalvage

# region EVA
- type: entityTable
  id: TableDungeonLootSupplyEvas
  table: !type:GroupSelector
    children:
    - id: ClothingOuterEVASuitCargo
      weight: 0.45
    - id: ClothingBackpackDuffelEVABundleCargo
      weight: 0.05
    - id: ClothingOuterEVASuitSalvage
      weight: 0.45
    - id: ClothingBackpackDuffelEVABundleSalvage
      weight: 0.05

- type: entityTable
  id: TableDungeonLootSupplyHardsuits
  table: !type:GroupSelector
    children:
    - id: ClothingOuterHardsuitSpatio
      weight: 0.25
    - id: ClothingOuterHardsuitLuxury
      weight: 0.45
    - id: ClothingOuterHardsuitSalvage
      weight: 0.25
    - id: ClothingOuterHardsuitHostileEnvironment
      weight: 0.025
    - id: ClothingOuterHardsuitMaximPrototype
      weight: 0.025

#region Lockers
- type: entityTable
  id: TableDungeonLootSupplyLockers
  table: !type:GroupSelector
    children:
    # spawn probabilities skewed towards empty lockers to reduce entity spam
    - !type:GroupSelector
      weight: 0.45
      children:
      - id: LockerSalvageSpecialist
        weight: 0.7
      - id: LockerSalvageSpecialistFilled
        weight: 0.3
    - !type:GroupSelector
      weight: 0.45
      children:
      - id: WardrobeCargo
        weight: 0.7
      - id: WardrobeCargoFilled
        weight: 0.3
    - !type:GroupSelector
      weight: 0.05
      children:
      - id: LockerQuarterMaster
        weight: 0.7
      - id: LockerQuarterMasterFilled
        weight: 0.3

#region Lockers (SSU)
- type: entityTable
  id: TableDungeonLootSupplySuitStorageUnits
  table: !type:GroupSelector
    children:
    # spawn probabilities skewed towards empty lockers to reduce entity spam
    - id: SuitStorageBase
      weight: 55
    - !type:GroupSelector
      weight: 0.2
      children:
      - id: SuitStorageEVACargo
      - id: SuitStorageSalv
    - !type:GroupSelector
      weight: 0.2
      children:
      - id: SuitStorageEVASalvage
      - id: SuitStorageQuartermaster
    - !type:GroupSelector
      weight: 0.05
      children:
      - id: SuitStorageNTSRA
      - id: SuitStorageMining

# region Machines
- type: entityTable
  id: TableDungeonLootSupplyMachinesFabricators
  table: !type:GroupSelector
    children:
    - id: Autolathe
      weight: 0.15
    - id: SalvageTechfabNF
      weight: 0.1
    - id: CargoTechFabNF
      weight: 0.2
    - id: MachineMaterialSilo
      weight: 0.2
    - !type:GroupSelector
      weight: 0.3
      children:
      #- id: OreProcessorCivilian # Future is now. Unless it isn't.
      #  weight: 0.2
      - id: OreProcessor
        weight: 0.95
      - id: OreProcessorIndustrial
        weight: 0.05
    - !type:NestedSelector
      tableId: TableDungeonLootGeneralFrameMachine
      weight: 0.05

# region Vendomats
- type: entityTable
  id: TableDungeonLootSupplyMachinesVending
  table: !type:GroupSelector
    children:
    - id: VendingMachineSalvage
      weight: 0.4
    - id: VendingMachineWinter
      weight: 0.2
    - id: VendingMachineCargoDrobe
      weight: 0.1
    - id: VendingMachineFlatpackVend
      weight: 0.05
    - id: VendingMachineYouTool
      weight: 0.05
    - id: VendingMachineVendomat
      weight: 0.1
    - !type:NestedSelector
      tableId: TableDungeonLootGeneralFrameMachine
      weight: 0.1

# region Flatpacks
- type: entityTable
  id: TableDungeonLootSupplyFlatpacks
  table: !type:GroupSelector
    children:
    - !type:GroupSelector
      weight: 0.55
      children:
      - id: ScrapProcessorFlatpack
      - id: MaterialReclaimerFlatpack
      - id: SalvageTechfabNFFlatpack
      - id: CargoTechfabNFFlatpack
    - id: TelecomServerFlatpack
    - !type:GroupSelector
      weight: 0.4
      children:
      #- id: OreProcessorCivilianFlatpack # Future is now. Unless it isn't.
      #  weight: 0.2
      - id: OreProcessorFlatpack
        weight: 0.5
      - id: OreProcessorIndustrialFlatpack
        weight: 0.3
    - !type:GroupSelector
      weight: 0.05
      children:
      - id: WeaponCapacitorRechargerFlatpack
      - id: ShuttleGunKineticFlatpack
      - id: AmmoTechFabFlatpack
