- type: entity
  parent: Clothing
  id: IDCardStandard
  name: identification card
  description: A card necessary to access various areas aboard the station.
  abstract: true
  components:
  # Sunrise added start
  - type: EmitSoundOnPickup
    sound:
      path: /Audio/_Sunrise/Items/Handling/ID/pickup.ogg
  - type: EmitSoundOnDrop
    sound:
      path: /Audio/_Sunrise/Items/Handling/ID/drop.ogg
  - type: EmitSoundOnLand
    sound:
      path: /Audio/_Sunrise/Items/Handling/ID/drop.ogg
  # Sunrise added end
  # Sunrise-Start
  - type: Sprite
    sprite: _Sunrise/Objects/Misc/id_cards.rsi # Sunrise-Edit
  - type: Clothing
    slots:
    - idcard
    sprite: _Sunrise/Objects/Misc/id_cards.rsi # Sunrise-Edit
  # Sunrise-End
  - type: Item
    size: Small
    heldPrefix: default
    storedRotation: -90
  - type: Access
  - type: IdCard
  - type: StationRecordKeyStorage
  - type: Tag
    tags:
    - DoorBumpOpener
    - WhitelistChameleon
    - WhitelistChameleonIdCard
  - type: StealTarget
    stealGroup: IDCard

#IDs with layers

- type: entity
  parent: IDCardStandard
  id: PassengerIDCard
  name: passenger ID card
  components:
  # Sunrise-Start
  - type: Sprite
    sprite: _Sunrise/Objects/Misc/id_cards.rsi
    layers:
    - state: default
    - sprite: &icon-rsi Interface/Misc/job_icons.rsi
      offset: &icon-offset -0.19, 0
  # Sunrise-End
      state: Passenger
  - type: PresetIdCard
    job: Passenger

#Command

- type: entity
  parent: [IDCardStandard, BaseGrandTheftContraband]
  id: CaptainIDCard
  name: captain ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: gold
    - state: department-side
      color: "#1b67a5"
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Captain
  - type: Item
    heldPrefix: gold
  - type: PresetIdCard
    job: Captain
  - type: Tag
    tags:
    - DoorBumpOpener
    - WhitelistChameleon
    - WhitelistChameleonIdCard
    - HighRiskItem
  - type: StealTarget
    stealGroup: CaptainIDCard

- type: entity
  parent: IDCardStandard
  id: HoPIDCard
  name: head of personnel ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: silver
    - state: department-side
      color: &color-service-top "#639137"
    - state: department-side-extra-gold
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: HeadOfPersonnel
  - type: Item
    heldPrefix: silver
  - type: PresetIdCard
    job: HeadOfPersonnel

- type: entity
  parent: IDCardStandard
  id: CEIDCard
  name: chief engineer ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: silver
    - state: department-side
      color: &color-engineering-top "#ffa62b"
    - state: department-side-extra-gold
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: ChiefEngineer
  - type: Item
    heldPrefix: silver
  - type: PresetIdCard
    job: ChiefEngineer

- type: entity
  parent: IDCardStandard
  id: CMOIDCard
  name: chief medical officer ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: silver
    - state: department-side
      color: &color-medical-top "#68aed6"
    - state: department-side-extra-gold
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: ChiefMedicalOfficer
  - type: Item
    heldPrefix: silver
  - type: PresetIdCard
    job: ChiefMedicalOfficer

- type: entity
  parent: IDCardStandard
  id: RDIDCard
  name: research director ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: silver
    - state: department-side
      color: &color-science-top "#a53aaa"
    - state: department-side-extra-gold
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: ResearchDirector
  - type: Item
    heldPrefix: silver
  - type: PresetIdCard
    job: ResearchDirector

- type: entity
  parent: IDCardStandard
  id: HoSIDCard
  name: head of security ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: silver
    - state: department-side
      color: &color-security-top "#cb0000"
    - state: department-side-extra-gold
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: HeadOfSecurity
  - type: Item
    heldPrefix: silver
  - type: PresetIdCard
    job: HeadOfSecurity

- type: entity
  parent: IDCardStandard
  id: QuartermasterIDCard
  name: quartermaster ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: silver
    - state: department-side
      color: &color-supply-top "#b18644"
    - state: department-side-extra-gold
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: QuarterMaster
  - type: Item
    heldPrefix: silver
  - type: PresetIdCard
    job: Quartermaster

