# begin starcup changes: disable shipyard console
# - type: entity
#   parent: BaseComputer
#   id: ComputerShipyard
#   name: shipyard console
#   description: Used to purchase and sell shuttles
#   components:
#   - type: ShipyardConsole
#   - type: AccessReader
#     access: [[ Captain ]]
#   - type: ActivatableUI
#     key: enum.ShipyardConsoleUiKey.Key
#   - type: UserInterface
#     interfaces:
#       enum.ShipyardConsoleUiKey.Key:
#         type: ShipyardConsoleBoundUserInterface
#   - type: Computer
#     board: ShipyardComputerCircuitboard
#   - type: PointLight
#     radius: 1.5
#     energy: 1.6
#     color: "#b89f25"
#   - type: Sprite
#     layers:
#     - map: ["computerLayerBody"]
#       state: computer
#     - map: ["computerLayerKeyboard"]
#       state: generic_keyboard
#     - map: ["computerLayerScreen"]
#       state: request
#     - map: ["computerLayerKeys"]
#       state: tech_key
# end starcup changes

- type: entity
  abstract: true
  parent: BaseComputer
  id: BaseComputerDocking
  components:
  - type: Sprite
    layers:
    - map: [ "computerLayerBody" ]
      state: computer
    - map: [ "computerLayerKeyboard" ]
      state: generic_keyboard
    - map: [ "computerLayerScreen" ]
      state: shuttle
    - map: ["computerLayerKeys" ]
      state: generic_keys
    - map: [ "enum.WiresVisualLayers.MaintenancePanel" ]
      state: generic_panel_open
  - type: ActivatableUI
    key: enum.DockingConsoleUiKey.Key
  - type: UserInterface
    interfaces:
      enum.DockingConsoleUiKey.Key:
        type: DockingConsoleBoundUserInterface
      enum.WiresUiKey.Key:
        type: WiresBoundUserInterface
  - type: WorldLoader
    radius: 256
  - type: DockingConsole
  - type: PointLight
#    radius: 1.5  # starcup
#    energy: 1.6  # starcup
    color: "#43ccb5"

- type: entity
  parent: BaseComputerDocking
  id: ComputerShuttleMining
  name: mining shuttle console
  description: Used to pilot the mining shuttle to and from the mining base.
  components:
  - type: DockingConsole
    windowTitle: mining-console-window-title
    dockTag: DockMining
    shuttleWhitelist:
      components:
      - MiningShuttle
  - type: Computer
    board: MiningShuttleConsoleCircuitboard
  - type: AccessReader
    access:
    - [ Salvage ]
  - type: PointLight # starcup
    color: "#36bed9"

- type: entity
  parent: ComputerShuttleMining
  id: ComputerShuttleMiningGlacier
  name: surface shuttle console
  description: Used to fly passengers to and from the surface.
  components:
  - type: DockingConsole
    windowTitle: surface-console-window-title
  - type: AccessReader
    access:
    - [ Cargo ]
  # lets hope nobody deconstructs it to reset the name + access...
  - type: PointLight # starcup
    color: "#36bed9"
