- type: entity
  id: LockerSyndicatePersonalFilled
  suffix: Nukie, Filled
  parent: LockerSyndicatePersonal
  description: It's a personal storage unit for operative gear.
  components:
  - type: AccessReader
    access: [["NuclearOperative"]]
  - type: EntityTableContainerFill
    containers:
      entity_storage: !type:AllSelector
        children:
        - id: ClothingBeltMilitaryWebbing
        - id: ClothingHandsGlovesCombat
        - id: JetpackBlackFilled
        - id: ClothingUniformJumpsuitOperative
        - id: ClothingUniformJumpskirtOperative
        - id: ClothingHeadsetAltSyndicate
        - id: ClothingEyesHudSyndicate

- type: entity
  id: LockerSyndicateWallFilled
  suffix: Nukie, Filled
  parent: LockerWallSyndicate
  description: It's a personal storage unit for operative gear.
  components:
  - type: AccessReader
    access: [["NuclearOperative"]]
  - type: EntityTableContainerFill
    containers:
      entity_storage: !type:AllSelector
        children:
        - id: ClothingBeltMilitaryWebbing
        - id: ClothingHandsGlovesCombat
        - id: JetpackBlackFilled
        - id: ClothingUniformJumpsuitOperative
        - id: ClothingUniformJumpskirtOperative
        - id: ClothingHeadsetAltSyndicate
        - id: ClothingEyesHudSyndicate

- type: entityTable
  id: FillEmergencyInflatables
  table: !type:AllSelector
    children:
    - id: InflatableWallStack5
    - id: InflatableDoorStack1

- type: entityTable
  id: FillLockerEmergencyStandard
  table: !type:AllSelector
    children:
    - id: ClothingMaskBreath
    - id: ClothingOuterSuitEmergency
    - !type:GroupSelector
      children:
      - id: EmergencyOxygenTankFilled
      - id: OxygenTankFilled
    - id: ToolboxEmergencyFilled
      prob: 0.5
    - id: MedkitOxygenFilled
      prob: 0.2
    - id: WeaponFlareGun
      prob: 0.1
    - id: BoxMRE
      prob: 0.1
    - !type:NestedSelector
      tableId: FillEmergencyInflatables

- type: entity
  id: ClosetEmergencyFilledRandom
  parent: ClosetEmergency
  suffix: Filled, Random
  components:
  - type: EntityTableContainerFill
    containers:
      entity_storage: !type:NestedSelector
        tableId: FillLockerEmergencyStandard

- type: entity
  id: ClosetWallEmergencyFilledRandom
  parent: ClosetWallEmergency
  suffix: Filled, Random
  components:
  - type: EntityTableContainerFill
    containers:
      entity_storage: !type:NestedSelector
        tableId: FillLockerEmergencyStandard

- type: entityTable
  id: FillLockerEmergencyN2Standard
  table: !type:AllSelector
    children:
    - id: ClothingMaskBreath
    - id: ClothingOuterSuitEmergency
    - id: BoxMRE
      prob: 0.1
    - id: ToolboxEmergencyFilled
      prob: 0.05
    - !type:GroupSelector
      children:
      - id: EmergencyNitrogenTankFilled
        weight: 4
      - id: NitrogenTankFilled
    - !type:NestedSelector
      tableId: FillEmergencyInflatables

- type: entity
  id: ClosetEmergencyN2FilledRandom
  parent: ClosetEmergencyN2
  suffix: Filled, Random
  components:
  - type: EntityTableContainerFill
    containers:
      entity_storage: !type:NestedSelector
        tableId: FillLockerEmergencyN2Standard

- type: entity
  parent: ClosetWallEmergencyN2
  id: ClosetWallEmergencyN2FilledRandom
  suffix: Filled, Random
  components:
  - type: EntityTableContainerFill
    containers:
      entity_storage: !type:NestedSelector
        tableId: FillLockerEmergencyN2Standard

- type: entityTable
  id: FillLockerFireStandard
  table: !type:AllSelector
    children:
    - id: ClothingOuterSuitFire
    - id: ClothingHeadHelmetFire
    - id: ClothingMaskGas
    - !type:GroupSelector
      children:
      - id: EmergencyOxygenTankFilled
      - id: OxygenTankFilled
    - id: CrowbarRed
    - !type:GroupSelector
      children:
      - id: FireExtinguisher
        weight: 98
      - id: SprayBottleWater #It's just budget cut after budget cut man
        weight: 2

- type: entity
  id: ClosetFireFilled
  parent: ClosetFire
  suffix: Filled
  components:
  - type: EntityTableContainerFill
    containers:
      entity_storage: !type:NestedSelector
        tableId: FillLockerFireStandard

- type: entity
  id: ClosetWallFireFilledRandom
  parent: ClosetWallFire
  suffix: Filled
  components:
  - type: EntityTableContainerFill
    containers:
      entity_storage: !type:NestedSelector
        tableId: FillLockerFireStandard