#Engineering

- type: entity
  parent: IDCardStandard
  id: TechnicalAssistantIDCard
  name: technical assistant ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-engineering-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: TechnicalAssistant
  - type: PresetIdCard
    job: TechnicalAssistant

- type: entity
  parent: IDCardStandard
  id: EngineeringIDCard
  name: engineer ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-engineering-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: StationEngineer
  - type: PresetIdCard
    job: StationEngineer

- type: entity
  parent: IDCardStandard
  id: AtmosIDCard
  name: atmospheric technician ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-engineering-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: AtmosphericTechnician
  - type: PresetIdCard
    job: AtmosphericTechnician

- type: entity
  parent: EngineeringIDCard
  id: SeniorEngineerIDCard
  name: senior engineer ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-engineering-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: SeniorEngineer

#Medical

- type: entity
  parent: IDCardStandard
  id: MedicalInternIDCard
  name: medical intern ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-medical-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: MedicalIntern
  - type: PresetIdCard
    job: MedicalIntern

- type: entity
  parent: IDCardStandard
  id: MedicalIDCard
  name: medical ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-medical-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: MedicalDoctor
  - type: PresetIdCard
    job: MedicalDoctor

- type: entity
  parent: IDCardStandard
  id: ParamedicIDCard
  name: paramedic ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-medical-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Paramedic
  - type: PresetIdCard
    job: Paramedic

- type: entity
  parent: IDCardStandard
  id: ChemistIDCard
  name: chemist ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-medical-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Chemist
  - type: PresetIdCard
    job: Chemist

- type: entity
  parent: IDCardStandard
  id: PsychologistIDCard
  name: psychologist ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-medical-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Psychologist
  - type: PresetIdCard
    job: Psychologist

- type: entity
  parent: MedicalIDCard
  id: SeniorPhysicianIDCard
  name: senior physician ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-medical-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: SeniorPhysician

#Science

- type: entity
  parent: IDCardStandard
  id: ResearchAssistantIDCard
  name: research assistant ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-science-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: ResearchAssistant
  - type: PresetIdCard
    job: ResearchAssistant

- type: entity
  parent: IDCardStandard
  id: ResearchIDCard
  name: research ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-science-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Scientist
  - type: PresetIdCard
    job: Scientist

- type: entity
  parent: ResearchIDCard
  id: SeniorResearcherIDCard
  name: senior researcher ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-science-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: SeniorResearcher

#Security

- type: entity
  parent: IDCardStandard
  id: SecurityCadetIDCard
  name: security cadet ID card
  components:
  # Sunrise-Start
  - type: Sprite
    sprite: _Sunrise/Objects/Misc/id_cards.rsi
    layers:
    - state: default
    - state: department-side
      color: *color-security-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: SecurityCadet
  - type: PresetIdCard
    job: SecurityCadet

- type: entity
  parent: IDCardStandard
  id: SecurityIDCard
  name: security ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-security-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: SecurityOfficer
  - type: PresetIdCard
    job: SecurityOfficer

- type: entity
  parent: IDCardStandard
  id: WardenIDCard
  name: warden ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-security-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Warden
  - type: PresetIdCard
    job: Warden

- type: entity
  parent: IDCardStandard
  id: DetectiveIDCard
  name: detective ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-security-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Detective
  - type: PresetIdCard
    job: Detective

- type: entity
  parent: IDCardStandard
  id: BrigmedicIDCard
  name: brigmedic ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-security-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Brigmedic
  # Sunrise-Start
  - type: PresetIdCard
    job: Brigmedic
  # Sunrise-End

- type: entity
  parent: SecurityIDCard
  id: SeniorOfficerIDCard
  name: senior officer ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-security-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: SeniorOfficer

#Service

- type: entity
  parent: IDCardStandard
  id: ServiceWorkerIDCard
  name: service worker ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-service-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: ServiceWorker
  - type: PresetIdCard
    job: ServiceWorker

- type: entity
  parent: IDCardStandard
  id: ClownIDCard
  name: clown ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: clown-side
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Clown
  - type: PresetIdCard
    job: Clown

