#region BASE
## BACK - for gear and cash
- type: entity
  parent: BaseItem
  id: MercenaryDuffelGiftBox
  name: mercenary gear bundle
  description: Loot boxes? Here?
  abstract: true
  categories: [ HideSpawnMenu ]
  suffix: NPC Loot
  components:
  - type: Sprite
    sprite: _NF/Clothing/Back/Duffels/color.rsi
    layers:
    - state: icon-base
      color: "#6e6e38"
    - state: icon-sling
      color: "#444444"
    - state: icon-decal-straps
      color: "#444444"
    - state: icon-handle
      color: "#444444"
    - state: icon-zipper
      color: "#bbbb7a"
  - type: Clothing
    quickEquip: false
    slots:
    - back
    sprite: _NF/Clothing/Back/Duffels/color.rsi
    clothingVisuals:
      back:
      - state: equipped-BACKPACK-base
        color: "#6e6e38"
      - state: equipped-BACKPACK-sling
        color: "#444444"
      - state: equipped-BACKPACK-decal-straps
        color: "#49492f"
      - state: equipped-BACKPACK-handle
        color: "#49492f"
  - type: Item
    size: Normal
    inhandVisuals:
      left:
      - state: inhand-left-base
        color: "#6e6e38"
      - state: inhand-left-sling
        color: "#444444"
      - state: inhand-left-decal-straps
        color: "#49492f"
      - state: inhand-left-handle
        color: "#49492f"
      - state: inhand-left-zipper
        color: "#bbbb7a"
      right:
      - state: inhand-right-base
        color: "#6e6e38"
      - state: inhand-right-sling
        color: "#444444"
      - state: inhand-right-decal-straps
        color: "#49492f"
      - state: inhand-right-handle
        color: "#49492f"
      - state: inhand-right-zipper
        color: "#bbbb7a"

## BELT - for ammo and mags
- type: entity
  parent: BaseItem
  id: MercenaryWebbingBox
  name: mercanary ammo bundle
  description: Loot boxes? Here?
  abstract: true
  categories: [ HideSpawnMenu ]
  suffix: NPC Loot
  components:
  - type: Sprite
    sprite: Clothing/Belt/mercwebbing.rsi
    state: icon
  - type: Item
    size: Normal
  - type: Clothing
    quickEquip: false
    slots:
    - belt

# MERCENARY NPC LOOT
#region TIER 1
- type: entity
  parent: MercenaryDuffelGiftBox
  id: ClothingBackpackDuffelMecranaryTier1Pistol
  categories: [ HideSpawnMenu ]
  components:
  - type: SpawnItemsOnUse
    items:
    # Cash
    - id: SpaceCash100
      prob: 0.9
    - id: SpaceCash500
      prob: 0.65
    - id: SpaceCash500
      prob: 0.45
    # Weapons
    - id: NFWeaponPistolMk58Expedition
      prob: 0.9
    # Armor
    - id: ClothingOuterVestWebMercenary
      prob: 0.4
    # Items
    - id: ClothingNeckIFFNeutral
      prob: 0.2
    # Bonus Loot T1
    - id: SpaceCash500
      prob: 0.9
    - id: SpaceCash1000
      prob: 0.7
    - id: SpawnDungeonLootPartsEngi
      prob: 0.7
    sound:
      path: /Audio/Items/jumpsuit_equip.ogg

- type: entity
  parent: MercenaryWebbingBox
  id: ClothingBeltWebbingMecranaryTier1Pistol
  categories: [ HideSpawnMenu ]
  components:
  - type: SpawnItemsOnUse
    items:
    - id: NFMagazinePistol35Overpressure
      prob: 0.9
    - id: NFMagazinePistol35Empty
      prob: 0.9
    - id: NFMagazinePistol35Empty
      prob: 0.8
    - id: NFMagazinePistol35Empty
      amount: 2
      prob: 0.4
    - id: NFAmmunitionBoxPistol35Overpressure
      prob: 0.3
    sound:
      path: /Audio/Items/jumpsuit_equip.ogg

