- 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: 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: 2500
    valueElsewhere: 1200
    expressDeliveryDuration: 1680 # twenty-eight minutes, go go (worst distance is ~6.5 km trade-cargo A, then 12 km to cargo b, 15.4 min at 20 m/s, giving ~10 minutes in adverse conditions for cargo pickup and dropoff)
    expressOnTimeBonus: 1500
    expressLatePenalty: 1500 # 0/1000
  - 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
  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: 5000
    valueElsewhere: 2500

- type: entity
  parent: CrateTradeBaseSecureContraband
  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: 6000
    valueElsewhere: 2500
    expressDeliveryDuration: 3600 # one hour, go go (timeout mostly for pirates & NFSD)
    expressOnTimeBonus: 2000
    expressLatePenalty: 1500

- type: entity
  parent: CrateTradeBaseSecureContraband
  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: 8000
    valueElsewhere: 4000
    expressDeliveryDuration: 3600 # one hour, go go (timeout mostly for pirates & NFSD)
    expressOnTimeBonus: 4000
    expressLatePenalty: 3000

- type: entity
  parent: CrateTradeBaseSecureContraband
  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: 12000
    valueElsewhere: 5000
    expressDeliveryDuration: 3600 # one hour, go go (timeout mostly for pirates & NFSD)
    expressOnTimeBonus: 6000
    expressLatePenalty: 3000

- type: entity
  parent: CrateTradeBaseSecureContraband
  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: 12000
    valueElsewhere: 6000
    expressDeliveryDuration: 3600 # one hour, go go (timeout mostly for pirates & NFSD)
    expressOnTimeBonus: 6000
    expressLatePenalty: 3000
# endregion Contraband Crates
