# Sunrise smuggler bag loot tables.

- type: entityTable
  id: SmugglerSunriseLootTable
  table: !type:AllSelector
    children:
    - id: SmugglerSunriseForgedPartsParcel
    - !type:NestedSelector
      tableId: SmugglerSunriseImprovisedAmmoTable
    - id: SmugglerSunriseMaterialsParcel
    - !type:NestedSelector
      tableId: SmugglerSunriseGrenadesTable

- type: entity
  parent: [ BaseItem, BaseWrappedParcel ]
  id: SmugglerSunriseMaterialsParcel
  name: wrapped materials parcel
  description: A compact parcel with smuggled materials.
  components:
  - type: Sprite
    sprite: Objects/Misc/ParcelWrap/wrapped_parcel.rsi
    state: parcel-medium
  - type: Item
    size: Small
  - type: WrappedParcel
    getsSizeFromContent: false
  - type: EntityTableContainerFill
    containers:
      contents: !type:NestedSelector
        tableId: SmugglerSunriseMaterialsTable

- type: entity
  parent: [ BaseItem, BaseWrappedParcel ]
  id: SmugglerSunriseForgedPartsParcel
  name: wrapped forged parts parcel
  description: A compact parcel with forged parts.
  components:
  - type: Sprite
    sprite: Objects/Misc/ParcelWrap/wrapped_parcel.rsi
    state: parcel-medium
  - type: Item
    size: Normal
  - type: WrappedParcel
    getsSizeFromContent: false
  - type: EntityTableContainerFill
    containers:
      contents: !type:NestedSelector
        tableId: SmugglerSunriseForgedPartsTable

- type: entityTable
  id: SmugglerSunriseForgedPartsTable
  table: !type:GroupSelector
    children:
    - id: UnfinishedSwordForged
      weight: 2
    - id: UnfinishedClaymoreForged
      weight: 1
    - id: UnfinishedClothingOuterArmorForged
      weight: 2
    - id: UnfinishedClothingHeadHelmetForged
      weight: 2
    - id: UnfinishedPistolForged
      weight: 2
    - id: UnfinishedRevolverForged
      weight: 2
    - id: UnfinishedSubMachineGunForged
      weight: 0.5
    - id: UnfinishedSniperForged
      weight: 0.5
    - id: RadioJammerSyndicate

- type: entityTable
  id: SmugglerSunriseImprovisedAmmoTable
  table: !type:GroupSelector
    children:
    - id: ShellShotgunImprovisedEmpty
      amount: !type:RangeNumberSelector
        range: 1, 3
    - id: ShellShotgunImprovisedIncendiary
      amount: !type:RangeNumberSelector
        range: 1, 4
    - id: ShellShotgunImprovisedUranium
      amount: !type:RangeNumberSelector
        range: 1, 3
    - id: MagazineBoxImprovisedPistol
    - id: MagazineBoxImprovisedRifle
    - id: MagazineBoxImprovisedMagnum
    - id: MagazineBoxImprovisedShotgun
    - id: SpeedLoaderLightRifle
      amount: !type:RangeNumberSelector
        range: 1, 3
    - id: SpeedLoaderMagnumAP
    - id: MagazinePistolSubMachineGunImprovisedFilled
    - id: MagazinePistolImprovisedFilled
      amount: !type:RangeNumberSelector
        range: 1, 2
    - id: MagazineBoxAntiMateriel
      weight: 0.15
    - id: CartridgeAntiMateriel
      amount: !type:RangeNumberSelector
        range: 1, 3

- type: entityTable
  id: SmugglerSunriseMaterialsTable
  table: !type:GroupSelector
    children:
    - id: SheetSteel
    - id: Flash
    - id: SheetPlastic
    - id: SheetGlass
    - id: CrushedPhosphorus
    - id: MaterialCloth
    - id: MaterialGunpowder5
      weight: 0.25

- type: entityTable
  id: SmugglerSunriseMedItemsTable
  table: !type:GroupSelector
    children:
    - id: Gauze
      amount: !type:RangeNumberSelector
        range: 1, 3
    - id: Brutepack
      amount: !type:RangeNumberSelector
        range: 1, 3
    - id: RegenerativeMesh
      amount: !type:RangeNumberSelector
        range: 1, 3
    - id: MedicatedSuture
      amount: !type:RangeNumberSelector
        range: 1, 3
    - id: Bloodpack
      amount: !type:RangeNumberSelector
        range: 1, 2
    - id: EmergencyMedipen
      amount: !type:RangeNumberSelector
        range: 1, 2
    - id: BruteAutoInjector
      amount: !type:RangeNumberSelector
        range: 1, 2
    - id: BurnAutoInjector
      amount: !type:RangeNumberSelector
        range: 1, 2
    - id: PunctAutoInjector
      amount: !type:RangeNumberSelector
        range: 1, 2
    - id: CombatMedipen
    - id: Stimpack

