- type: entity
  parent: CrateTradeBaseSecure
  id: CrateTradeSecureNormal
  name: cargo trading crate
  description: Contains goods made in the Frontier sector, ready to be sold at a cargo depot for higher value. MAKE SURE THE CRATE IS INTACT.
  components:
  - type: TradeCrate
    valueAtDestination: 4250
    valueElsewhere: 750 # DO NOT PUT OVER 1K OR INFINITE MONEY EXPLOIT
    expressDeliveryDuration: 2700 # mono - 45 minutes
    expressOnTimeBonus: 1500
    expressLatePenalty: 1000 # 2000/3250
  - type: Icon
    sprite: _NF/Structures/Storage/Crates/tradedark.rsi
  - type: Sprite
    sprite: _NF/Structures/Storage/Crates/tradedark.rsi
    layers:
    - state: icon
    - sprite: _NF/Interface/Misc/cargo_destination_icons.rsi
      state: cargo_other
      offset: 0.275,-0.265
      map: ["enum.TradeCrateVisualLayers.Icon"]
      visible: false
    - sprite: _NF/Interface/Misc/cargo_destination_icons.rsi
      state: cargo_priority_inactive
      offset: 0.025,-0.265
      map: ["enum.TradeCrateVisualLayers.Priority"]
      visible: false
    - state: paper
      sprite: Structures/Storage/Crates/labels.rsi
      offset: "-0.5,0"
      map: ["enum.PaperLabelVisuals.Layer"]
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PhysShapeAabb
          bounds: "-0.4,-0.4,0.4,0.29"
        density: 150 # Heavy
        mask:
        - SmallMobMask
        layer:
        - MachineLayer

- type: entity
  parent: CrateTradeBaseSecure
  id: CrateTradeSecureHigh
  name: express cargo trading crate
  description: An urgent crate of goods made in the Frontier sector, ready to be quickly sold at a cargo depot for higher value. MAKE SURE THE CRATE IS INTACT.
  components:
  - type: TradeCrate
    valueAtDestination: 7500
    valueElsewhere: 1500 # DO NOT PUT OVER 2K OR INFINITE MONEY EXPLOIT
    expressDeliveryDuration: 1350 # mono - 22.5 minutes
    expressOnTimeBonus: 1500
    expressLatePenalty: 5500 # 0/2000
  - type: Icon
    sprite: _NF/Structures/Storage/Crates/tradelight.rsi
  - type: Sprite
    sprite: _NF/Structures/Storage/Crates/tradelight.rsi
    layers:
    - state: icon
    - sprite: _NF/Interface/Misc/cargo_destination_icons.rsi
      state: cargo_other
      offset: 0.275,-0.265
      map: ["enum.TradeCrateVisualLayers.Icon"]
      visible: false
    - sprite: _NF/Interface/Misc/cargo_destination_icons.rsi
      state: cargo_priority_inactive
      offset: 0.025,-0.265
      map: ["enum.TradeCrateVisualLayers.Priority"]
      visible: false
    - state: paper
      sprite: Structures/Storage/Crates/labels.rsi
      offset: "-0.5,0"
      map: ["enum.PaperLabelVisuals.Layer"]
  - type: Fixtures
    fixtures:
      fix1:
        shape:
          !type:PhysShapeAabb
          bounds: "-0.4,-0.4,0.4,0.29"
        density: 400 # Very heavy
        mask:
        - SmallMobMask
        layer:
        - MachineLayer

# region Contraband Crates
- type: entity
  parent: [ CrateTradeBaseSecureContraband, BaseFactionGearTaxedT2 ]
  id: CrateTradeContrabandSecure1
  categories: [ HideSpawnMenu ]
  components:
  - type: Icon
    sprite: _NF/Structures/Storage/Crates/contraband1_crate.rsi
  - type: Sprite
    sprite: _NF/Structures/Storage/Crates/contraband1_crate.rsi
    layers:
    - state: icon
    - sprite: _NF/Interface/Misc/cargo_destination_icons.rsi
      state: cargo_other
      offset: 0.275,-0.265
      map: ["enum.TradeCrateVisualLayers.Icon"]
      visible: false
    - sprite: _NF/Interface/Misc/cargo_destination_icons.rsi
      state: cargo_priority_inactive
      offset: 0.025,-0.265
      map: ["enum.TradeCrateVisualLayers.Priority"]
      visible: false
    - state: paper
      sprite: Structures/Storage/Crates/labels.rsi
      offset: "-0.5,0"
      map: ["enum.PaperLabelVisuals.Layer"]
  - type: TradeCrate
    valueAtDestination: 65000
    valueElsewhere: 45000

