- type: entity
  parent: BaseItem
  id: RMCVisorBase
  abstract: true
  components:
  - type: Sprite
    sprite: _RMC14/Objects/Clothing/helmet_visors.rsi
  - type: Item
    size: Tiny
  - type: ToggleVisor

- type: entity
  parent: [ RMCVisorBase, RMCPowerCellSlotUnremovableSuper ]
  id: RMCVisorNightVision
  name: night vision optic
  description: An insertable visor HUD into a standard UNMC helmet. This type gives a form of night vision and is standard issue in units with regular funding. It can be inserted into a recharger to recharge its internal battery.
  components:
  - type: Sprite
    state: nvg_sight
  - type: PowerCellDraw
    enabled: false
    drawRate: 76
  - type: Visor
    toggledSprite:
      sprite: _RMC14/Objects/Clothing/Head/Helmets/huds.rsi
      state: nvg_sight_right
    onIcon:
      sprite: _RMC14/Objects/Clothing/helmet_visors.rsi
      state: nvg_sight_down
  - type: NightVisionVisor
  - type: ToggleVisor
    ignoreRedundancy: true
  - type: ComponentToggler
    components:
    - type: PointLight
      enabled: true
      radius: 1.7
      softness: 1
      color: "#008000"

- type: entity
  parent: RMCVisorBase
  id: RMCVisorMedical
  name: basic medical optic
  description: An insertable visor HUD into a standard UNMC helmet. This type gives a heads-up display that shows data about nearby humanoids health status.
  components:
  - type: Sprite
    state: med_sight
  - type: Visor
    toggledSprite:
      sprite: _RMC14/Objects/Clothing/Head/Helmets/huds.rsi
      state: med_sight_right
    onIcon:
      sprite: _RMC14/Objects/Clothing/helmet_visors.rsi
      state: med_sight_down
  - type: ComponentToggler
    components:
    - type: ShowHealthBars
      damageContainers:
      - Biological
    - type: HolocardScanner
    - type: ShowHealthIcons
      damageContainers:
      - Biological

- type: entity
  parent: RMCVisorMedical
  id: RMCVisorMedicalAdvanced
  name: advanced medical optic
  description: An insertable visor HUD into a standard UNMC helmet. This type gives a heads-up display that shows data about nearby humanoids health status and research notes.
  components:
  - type: Sprite
    state: med_adv_sight
  - type: Visor
    onIcon:
      sprite: _RMC14/Objects/Clothing/helmet_visors.rsi
      state: med_adv_sight_down
    skillsRequired:
      all:
        RMCSkillMedical: 2
# TODO RMC14 view publications action

- type: entity
  parent: RMCVisorMedicalAdvanced
  id: RMCVisorMedicalAdvancedIntegrated
  suffix: Integrated
  components:
  - type: UnremovableVisor
  - type: Visor
    toggledSprite:
      sprite: _RMC14/Objects/Clothing/Head/Helmets/huds.rsi
      state: med_sight_left

- type: entity
  parent: RMCVisorBase
  id: RMCVisorWelding
  name: welding visor
  description: An insertable visor HUD into a standard UNMC helmet. This type protects the eyes from welders.
  components:
  - type: Sprite
    state: sight_empty
  - type: Visor
    toggledSprite:
      sprite: _RMC14/Objects/Clothing/Head/Helmets/huds.rsi
      state: weld_visor
    onIcon:
      sprite: _RMC14/Objects/Clothing/helmet_visors.rsi
      state: blank_hud_sight_down
  - type: ComponentToggler
    components:
    - type: EyeProtection
    - type: WeldingVision

- type: entity
  parent: RMCVisorWelding
  id: RMCVisorWeldingIntegrated
  suffix: Integrated
  components:
  - type: UnremovableVisor

- type: entity
  parent: RMCVisorBase
  id: RMCVisorSquad
  name: squad optic
  description: An insertable visor HUD into a standard UNMC helmet. This type gives a heads-up display of marine squads.
  components:
  - type: Sprite
    state: hud_sight
  - type: Visor
    toggledSprite:
      sprite: _RMC14/Objects/Clothing/Head/Helmets/huds.rsi
      state: hud_sight_right
    onIcon:
      sprite: _RMC14/Objects/Clothing/helmet_visors.rsi
      state: hud_sight_down
  - type: ComponentToggler
    components:
    - type: GrantMarineIcons