- type: entityTable
  id: SmugglerSunriseLeftArmImplantsTable
  table: !type:GroupSelector
    children:
    - id: LeftArmCyberGorilla
    - id: LeftArmCyberMechwright
    - id: LeftArmCyberReaper
    - id: LeftArmCyberRobust
    - id: LeftArmCyberHack
    - id: LeftArmCyberAtmos
    - id: LeftArmCyberJanitorial
    - id: LeftArmCyberBonesaw
    - id: LeftArmCyberLaserEmitter
    - id: LeftArmCyberBulwark
    - id: LeftArmCyberGrenadeThrower
    - id: LeftArmCyberMantisBladeMaxGuard

- type: entityTable
  id: SmugglerSunriseImplantersTable
  table: !type:GroupSelector
    children:
    - id: FakeMindShieldImplanter
      weight: 1
    - id: FreedomImplanter
      weight: 10
    - id: StorageImplanter
      weight: 10
    - id: SmokeScreenImplanter
      weight: 10
    - id: ImplanterExtractor

- type: entityTable
  id: SmugglerSunriseGrenadesTable
  table: !type:GroupSelector
    children:
    - id: ImprovisedGrenadeCasingEmpty
      amount: !type:RangeNumberSelector
        range: 1, 2
    - id: ImprovisedGrenadeFirebomb
      amount: !type:RangeNumberSelector
        range: 1, 3
    - id: ImprovisedGrenadePipebomb
      amount: !type:RangeNumberSelector
        range: 1, 3
    - id: ImprovisedGrenadeGlass
      amount: !type:RangeNumberSelector
        range: 1, 3
    - id: PipeBomb
      amount: !type:RangeNumberSelector
        range: 1, 3
    - id: PipeBombCable
      weight: 0.75
    - id: FireBomb
      amount: !type:RangeNumberSelector
        range: 1, 3
    - id: FireBombEmpty
      amount: !type:RangeNumberSelector
        range: 1, 3
    - id: FireBombFuel
      amount: !type:RangeNumberSelector
        range: 1, 3
    - id: CleanerGrenadeAcidBox
    - id: TearGasGrenade
      amount: !type:RangeNumberSelector
        range: 1, 2
    - id: GrenadeStinger
      amount: !type:RangeNumberSelector
        range: 1, 2

- type: entityTable
  id: SmugglerSunriseRareWeaponsTable
  table: !type:GroupSelector
    children:
    - id: WeaponRevolverSnubRevolver
    - id: WeaponRevolverPirate
    - id: WeaponRevolverPython
      weight: 0.5
    - id: WeaponRevolverPythonAP
      weight: 0.5
    - id: RevolverCapGunFake
      weight: 0.5
    - id: WeaponSniperRepeater
    - id: WeaponSniperMosin
    - id: WeaponShotgunTrenchgun4034Sawn
    - id: WeaponShotgunSawn
    - id: WeaponLaserSvalinn
    - id: WeaponMakeshiftLaser
    - id: LauncherSyringePistol
    - id: WeaponLaserGun
    - id: Musket
    - id: Flash
    - id: ImplanterExtractor

- type: entityTable
  id: SmugglerSunriseMeleeWeaponsTable
  table: !type:GroupSelector
    children:
    - id: ThrowingKnife
    - id: ClothingHandsKnuckleDusters
    - id: ClothingHandsKnuckleDustersBrass
    - id: ClothingHandsKnuckleDustersSyndicate
    - id: BaseBallBat
    - id: SurvivalKnife
    - id: KukriKnife
    - id: CombatKnife
    - id: GauntletGORILLAUpgradeKit
    - id: WeaponPistolCHIMPUpgradeKit
    - id: WeaponMakeshiftLaser
    - id: LauncherSyringePistol
    - id: WeaponLaserGun
    - id: Musket
    - id: Flash
    - id: ImplanterExtractor
    - id: PinpointerSmugglerRevolutionaryStash