- type: entity
  parent: IDCardStandard
  id: MimeIDCard
  name: mime ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: "#2d2d2d"
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Mime
  - type: PresetIdCard
    job: Mime

- type: entity
  parent: IDCardStandard
  id: MusicianIDCard
  name: musician ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: "#6f56b8"
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Musician
  - type: PresetIdCard
    job: Musician

- type: entity
  parent: IDCardStandard
  id: ChaplainIDCard
  name: chaplain ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-service-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Chaplain
  - type: PresetIdCard
    job: Chaplain

- type: entity
  parent: IDCardStandard
  id: JanitorIDCard
  name: janitor ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-service-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Janitor
  - type: PresetIdCard
    job: Janitor

- type: entity
  parent: IDCardStandard
  id: BartenderIDCard
  name: bartender ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-service-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Bartender
  - type: PresetIdCard
    job: Bartender

- type: entity
  parent: IDCardStandard
  id: PunPunIDCard
  name: pun pun ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-service-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Bartender
  - type: PresetIdCard
    job: Bartender
    name: Pun Pun
  - type: Tag #  Ignore Chameleon tags
    tags:
    - DoorBumpOpener

- type: entity
  parent: IDCardStandard
  id: ChefIDCard
  name: chef ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-service-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Chef
  - type: PresetIdCard
    job: Chef

- type: entity
  parent: IDCardStandard
  id: BotanistIDCard
  name: botanist ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-service-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Botanist
  - type: PresetIdCard
    job: Botanist

- type: entity
  parent: IDCardStandard
  id: LibrarianIDCard
  name: librarian ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-service-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Librarian
  - type: PresetIdCard
    job: Librarian

- type: entity  # Sunrise-Start
  parent: IDCardStandard
  id: LawyerIDCard
  name: lawyer ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-service-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Lawyer
  - type: PresetIdCard
    job: Lawyer

- type: entity
  parent: IDCardStandard
  id: ReporterIDCard
  name: reporter ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-service-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Reporter
  - type: PresetIdCard
    job: Reporter

- type: entity
  parent: IDCardStandard
  id: BoxerIDCard
  name: boxer ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: default
    - state: department-side
      color: *color-service-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Boxer
  - type: PresetIdCard
    job: Boxer

- type: entity
  parent: IDCardStandard
  id: ZookeeperIDCard
  name: zookeeper ID card
  components:
  # Sunrise-Start
  - type: Sprite
    sprite: _Sunrise/Objects/Misc/id_cards.rsi
    layers:
    - state: default
    - state: department-side
      color: *color-service-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Zookeeper
  - type: PresetIdCard
    job: Zookeeper

#Supply

- type: entity
  parent: IDCardStandard
  id: CargoIDCard
  name: cargo ID card
  components:
  # Sunrise-Start
  - type: Sprite
    sprite: _Sunrise/Objects/Misc/id_cards.rsi
    layers:
    - state: default
    - state: department-side
      color: *color-supply-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: CargoTechnician
  - type: PresetIdCard
    job: CargoTechnician

- type: entity
  parent: IDCardStandard
  id: SalvageIDCard
  name: salvage ID card
  components:
  # Sunrise-Start
  - type: Sprite
    sprite: _Sunrise/Objects/Misc/id_cards.rsi
    layers:
    - state: default
    - state: department-side
      color: *color-supply-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: ShaftMiner
  - type: PresetIdCard
    job: SalvageSpecialist

#Misc.

- type: entity
  parent: IDCardStandard
  id: PrisonerIDCard
  name: prisoner ID card
  description: A generically printed ID card for scummy prisoners.
  components:
  - type: Sprite
    sprite: _Sunrise/Objects/Misc/id_cards.rsi # Sunrise-Edit
    layers:
    - state: orange
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Prisoner
  - type: Item
    heldPrefix: orange
  - type: Access
    tags:
    - GenpopEnter
  - type: GenpopIdCard
  - type: IdCard
    jobTitle: job-name-prisoner
    jobIcon: JobIconPrisoner
    canMicrowave: false
  - type: ExpireIdCard
    expireMessage: genpop-prisoner-id-expire
    expiredAccess:
    - GenpopLeave
  - type: Speech
    speechVerb: Robotic
  - type: Tag
    tags:
    - DoorBumpOpener
    - WhitelistChameleon
    - WhitelistChameleonIdCard
    - Recyclable
  - type: StaticPrice # these are infinitely producible.
    price: 0