- type: entity
  parent: MercenaryDuffelGiftBox
  id: ClothingBackpackDuffelMecranaryTier1Novalite
  categories: [ HideSpawnMenu ]
  components:
  - type: SpawnItemsOnUse
    items:
    # Cash
    - id: SpaceCash100
      prob: 0.9
    - id: SpaceCash500
      prob: 0.65
    - id: SpaceCash500
      prob: 0.45
    # Weapons
    - id: NFWeaponRifleAssaultNovaliteC1Expedition
      prob: 0.9
    # Armor
    - id: ClothingOuterVestWebMercenary
      prob: 0.4
    # Items
    - id: ClothingNeckIFFNeutral
      prob: 0.2
    # Bonus Loot T2
    - id: SpaceCash1000
      prob: 0.9
    - id: SpawnDungeonLootMaterialsBasicFull
      prob: 0.7
    - id: SpaceCash1000
      prob: 0.7
    - id: SpawnDungeonLootPartsEngi
      amount: 2
      prob: 0.7
    - id: SpawnDungeonLootCircuitBoardEngi
      prob: 0.7
    - id: SpawnDungeonLootToolsAdvancedEngineering
      prob: 0.3
    sound:
      path: /Audio/Items/jumpsuit_equip.ogg

- type: entity
  parent: MercenaryWebbingBox
  id: ClothingBeltWebbingMecranaryTier1Novalite
  categories: [ HideSpawnMenu ]
  components:
  - type: SpawnItemsOnUse
    items:
    - id: NFAmmunitionBoxRifle20Overpressure
      prob: 0.4
    - id: NFMagazineClipRifle20
      prob: 0.9
    - id: NFMagazineClipRifle20Empty
      prob: 0.9
    - id: NFMagazineClipRifle20Empty
      prob: 0.2
    - id: NFAmmunitionBoxBigRifle20Overpressure
      prob: 0.1
    sound:
      path: /Audio/Items/jumpsuit_equip.ogg

#region TIER 2
- type: entity
  parent: MercenaryDuffelGiftBox
  id: ClothingBackpackDuffelMecranaryTier2Shotgun
  categories: [ HideSpawnMenu ]
  components:
  - type: SpawnItemsOnUse
    items:
    # Cash
    - id: SpaceCash500
      prob: 0.9
    - id: SpaceCash500
      prob: 0.65
    - id: SpaceCash500
      prob: 0.45
    # Weapons
    - id: NFWeaponShotgunKammererExpedition
      prob: 0.6
    # Armor
    - id: ClothingOuterArmorBasicSlim
      prob: 0.4
    # Items
    - id: ClothingNeckIFFNeutral
      prob: 0.2
    # Bonus Loot T2
    - id: SpaceCash1000
      prob: 0.9
    - id: SpawnDungeonLootMaterialsBasicFull
      prob: 0.7
    - id: SpaceCash1000
      prob: 0.7
    - id: SpawnDungeonLootPartsEngi
      amount: 2
      prob: 0.7
    - id: SpawnDungeonLootCircuitBoardEngi
      prob: 0.7
    - id: SpawnDungeonLootToolsAdvancedEngineering
      prob: 0.3
    sound:
      path: /Audio/Items/jumpsuit_equip.ogg

- type: entity
  parent: MercenaryWebbingBox
  id: ClothingBeltWebbingMecranaryTier2Shotgun
  categories: [ HideSpawnMenu ]
  components:
  - type: SpawnItemsOnUse
    items:
    - id: NFAmmunitionBoxShellShotgunOverpressure
      prob: 0.4
    - id: NFAmmunitionBoxShellShotgunOverpressure
      prob: 0.2
    sound:
      path: /Audio/Items/jumpsuit_equip.ogg

