# BASE
- type: entity
  parent: BaseItem
  id: RogueSiliconGiftBox
  name: rogue unit's bundle
  abstract: true
  categories: [ HideSpawnMenu ]
  suffix: NPC Loot
  components:
  - type: Sprite
    sprite: _NF/Objects/Tools/bundles.rsi
    state: engi-base
    scale: 0.7, 0.7
  - type: Item
    size: Normal
  - type: Clothing
    slots:
    - back
    quickEquip: false
    sprite: _NF/Objects/Tools/bundles.rsi
    clothingVisuals:
      back:
      - state: mask_null
  - type: SpawnItemsOnUse
    items:
      - id: SpaceCash10
    sound:
      path: /Audio/Machines/windoor_open.ogg

# ROGUE SILICON NPC LOOT
## TIER 0
- type: entity
  parent: RogueSiliconGiftBox
  id: ClothingBackpackRogueSiliconT0
  categories: [ HideSpawnMenu ]
  components:
  - type: SpawnItemsOnUse
    items:
    # Scrap chunks
    - id: ScrapOre20RandomLowTech
      prob: 1.0
    # Parts
    - id: AdvancedCapacitorStockPart
      prob: 0.3
    - id: AdvancedMatterBinStockPart
      prob: 0.3
    - id: SpawnDungeonLootPowerCell
      prob: 0.25
    - id: SpawnDungeonLootPartsEngi
      prob: 0.25
    # Circuit boards
  #  - id: SpawnDungeonLootCircuitBoardEngi
   #   prob: 0.25
    sound:
      path: /Audio/Machines/windoor_open.ogg

## TIER 1
- type: entity
  parent: RogueSiliconGiftBox
  id: ClothingBackpackRogueSiliconT1
  categories: [ HideSpawnMenu ]
  components:
  - type: SpawnItemsOnUse
    items:
    # Scrap chunks
    - id: ScrapOre20RandomLowTech
      prob: 1.0
    # Parts
    - id: AdvancedCapacitorStockPart
      prob: 0.4
    - id: NanoManipulatorStockPart
      prob: 0.4
    - id: AdvancedMatterBinStockPart
      prob: 0.4
    - id: SpawnDungeonLootPowerCell
      prob: 0.25
    - id: SpawnDungeonLootPartsEngi
      prob: 0.25
    # Circuit boards
   # - id: SpawnDungeonLootCircuitBoardEngi
   #   prob: 0.9
    # Flatpacks
   # - id: SpawnDungeonLootFlatpacks
   #  prob: 0.8
    sound:
      path: /Audio/Machines/windoor_open.ogg

## TIER 2
- type: entity
  parent: RogueSiliconGiftBox
  id: ClothingBackpackRogueSiliconT2
  categories: [ HideSpawnMenu ]
  components:
  - type: SpawnItemsOnUse
    items:
    # Scrap chunks
    - id: ScrapOre20RandomHighTech
      prob: 1.0
    # Parts
    - id: SuperCapacitorStockPart
      prob: 0.4
    - id: PicoManipulatorStockPart
      prob: 0.4
    - id: SuperMatterBinStockPart
      prob: 0.4
    - id: SpawnDungeonLootPowerCell
      prob: 0.25
    - id: SpawnDungeonLootPartsEngi
      amount: 2
      prob: 0.25
    # Circuit boards
  #  - id: SpawnDungeonLootCircuitBoardEngi
  #    amount: 1
  #    prob: 0.8
  #  - id: SpawnDungeonLootCircuitBoardScience
  #    prob: 0.8
    # Flatpacks
  #  - id: SpawnDungeonLootFlatpacks
  #    prob: 0.8
    sound:
      path: /Audio/Machines/windoor_open.ogg

## TIER 3
- type: entity
  parent: RogueSiliconGiftBox
  id: ClothingBackpackRogueSiliconT3
  categories: [ HideSpawnMenu ]
  components:
  - type: SpawnItemsOnUse
    items:
    # Scrap chunks
    - id: ScrapOre20RandomHighTech
      prob: 1.0
    # Parts
    - id: QuadraticCapacitorStockPart
      prob: 0.05
    - id: FemtoManipulatorStockPart
      prob: 0.05
    - id: BluespaceMatterBinStockPart
      prob: 0.05
    - id: SpawnDungeonLootPowerCell
      prob: 0.25
    - id: SpawnDungeonLootPartsEngi
      amount: 3
      prob: 0.25
    # Circuit boards
  #  - id: SpawnDungeonLootCircuitBoardEngi
  #    amount: 1
  #    prob: 0.7
  #  - id: SpawnDungeonLootCircuitBoardScience
  #    amount: 1
  #    prob: 0.7
  #  - id: SpawnDungeonLootCircuitBoardSalvage
  #    prob: 0.7
    # Flatpacks
  #  - id: SpawnDungeonLootFlatpacks
  #   amount: 2
  #    prob: 0.8
    sound:
      path: /Audio/Machines/windoor_open.ogg

## TIER 4 (Placeholder)
- type: entity
  parent: RogueSiliconGiftBox
  id: ClothingBackpackRogueSiliconT4
  categories: [ HideSpawnMenu ]
  components:
  - type: SpawnItemsOnUse
    items:
    # Scrap chunks
    - id: ScrapOre20RandomHighTech
      prob: 1.0
    - id: NFWeaponEnergyLightMachineGunTurbo
      prob: 0.1
    # Parts
    - id: QuadraticCapacitorStockPart
      prob: 0.05
    - id: FemtoManipulatorStockPart
      prob: 0.05
    - id: BluespaceMatterBinStockPart
      prob: 0.05
    - id: SpawnDungeonLootPowerCell
      prob: 0.05
    - id: SpawnDungeonLootPartsEngi
      amount: 3
      prob: 0.25
    # Circuit boards
   # - id: SpawnDungeonLootCircuitBoardEngi
   #   amount: 1
   #   prob: 0.8
   # - id: SpawnDungeonLootCircuitBoardScience
   #   amount: 1
   #   prob: 0.8
   # - id: SpawnDungeonLootCircuitBoardSalvage
   #   prob: 0.8
   # - id: SpawnDungeonLootCircuitBoard
   #   prob: 0.8
    # Flatpacks
  #  - id: SpawnDungeonLootFlatpacks
   #   amount: 3
   #   prob: 0.8
    sound:
      path: /Audio/Machines/windoor_open.ogg