- type: entity
  parent: [ CrateTradeBaseSecureContraband, BaseFactionGearTaxedT2 ]
  id: CrateTradeContrabandSecure2
  categories: [ HideSpawnMenu ]
  components:
  - type: Icon
    sprite: _NF/Structures/Storage/Crates/contraband2_crate.rsi
  - type: Sprite
    sprite: _NF/Structures/Storage/Crates/contraband2_crate.rsi
    layers:
    - state: icon
    - sprite: _NF/Interface/Misc/cargo_destination_icons.rsi
      state: cargo_other
      offset: 0.275,-0.265
      map: ["enum.TradeCrateVisualLayers.Icon"]
      visible: false
    - sprite: _NF/Interface/Misc/cargo_destination_icons.rsi
      state: cargo_priority_inactive
      offset: 0.025,-0.265
      map: ["enum.TradeCrateVisualLayers.Priority"]
      visible: false
    - state: paper
      sprite: Structures/Storage/Crates/labels.rsi
      offset: "-0.5,0"
      map: ["enum.PaperLabelVisuals.Layer"]
  - type: TradeCrate
    valueAtDestination: 90000
    valueElsewhere: 7500
    expressDeliveryDuration: 3600 # one hour, go go (timeout mostly for pirates & NFSD)
    expressOnTimeBonus: 10000
    expressLatePenalty: 75000

- type: entity
  parent: [ CrateTradeBaseSecureContraband, BaseFactionGearTaxedT2 ]
  id: CrateTradeContrabandSecure3
  categories: [ HideSpawnMenu ]
  components:
  - type: Icon
    sprite: _NF/Structures/Storage/Crates/contraband3_crate.rsi
  - type: Sprite
    sprite: _NF/Structures/Storage/Crates/contraband3_crate.rsi
    layers:
    - state: icon
    - sprite: _NF/Interface/Misc/cargo_destination_icons.rsi
      state: cargo_other
      offset: 0.275,-0.265
      map: ["enum.TradeCrateVisualLayers.Icon"]
      visible: false
    - sprite: _NF/Interface/Misc/cargo_destination_icons.rsi
      state: cargo_priority_inactive
      offset: 0.025,-0.265
      map: ["enum.TradeCrateVisualLayers.Priority"]
      visible: false
    - state: paper
      sprite: Structures/Storage/Crates/labels.rsi
      offset: "-0.5,0"
      map: ["enum.PaperLabelVisuals.Layer"]
  - type: TradeCrate
    valueAtDestination: 70000
    valueElsewhere: 4000
    expressDeliveryDuration: 3600 # one hour, go go (timeout mostly for pirates & NFSD)
    expressOnTimeBonus: 30000
    expressLatePenalty: 30000

- type: entity
  parent: [ CrateTradeBaseSecureContraband, BaseFactionGearTaxedT2 ]
  id: CrateTradeContrabandSecure4
  name: Donk Co. contraband crate
  categories: [ HideSpawnMenu ]
  components:
  - type: Icon
    sprite: _NF/Structures/Storage/Crates/donkco_crate.rsi
  - type: Sprite
    sprite: _NF/Structures/Storage/Crates/donkco_crate.rsi
    layers:
    - state: icon
    - sprite: _NF/Interface/Misc/cargo_destination_icons.rsi
      state: cargo_other
      offset: 0.275,-0.265
      map: ["enum.TradeCrateVisualLayers.Icon"]
      visible: false
    - sprite: _NF/Interface/Misc/cargo_destination_icons.rsi
      state: cargo_priority_inactive
      offset: 0.025,-0.265
      map: ["enum.TradeCrateVisualLayers.Priority"]
      visible: false
    - state: paper
      sprite: Structures/Storage/Crates/labels.rsi
      offset: "-0.5,0"
      map: ["enum.PaperLabelVisuals.Layer"]
  - type: TradeCrate
    valueAtDestination: 105000
    valueElsewhere: 5000
    expressDeliveryDuration: 36000 # one hour, go go (timeout mostly for pirates & NFSD)
    expressOnTimeBonus: 45000
    expressLatePenalty: 30000

- type: entity
  parent: [ CrateTradeBaseSecureContraband, BaseFactionGearTaxedT3 ] # the only t3
  id: CrateTradeContrabandSecure5
  name: Cybersun Industries contraband crate
  categories: [ HideSpawnMenu ]
  components:
  - type: Icon
    sprite: _NF/Structures/Storage/Crates/cybersun_crate.rsi
  - type: Sprite
    sprite: _NF/Structures/Storage/Crates/cybersun_crate.rsi
    layers:
    - state: icon
    - sprite: _NF/Interface/Misc/cargo_destination_icons.rsi
      state: cargo_other
      offset: 0.275,-0.265
      map: ["enum.TradeCrateVisualLayers.Icon"]
      visible: false
    - sprite: _NF/Interface/Misc/cargo_destination_icons.rsi
      state: cargo_priority_inactive
      offset: 0.025,-0.265
      map: ["enum.TradeCrateVisualLayers.Priority"]
      visible: false
    - state: paper
      sprite: Structures/Storage/Crates/labels.rsi
      offset: "-0.5,0"
      map: ["enum.PaperLabelVisuals.Layer"]
  - type: TradeCrate
    valueAtDestination: 105000
    valueElsewhere: 6000
    expressDeliveryDuration: 3600 # one hour, go go (timeout mostly for pirates & NFSD)
    expressOnTimeBonus: 45000
    expressLatePenalty: 30000
# endregion Contraband Crates