- type: entity
  parent: MercenaryDuffelGiftBox
  id: ClothingBackpackDuffelMecranaryTier2Revolver
  categories: [ HideSpawnMenu ]
  components:
  - type: SpawnItemsOnUse
    items:
    # Cash
    - id: SpaceCash500
      prob: 0.9
    - id: SpaceCash500
      prob: 0.65
    - id: SpaceCash500
      prob: 0.45
    # Weapons
    - id: NFWeaponRevolverArgentiExpedition
      prob: 0.9
    - id: NFWeaponRevolverArgentiExpedition
      prob: 0.3
    # Armor
    - id: ClothingOuterCoatBHTrench
      prob: 0.4
    - id: ClothingHeadHatBH
      prob: 0.4
    # Items
    - id: ClothingNeckIFFNeutral
      prob: 0.2
    # Bonus Loot T2
    - id: SpaceCash1000
      prob: 0.9
    - id: SpaceCash1000
      prob: 0.7
    - id: SpawnDungeonLootMaterialsValuableFull
      prob: 0.7
    - id: SpawnDungeonLootPartsEngi
      amount: 2
      prob: 0.7
    - id: SpawnDungeonLootCircuitBoardEngi
      prob: 0.7
    - id: SpawnDungeonLootToolsAdvancedEngineering
      prob: 0.3
    sound:
      path: /Audio/Items/jumpsuit_equip.ogg

- type: entity
  parent: MercenaryWebbingBox
  id: ClothingBeltWebbingMecranaryTier2Revolver
  categories: [ HideSpawnMenu ]
  components:
  - type: Sprite
    sprite: Clothing/Belt/bandolier.rsi
    state: icon
  - type: SpawnItemsOnUse
    items:
    - id: NFSpeedLoaderPistol35Empty
      prob: 0.9
    - id: NFSpeedLoaderPistol35Empty
      prob: 0.6
    - id: NFSpeedLoaderPistol35Empty
      prob: 0.1
    - id: NFAmmunitionBoxPistol35Overpressure
      prob: 0.9
    - id: NFAmmunitionBoxPistol35Overpressure
      prob: 0.2
    sound:
      path: /Audio/Items/jumpsuit_equip.ogg

#region TIER 3
- type: entity
  parent: MercenaryDuffelGiftBox
  id: ClothingBackpackDuffelMecranaryTier3Medic
  categories: [ HideSpawnMenu ]
  components:
  - type: SpawnItemsOnUse
    items:
    # Cash
    - id: SpaceCash500
      prob: 0.9
    - id: SpaceCash500
      prob: 0.4
    - id: SpaceCash1000
      prob: 0.2
    # Weapons
    - id: NFWeaponEnergyPistolLaserExpedition
      prob: 0.9
    - id: SawElectric
      prob: 0.7
    # Armor
    # Items
    - id: SpawnDungeonLootKitsFirstAid
      prob: 0.45
    - id: ClothingNeckIFFNeutral
      prob: 0.2
    # Bonus Loot T3
    - id: SpaceCash1000
      prob: 0.9
    - id: SpaceCash500
      prob: 0.9
    - id: SpawnDungeonLootMaterialsBasicFull
      prob: 0.7
    - id: SpaceCash1000
      prob: 0.7
    - id: SpawnDungeonLootPartsEngi
      amount: 2
      prob: 0.7
    - id: SpawnDungeonLootFlatpacks
      prob: 0.5
    - id: SpawnDungeonLootToolsAdvancedEngineering
      prob: 0.4
    sound:
      path: /Audio/Items/jumpsuit_equip.ogg

- type: entity
  parent: MercenaryWebbingBox
  id: ClothingBeltMecranaryTier3Medic
  categories: [ HideSpawnMenu ]
  components:
  - type: Sprite
    sprite: Clothing/Belt/emt.rsi
    state: icon
  - type: SpawnItemsOnUse
    items:
    - id: Brutepack
      prob: 0.6
    - id: Ointment
      prob: 0.6
    - id: Bloodpack
      prob: 0.7
    - id: Gauze
      amount: 1
      prob: 0.9
    - id: EmergencyMedipen
      prob: 0.7
    - id: EmergencyMedipen
      prob: 0.4
    - id: EmergencyMedipen
      prob: 0.2
    sound:
      path: /Audio/Items/jumpsuit_equip.ogg