- type: entity
  parent: IDCardStandard
  id: CluwneIDCard
  name: cluwne ID card
  suffix: Unremoveable
  components:
  # Sunrise-Start
  - type: Sprite
    sprite: _Sunrise/Objects/Misc/id_cards.rsi
    layers:
    - state: default
    - state: department-side
      color: "#5dc574"
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Cluwne
  - type: IdCard
    jobTitle: job-title-cluwne
    jobIcon: JobIconCluwne
  - type: Unremoveable

- type: entity
  parent: IDCardStandard
  id: VisitorIDCard
  name: visitor ID card
  components:
  - type: Sprite
    layers:
    - state: default
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Visitor
  - type: IdCard
    jobTitle: job-title-visitor
    jobIcon: JobIconVisitor
  - type: PresetIdCard
    job: Visitor

#Antags

- type: entity
  name: passenger ID card
  parent: [IDCardStandard, BaseChameleon]
  id: AgentIDCard
  suffix: Agent
  components:
  - type: PresetIdCard
    job: Passenger
    setAccess: false
  - type: Access
    tags:
    - Maintenance
    - SyndicateAgent
  - type: Sprite
    sprite: _Sunrise/Objects/Misc/id_cards.rsi # Sunrise-Edit
    layers:
    - state: default
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Passenger
  - type: AgentIDCard
  - type: UIRequiresLock
  - type: ActivatableUI
    key: enum.AgentIDCardUiKey.Key
    verbText: agent-id-open-ui-verb
  - type: Tag
    tags:
    - DoorBumpOpener
  - type: ChameleonClothing
    slot: [idcard]
    default: PassengerIDCard
    requireTag: WhitelistChameleonIdCard
  - type: UserInterface
    interfaces:
      enum.AgentIDCardUiKey.Key:
        type: AgentIDCardBoundUserInterface
      enum.ChameleonUiKey.Key:
        type: ChameleonBoundUserInterface
  # Sunrise-Start
  - type: Biocode
    factions:
    - Syndicate
    - Thief
  # Sunrise-End

- type: entity
  name: passenger ID card
  parent: AgentIDCard
  id: NukieAgentIDCard
  suffix: Nukie
  components:
  - type: Access
    tags:
    - Maintenance
    - SyndicateAgent
    - NuclearOperative

- type: entity
  parent: [ IDCardStandard, BaseSyndicateContraband ]
  id: SyndicateIDCard
  name: syndicate ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: black
    - state: department-side
      color: &color-syndicate-top "#e80c0c"
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Syndicate
  - type: Item
    heldPrefix: black
  - type: Access
    tags:
    - NuclearOperative
    - SyndicateAgent

- type: entity
  parent: [ SyndicateIDCard, BaseSyndicateContraband ]
  id: SyndiOperativeIDCard
  name: syndicate operative ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: black
    - state: department-side
      color: *color-syndicate-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: SyndicateOperative
  - type: AgentIDCard

- type: entity
  parent: [ SyndiOperativeIDCard, BaseSyndicateContraband ]
  id: SyndiCorpsmanIDCard
  name: syndicate corpsman ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: black
    - state: department-side
      color: *color-syndicate-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: SyndicateCorpsman

- type: entity
  parent: [ SyndiOperativeIDCard, BaseSyndicateContraband ]
  id: SyndiCommanderIDCard
  name: syndicate commander ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: black
    - state: department-side
      color: *color-syndicate-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: SyndicateCommander

- type: entity
  parent: [ IDCardStandard, BaseMajorContraband ]
  id: PirateIDCard
  name: pirate ID card
  components:
  - type: Sprite
    layers:
    - state: pirate
  - type: Item
    heldPrefix: orange #this is close enough to the weird puce color pirate IDs have going on
  - type: Access
    tags:
    - NuclearOperative
    - SyndicateAgent

- type: entity
  parent: IDCardStandard
  id: WizardIDCard
  name: wizard ID card
  components:
  - type: Sprite
    layers:
    - state: wizard
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Wizard
  - type: Item
    heldPrefix: green
  - type: Access
    tags:
    - Wizard
    - External
    - Maintenance