- type: entityTable
  id: SyndieMaintLoot
  table: !type:GroupSelector
    children:
    - !type:GroupSelector
      children:
      - id: ClothingUniformJumpsuitOperative
      - id: ClothingUniformJumpskirtOperative
    - id: ClothingBackpackDuffelSyndicate
    - id: CyberPen
    - id: CigPackSyndicate
    - id: ClothingBackpackDuffelSyndicatePyjamaBundle
    - id: ClothingBeltMilitaryWebbing
    - id: ClothingShoesBootsJackFilled # starcup: replace combat boots with jackboots
    - id: ToolboxSyndicateFilled
    - id: BalloonSyn
    - id: WeaponSniperMosin
      weight: 2
    - id: ClothingHandsKnuckleDustersSyndicate

- type: entityTable
  id: MaintenanceLockerLoot
  table: !type:AllSelector
    children:
    - id: StrangePill
      prob: 0.20
    - id: CrayonInfinite # Delta V - Just another way to get it
      prob: .01
    # Tools
    - !type:NestedSelector
      tableId: MaintToolsTable
      rolls: !type:RangeNumberSelector
        range: 1, 5
    # Fluff
    - !type:NestedSelector
      tableId: MaintFluffTable
      prob: 0.33
      rolls: !type:RangeNumberSelector
        range: 0, 2
    # Plushies
    - !type:NestedSelector
      tableId: AllPlushiesTable
      prob: 0.10
      rolls: !type:RangeNumberSelector
        range: 1, 2
    # begin starcup: moved back to loadouts
    #- !type:NestedSelector
    #  tableId: MaintenancePlushies
    #  prob: 0.02
    # end starcup

    # Weapons
    - !type:NestedSelector
      tableId: MaintWeaponTable
      prob: 0.075
    # Syndie Loot
    - !type:NestedSelector
      tableId: SyndieMaintLoot
      prob: 0.05
    # Recursive
    - id: ClosetMaintenanceFilledRandom
      prob: 0.01
    # begin starcup
    # NanoTrasen Loot
    - !type:NestedSelector
      tableId: MaintenanceLootNanotrasen
      prob: 0.01 # low for now since it's just the notebook
    # end starcup

- type: entityTable
  id: MaintenancePlushies
  table: !type:GroupSelector
    children:
    - id: PlushieLizardJobBoxer
    - id: PlushieLizardJobClown
    - id: PlushieLizardJobLibrarian
    - id: PlushieLizardJobMime
    - id: PlushieLizardJobMusician
    - id: PlushieLizardJobPassenger
    - id: PlushieLizardJobReporter
    - id: PlushieLizardJobZookeeper

- type: entity
  id: ClosetMaintenanceFilledRandom
  suffix: Filled, Random
  parent: ClosetMaintenance
  components:
  - type: EntityTableContainerFill
    containers:
      entity_storage: !type:NestedSelector
        tableId: MaintenanceLockerLoot

- type: entity
  id: ClosetWallMaintenanceFilledRandom
  parent: ClosetWall
  suffix: Filled, Random
  components:
  - type: EntityTableContainerFill
    containers:
      entity_storage: !type:NestedSelector
        tableId: MaintenanceLockerLoot

# Intended to very occasionally be useful for prisoners, so mostly functional items instead of fluff

- type: entityTable
  id: ToiletCisternCommonToolsTable
  table: !type:GroupSelector
    children:
    - id: Screwdriver
    - id: Wrench
    - id: Wirecutter
    - id: Welder
    - id: ClothingMaskGas
    - id: PowerCellSmall
    - id: RadioHandheld
    - id: Syringe
    - id: CableApcStack
    - id: Lighter

- type: entityTable
  id: ToiletCisternRareToolsTable
  table: !type:GroupSelector
    children:
    - id: ClothingHandsGlovesColorYellow
    - id: DrinkSpaceLube
    - id: WelderIndustrial
    - id: ClothingHeadHatWeldingMaskFlame
    - id: PowerCellMedium
    - id: DoubleEmergencyOxygenTankFilled
    - id: DoubleEmergencyNitrogenTankFilled

- type: entityTable
  id: ToiletCisternUtilityTable
  table: !type:GroupSelector
    children:
    - id: Brutepack
    - id: Ointment
    - id: Gauze
    - id: ChemistryBottleUnstableMutagen

- type: entityTable
  id: ToiletCisternWeaponsTable
  table: !type:GroupSelector
    children:
    - id: SurvivalKnife
    - id: ScalpelShiv
    - id: Shiv
    - id: SawImprov
    - id: HydroponicsToolHatchet
    - id: ClothingHandsKnuckleDusters
    - id: WeaponFlareGun

- type: entityTable
  id: ToiletCisternSyndicateTable
  table: !type:GroupSelector
    children:
    - id: CyberPen
    - id: CigPackSyndicate
    - id: SoapSyndie
    - id: SyndicatePersonalAI
    - id: UplinkLighterBox

- type: entityTable
  id: ToiletCisternLoot
  table: !type:GroupSelector
    children:
    - !type:NestedSelector
      weight: 25
      tableId: ToiletCisternCommonToolsTable
    - !type:NestedSelector
      weight: 8
      tableId: ToiletCisternRareToolsTable
    - !type:NestedSelector
      weight: 5
      tableId: ToiletCisternUtilityTable
    - !type:NestedSelector
      weight: 3
      tableId: ToiletCisternWeaponsTable
    - !type:NestedSelector
      weight: 1
      tableId: ToiletCisternSyndicateTable