- type: entity
  parent: MercenaryDuffelGiftBox
  id: ClothingBackpackDuffelMecranaryTier3Assault
  categories: [ HideSpawnMenu ]
  components:
  - type: SpawnItemsOnUse
    items:
    # Cash
    - id: SpaceCash500
      prob: 0.9
    - id: SpaceCash500
      prob: 0.4
    - id: SpaceCash1000
      prob: 0.2
    # Weapons
    - id: NFWeaponRifleAssaultGestioExpedition
      prob: 0.9
    # Armor
    # Items
    - id: SpawnDungeonLootKitsFirstAid
      prob: 0.2
    - id: ClothingNeckIFFNeutral
      prob: 0.2
    # Bonus Loot T3
    - id: SpaceCash1000
      prob: 0.9
    - id: SpaceCash500
      prob: 0.9
    - id: SpaceCash1000
      prob: 0.7
    - id: SpawnDungeonLootMaterialsValuableFull
      prob: 0.7
    - id: SpawnDungeonLootPartsEngi
      amount: 2
      prob: 0.7
    - id: SpawnDungeonLootFlatpacks
      prob: 0.5
    - id: SpawnDungeonLootToolsAdvancedEngineering
      prob: 0.4
    sound:
      path: /Audio/Items/jumpsuit_equip.ogg

- type: entity
  parent: MercenaryWebbingBox
  id: ClothingBeltMecranaryTier3Assault
  categories: [ HideSpawnMenu ]
  components:
  - type: Sprite
    sprite: Clothing/Belt/militarywebbing.rsi
    state: icon
  - type: SpawnItemsOnUse
    items:
    - id: NFMagazineRifle30Overpressure
      prob: 0.4
    - id: NFMagazineRifle30Overpressure
      prob: 0.2
    - id: NFAmmunitionBoxRifle30Overpressure
      prob: 0.3
    - id: Tourniquet
      prob: 0.4
    - id: NFAmmunitionBoxBigRifle30Overpressure
      prob: 0.1
    sound:
      path: /Audio/Items/jumpsuit_equip.ogg

#region TIER 4
- type: entity
  parent: MercenaryDuffelGiftBox
  id: ClothingBackpackDuffelMecranaryTier4Captain
  categories: [ HideSpawnMenu ]
  components:
  - type: Sprite
    sprite: _NF/Clothing/Back/Messenger/color.rsi
    layers:
    - state: icon-base
      color: "#C09F72"
    - state: icon-sling
      color: "#776756"
    - state: icon-clasp
      color: "#eeeeee"
  - type: Clothing
    sprite: _NF/Clothing/Back/Messenger/color.rsi
    clothingVisuals:
      back:
      - state: base-equipped-BACKPACK
        color: "#C09F72"
      - state: sling-equipped-BACKPACK
        color: "#776756"
      - state: clasp-equipped-BACKPACK
        color: "#eeeeee"
  - type: Item
    inhandVisuals:
      left:
      - state: base-inhand-left
        color: "#C09F72"
      - state: clasp-inhand-left
        color: "#eeeeee"
      right:
      - state: base-inhand-right
        color: "#C09F72"
      - state: clasp-inhand-right
        color: "#eeeeee"
  - type: SpawnItemsOnUse
    items:
    # Cash
    - id: SpaceCash2500
      prob: 0.9
    - id: SpaceCash500
      prob: 0.65
    - id: SpaceCash500
      prob: 0.45
    - id: SpaceCash2500
      prob: 0.1
    # Weapons
    - id: NFWeaponRifleRepeaterExpedition
      prob: 0.9
    # Armor
    - id: ClothingOuterArmorBulletproof
      prob: 0.4
    # Items
    - id: NFAmmunitionBoxBigRifle30Overpressure
      prob: 0.7
    - id: NFAmmunitionBoxBigRifle30Overpressure
      prob: 0.3
    - id: ClothingNeckIFFNeutral
      prob: 0.2
    - id: NFAmmunitionBoxBigRifle30Overpressure
      prob: 0.1
    - id: AmmoTechFabCircuitboard
      prob: 0.1
    # Bonus Loot T4
    - id: SpaceCash2500
      prob: 0.9
    - id: SpawnDungeonLootFlatpacks
      prob: 0.9
    - id: SpaceCash1000
      prob: 0.7
    - id: SpawnDungeonLootMaterialsValuableFull
      prob: 0.7
    - id: SpawnDungeonLootPartsEngi
      amount: 3
      prob: 0.7
    - id: SpawnDungeonLootVaultGuns
      prob: 0.3
    sound:
      path: /Audio/Items/jumpsuit_equip.ogg