- type: entity
  parent: RMCVisorSquad
  id: RMCVisorSquadIntegrated
  suffix: Integrated
  components:
  - type: UnremovableVisor
  - type: Visor
    toggledSprite:
      sprite: _RMC14/Objects/Clothing/Head/Helmets/huds.rsi
      state: hud_sight_left

- type: entity
  parent: RMCVisorBase
  id: RMCVisorPilotBlack
  name: MK30 black flight visor
  description: A standard issue snap-on visor used by UNMC dropship pilots. Polarized to reduce glare and protect the eyes during atmospheric re-entry and orbital deployment.
  components:
  - type: Sprite
    state: po_visor
  - type: ToggleVisor
    ignoreRedundancy: true
  - type: ComponentToggler
    components:
    - type: PointLight # this exists purely to stop the game from crying that component toggler isnt on the visor.
      enabled: true
      radius: 1
      softness: 1
      color: "#000000"
  - type: Visor
    toggledSprite:
      sprite: _RMC14/Objects/Clothing/Head/Helmets/huds.rsi
      state: po_visor_black
    onIcon:
      sprite: _RMC14/Objects/Clothing/helmet_visors.rsi
      state: po_visor_down

- type: entity
  parent: RMCVisorPilotBlack
  id: RMCVisorPilotDarkblue
  name: MK30 dark blue flight visor
  components:
  - type: Sprite
    state: po_visor_darkblue
  - type: Visor
    toggledSprite:
      sprite: _RMC14/Objects/Clothing/Head/Helmets/huds.rsi
      state: po_visor_darkblue
    onIcon:
      sprite: _RMC14/Objects/Clothing/helmet_visors.rsi
      state: po_visor_darkblue_down

- type: entity
  parent: RMCVisorPilotBlack
  id: RMCVisorPilotLightblue
  name: MK30 light blue flight visor
  components:
  - type: Sprite
    state: po_visor_lightblue
  - type: Visor
    toggledSprite:
      sprite: _RMC14/Objects/Clothing/Head/Helmets/huds.rsi
      state: po_visor_lightblue
    onIcon:
      sprite: _RMC14/Objects/Clothing/helmet_visors.rsi
      state: po_visor_lightblue_down

- type: entity
  parent: RMCVisorPilotBlack
  id: RMCVisorPilotPurple
  name: MK30 purple flight visor
  components:
  - type: Sprite
    state: po_visor_purple
  - type: Visor
    toggledSprite:
      sprite: _RMC14/Objects/Clothing/Head/Helmets/huds.rsi
      state: po_visor_purple
    onIcon:
      sprite: _RMC14/Objects/Clothing/helmet_visors.rsi
      state: po_visor_purple_down

- type: entity
  parent: RMCVisorPilotBlack
  id: RMCVisorPilotRed
  name: MK30 red flight visor
  components:
  - type: Sprite
    state: po_visor_red
  - type: Visor
    toggledSprite:
      sprite: _RMC14/Objects/Clothing/Head/Helmets/huds.rsi
      state: po_visor_red
    onIcon:
      sprite: _RMC14/Objects/Clothing/helmet_visors.rsi
      state: po_visor_red_down

- type: entity
  parent: RMCVisorPilotBlack
  id: RMCVisorPilotYellow
  name: MK30 yellow flight visor
  components:
  - type: Sprite
    state: po_visor_yellow
  - type: Visor
    toggledSprite:
      sprite: _RMC14/Objects/Clothing/Head/Helmets/huds.rsi
      state: po_visor_yellow
    onIcon:
      sprite: _RMC14/Objects/Clothing/helmet_visors.rsi
      state: po_visor_yellow_down


# Factions variants

# RMC

- type: entity
  parent: RMCVisorSquad
  id: AU14VisorSquadRMC
  description: An insertable visor HUD into a standard RMC helmet.

- type: entity
  parent: RMCVisorSquadIntegrated
  id: AU14VisorSquadIntegratedRMC
  description: An insertable visor HUD into a standard RMC helmet.

- type: entity
  parent: RMCVisorMedical
  id: AU14VisorMedicalRMC
  name: HBVS visor
  description: One of the few successful components from the otherwise disastrous Commando Upgrade Program ran in the mid 2170s, the head-mounted, biomonitor vision system comes as standard in all RMC helmets.


- type: entity
  parent: RMCVisorMedicalAdvancedIntegrated
  id: AU14VisorMedicalAdvancedIntegratedRMC
  name: HBVS-A visor
  description: One of the few successful components from the otherwise disastrous Commando Upgrade Program ran in the mid 2170s, the head-mounted, biomonitor vision system comes as standard in all RMC helmets.
