- type: entity
  parent: [BaseItem, DiskSounds] # Sunrise-Edit
  id: ResearchDisk
  name: research point disk (1000)
  description: A disk for the R&D server containing 1000 points.
  components:
  - type: Sprite
    sprite: Objects/Specific/Research/researchdisk.rsi
    state: icon
  - type: ResearchDisk
  - type: GuideHelp
    guides:
    - Science

- type: entity
  parent: ResearchDisk
  id: ResearchDisk5000
  name: research point disk (5000)
  description: A disk for the R&D server containing 5000 points.
  components:
  - type: ResearchDisk
    points: 5000

- type: entity
  parent: ResearchDisk
  id: ResearchDisk10000
  name: research point disk (10000)
  description: A disk for the R&D server containing 10000 points.
  components:
  - type: ResearchDisk
    points: 10000

- type: entity
  parent: ResearchDisk
  id: ResearchDiskDebug
  name: research point disk
  suffix: DEBUG, DO NOT MAP
  categories: [ DoNotMap, Debug ] # Sunrise-Edit
  description: A disk for the R&D server containing all the points you could ever need.
  components:
  - type: ResearchDisk
    unlockAllTech: true

- type: entity
  parent: [BaseItem, DiskSounds] # Sunrise-Edit
  id: TechnologyDisk
  name: technology disk
  components:
  - type: Sprite
    sprite: Objects/Misc/module.rsi
    layers:
    - state: datadisk_base
      map: [ "base" ]
    - state: datadisk_label
    - state: datadisk_t2_marks
      shader: unshaded
      map: [ "t2_marks" ]
      visible: false
    - state: datadisk_t2_border
      map: [ "t2_border" ]
      visible: false
    - state: datadisk_t3_marks
      map: [ "t3_marks" ]
      shader: unshaded
      visible: false
    - state: datadisk_t3_border
      map: [ "t3_border" ]
      visible: false
  - type: Appearance
  - type: GenericVisualizer
    visuals:
      enum.TechDiskVisuals.Discipline:
        base:
          Industrial: { color: "#eeac34" }
          Arsenal: { color: "#dc373b" }
          Experimental: { color: "#9a6ef0" }
          CivilianServices: { color: "#7ecd48" }

      enum.TechDiskVisuals.Tier:
        t2_marks:
          2: { visible: true }
        t2_border:
          2: { visible: true }
        t3_marks:
          3: { visible: true }
        t3_border:
          3: { visible: true }
  # Sunrise added start - сохраняем компактный размер диска
  - type: Item
    size: Tiny
  # Sunrise added end
  - type: StealTarget
    stealGroup: TechnologyDisk
  - type: TechnologyDisk

# random tech disks by tier
- type: entity
  parent: TechnologyDisk
  id: TechnologyDiskT1
  suffix: Tier 1
  components:
  - type: TechnologyDisk
    tier: 1

- type: entity
  parent: TechnologyDisk
  id: TechnologyDiskT2
  suffix: Tier 2
  components:
  - type: TechnologyDisk
    tier: 2

- type: entity
  parent: TechnologyDisk
  id: TechnologyDiskT3
  suffix: Tier 3
  components:
  - type: TechnologyDisk
    tier: 3

# random tech disks by discipline
- type: entity
  parent: TechnologyDisk
  id: TechnologyDiskIndustrial
  suffix: Industrial
  components:
  - type: TechnologyDisk
    discipline: Industrial

- type: entity
  parent: TechnologyDisk
  id: TechnologyDiskArsenal
  suffix: Arsenal
  components:
  - type: TechnologyDisk
    discipline: Arsenal

- type: entity
  parent: TechnologyDisk
  id: TechnologyDiskExperimental
  suffix: Experimental
  components:
  - type: TechnologyDisk
    discipline: Experimental

- type: entity
  parent: TechnologyDisk
  id: TechnologyDiskCivilianServices
  suffix: Civilian Services
  components:
  - type: TechnologyDisk
    discipline: CivilianServices

- type: entity
  parent: TechnologyDisk
  id: TechnologyDiskRare
  suffix: rare.
  components:
  - type: TechnologyDisk
    tierWeightPrototype: RareTechDiskTierWeights