#ERT/Centcomm

- type: entity
  parent: IDCardStandard
  id: CentcomIDCard
  name: command officer ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: blue
    - state: department-side
      color: &color-centcomm-top "#134975"
    - state: department-side-extra-gold
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Nanotrasen
  - type: Item
    heldPrefix: blue
  - type: PresetIdCard
    job: CentralCommandOfficial

- type: entity
  parent: IDCardStandard
  id: ERTLeaderIDCard
  name: ERT leader ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: gold
    - state: department-side
      color: *color-centcomm-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: ERTLeader
  - type: Item
    heldPrefix: gold
  - type: PresetIdCard
    job: ERTLeader

- type: entity
  parent: IDCardStandard
  id: ERTChaplainIDCard
  name: ERT chaplain ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: blue
    - state: department-side
      color: *color-service-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: ERTChaplain
  - type: Item
    heldPrefix: blue
  - type: PresetIdCard
    job: ERTChaplain

- type: entity
  parent: IDCardStandard
  id: ERTEngineerIDCard
  name: ERT engineer ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: blue
    - state: department-side
      color: *color-engineering-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: ERTEngineer
  - type: Item
    heldPrefix: blue
  - type: PresetIdCard
    job: ERTEngineer

- type: entity
  parent: IDCardStandard
  id: ERTJanitorIDCard
  name: ERT janitor ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: blue
    - state: department-side
      color: *color-service-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: ERTJanitor
  - type: Item
    heldPrefix: blue
  - type: PresetIdCard
    job: ERTJanitor

- type: entity
  parent: IDCardStandard
  id: ERTMedicIDCard
  name: ERT medic ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: blue
    - state: department-side
      color: *color-medical-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: ERTMedical
  - type: Item
    heldPrefix: blue
  - type: PresetIdCard
    job: ERTMedical

- type: entity
  parent: IDCardStandard
  id: ERTSecurityIDCard
  name: ERT security ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: blue
    - state: department-side
      color: *color-security-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: ERTSecurity
  - type: Item
    heldPrefix: blue
  - type: PresetIdCard
    job: ERTSecurity

- type: entity
  parent: IDCardStandard
  id: CentcomIDCardDeathsquad
  name: death squad ID card
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: blue
    - state: department-side
      color: *color-centcomm-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: DeathSquad
  - type: PresetIdCard
    job: DeathSquad

- type: entity
  parent: IDCardStandard
  id: CBURNIDcard
  name: CBURN ID card
  suffix: CBURN
  components:
  # Sunrise-Start
  - type: Sprite
    layers:
    - state: blue
    - state: department-side
      color: *color-centcomm-top
  # Sunrise-End
    - sprite: *icon-rsi
      offset: *icon-offset
      state: CBURN
  - type: Item
    heldPrefix: blue
  - type: PresetIdCard
    job: CBURN

- type: entity
  parent: IDCardStandard
  id: UniversalIDCard
  name: universal ID card
  suffix: Admin
  description: An ID card that gives you access beyond your wildest dreams.
  components:
  # Sunrise-Start
  - type: Sprite
    sprite: _Sunrise/Objects/Misc/id_cards.rsi
    layers:
    - state: green
    - sprite: *icon-rsi
      offset: *icon-offset
      state: Admin
  - type: Clothing
    sprite: _Sunrise/Objects/Misc/id_cards.rsi
  # Sunrise-Start
  - type: Item
    heldPrefix: green
  - type: IdCard
    jobTitle: job-title-universal
    jobIcon: JobIconAdmin
  - type: Access
    groups:
    - AllAccess
    - Silicon
    tags:
    - CentralCommand
    - NuclearOperative
    - SyndicateAgent
    - Wizard
    - Xenoborg
  - type: Tag #  Ignore Chameleon tags
    tags:
    - DoorBumpOpener
  - type: AgentIDCard
  - type: ActivatableUI
    key: enum.AgentIDCardUiKey.Key
    inHandsOnly: true
  - type: UserInterface
    interfaces:
      enum.AgentIDCardUiKey.Key:
        type: AgentIDCardBoundUserInterface
