- type: entity
  abstract: true
  parent: BaseItem
  id: BaseJammer
  name: radio jammer
  description: This device will disrupt any nearby outgoing radio communication as well as suit sensors when activated.
  components:
  - type: Sprite
    sprite: Objects/Devices/jammer.rsi
    layers:
    - state: jammer
    - state: jammer_high_charge
      map: ["enum.PowerDeviceVisualLayers.Powered"]
      shader: unshaded
      visible: false
  - type: RadioJammer
    settings:
    - wattage: 2
      range: 6
      message: radio-jammer-component-set-message-low
      name: radio-jammer-component-setting-low
    - wattage: 12
      range: 12
      message: radio-jammer-component-set-message-high
      name: radio-jammer-component-setting-high
  - type: Appearance
  - type: ItemToggle
  - type: GenericVisualizer
    visuals:
      enum.ToggleableVisuals.Enabled:
        enum.PowerDeviceVisualLayers.Powered:
          True: { visible: true }
          False: { visible: false }
  - type: BatteryVisuals
  - type: StaticPrice
    price: 1500

- type: entity
  name: radio jammer
  parent: [BaseJammer, PowerCellSlotMediumItem, BaseTraitorContraband] # starcup: shared contraband level with nt gear
  id: RadioJammer
  description: This device will disrupt any nearby outgoing and incoming radio communication as well as suit sensors when activated.
  components:
  - type: GenericVisualizer
    visuals:
      enum.BatteryVisuals.State:
        enum.PowerDeviceVisualLayers.Powered:
          Full: { state: jammer_high_charge }
          Neither: { state: jammer_medium_charge }
          Empty: { state: jammer_low_charge }
      enum.ToggleableVisuals.Enabled:
        enum.PowerDeviceVisualLayers.Powered:
          True: { visible: true }
          False: { visible: false }
  - type: ToggleCellDraw
  - type: BatteryVisuals
  - type: StaticPrice
    price: 1500

- type: entity
  parent: [BaseJammer, BaseXenoborgContraband]
  id: XenoborgRadioJammer
  name: xenoborg radio jammer
  components:
  - type: RadioJammer
    frequenciesExcluded:
    - 2002 # xenoborg radio
    - 2003 # mothership radio
    - 2004 # xenoborg network
    - 2005 # mothership network