- type: entityTable
  id: SmugglerSunriseImprovisedAmmoCompactTable
  table: !type:GroupSelector
    children:
    - id: PinpointerSmugglerRevolutionaryStash
    - id: ShellShotgunImprovisedEmpty
    - id: ShellShotgunImprovisedIncendiary
    - id: ShellShotgunImprovisedUranium
    - id: MagazineBoxImprovisedPistol
    - id: MagazineBoxImprovisedRifle
    - id: MagazineBoxImprovisedMagnum
    - id: MagazineBoxImprovisedShotgun
    - id: SpeedLoaderLightRifle
    - id: SpeedLoaderMagnumAP
    - id: MagazinePistolSubMachineGunImprovisedFilled
    - id: MagazinePistolImprovisedFilled
    - id: CartridgeAntiMateriel
      weight: 0.35

- type: entityTable
  id: SmugglerSunriseMedItemsCompactTable
  table: !type:GroupSelector
    children:
    - id: Gauze
    - id: Brutepack
    - id: RegenerativeMesh
    - id: MedicatedSuture
    - id: Bloodpack
    - id: EmergencyMedipen
    - id: BruteAutoInjector
    - id: BurnAutoInjector
    - id: PunctAutoInjector
    - id: CombatMedipen
    - id: Stimpack

- type: entityTable
  id: SmugglerSunriseGrenadesCompactTable
  table: !type:GroupSelector
    children:
    - id: ImprovisedGrenadeCasingEmpty
    - id: ImprovisedGrenadeFirebomb
    - id: ImprovisedGrenadePipebomb
    - id: ImprovisedGrenadeGlass
    - id: PipeBomb
    - id: PinpointerSmugglerRevolutionaryStash
      weight: 0.75
    - id: FireBomb
    - id: PinpointerSmugglerRevolutionaryStash
    - id: CleanerGrenadeAcidBox
    - id: TearGasGrenade
    - id: GrenadeStinger

- type: entityTable
  id: SmugglerSunriseRevolutionaryHeavyTable
  table: !type:GroupSelector
    children:
    - id: SmugglerSunriseForgedPartsParcel
    - !type:NestedSelector
      tableId: SmugglerSunriseLeftArmImplantsTable
      weight: 0.75
    - !type:NestedSelector
      tableId: SmugglerSunriseImplantersTable
      weight: 0.75
    - !type:NestedSelector
      tableId: SmugglerSunriseRareWeaponsTable
      weight: 0.45
    - !type:NestedSelector
      tableId: SmugglerSunriseMeleeWeaponsTable
      weight: 0.9

- type: entity
  parent: ClothingBackpackSatchelSmugglerUnanchored
  id: ClothingBackpackSmugglerRevolutionaryFilled
  suffix: Smuggler, Revolutionary, Do Not Map
  components:
  - type: Sprite
    sprite: Clothing/Back/Satchels/smuggler.rsi
    state: icon
  - type: Storage
    maxItemSize: Huge
    grid:
    - 0,0,7,4
  - type: EntityTableContainerFill
    containers:
      storagebase: !type:NestedSelector
        tableId: FillSmugglerBackpackRevolutionary

- type: entity
  parent: [ BaseItem, BaseSubfloorAnchorStorageAnchored, BaseMajorContraband ]
  id: RevolutionarySmugglerStash
  name: wrapped smuggler stash
  components:
  - type: Sprite
    sprite: Clothing/Back/Satchels/smuggler.rsi
    state: folded
  - type: SpawnItemsOnUse
    items:
    - id: ClothingBackpackSmugglerRevolutionaryFilled
    sound:
      path: /Audio/Items/jumpsuit_equip.ogg
  - type: AbductorHumanObservationConsole # Спаси и сохрани
  - type: Physics
    bodyType: Static

#Table
- type: entityTable
  id: FillSmugglerBackpackRevolutionary
  table: !type:AllSelector
    children:
    - !type:NestedSelector
      tableId: SmugglerSunriseRevolutionaryHeavyTable
    - !type:GroupSelector
      rolls: !type:RangeNumberSelector
        range: 10, 12
      children:
      - !type:NestedSelector
        tableId: SmugglerSunriseImprovisedAmmoCompactTable
        weight: 2
      - !type:NestedSelector
        tableId: SmugglerSunriseGrenadesCompactTable
        weight: 1.6
      - !type:NestedSelector
        tableId: SmugglerSunriseMedItemsCompactTable
        weight: 1.6
      - id: SmugglerSunriseMaterialsParcel
        weight: 1.1
