# ENGINEERING

# Tools
- type: entity
  parent: ColMarTechBaseAnchorable
  id: CMVendorTool
  name: Tool Storage Machine
  description: A large storage machine containing various tools and devices for general repair.
  components:
  - type: Sprite
    sprite: _RMC14/Structures/Machines/VendingMachines/tool.rsi
    layers:
    - state: "off"
      map: [ "enum.VendingMachineVisualLayers.Base" ]
    - state: "normal-unshaded"
      map: [ "enum.VendingMachineVisualLayers.BaseUnshaded" ]
      shader: unshaded
  - type: Corrodible
    timeToApply: 4
    structure: true
  - type: AccessReader
    access: [["CMAccessCombatTechPrep"], ["CMAccessEngineering"], ["CMAccessColonyEngineering"]]
  - type: CMAutomatedVendor
    access:
    - "CMAccessCombatTechPrep"
    - "CMAccessEngineering"
    - "CMAccessColonyEngineering"
    hackable: true
    sections:
    - name: Equipment
      entries:
      - id: RMCFlashlight
        amount: 10
      - id: RMCSentryLaptop
        amount: 4
      - id: RMCHardhatBlue
        amount: 4
      - id: CMHandsInsulated
        amount: 4
      - id: CMBeltUtility
        amount: 4
      - id: RMCWeldingGoggles
        amount: 4
      - id: RMCHelmetWelding
        amount: 4
      - id: RMCEngineerKit
        amount: 2
    - name: Scanners
      entries:
      #Atmos scanner
      #Demo scanner
      #Meson scanner
      #Reagent scanner
      - id: CMTRayScanner
        amount: 4
    - name: Tools
      entries:
      - id: CMWelder
        amount: 4
      - id: CMCrowbar
        amount: 4
      - id: CMWelderSmall
        amount: 2
      - id: CMScrewdriver
        amount: 4
      - id: CMWirecutter
        amount: 4
      - id: CMWrench
        amount: 4
      - id: RMCLightReplacer
        amount: 6

# Circuits
- type: entity
  parent: CMVendorTool
  id: CMVendorCircuits
  name: Circuitboard Vendor
  description: A safe storage for pre-programmed circuit boards, it has an internal gyroscope to keep any external force from moving the boards, thick insulation and a custom 2.1mm UPS port for charging various We-Yu exclusive devices (sold separately).
  components:
  - type: Sprite
    sprite: _RMC14/Structures/Machines/VendingMachines/robotics.rsi
  - type: CMAutomatedVendor
    hackable: true
    sections:
    - name: Circuitboards
      entries:
#     - id: RMCFireAlarmCircuitboard
#       amount: 5
#     - id: RMCTelecomServerCircuitboard
#       amount: 1
#     - id: RMCCrewMonitoringCircuitboard
#       amount: 2
#     - id: RMCIDComputerConsoleCircuitboard
#       amount: 2
#     - id: RMCSecurityRecordsCircuitboard
#       amount: 2
#     - id: RMCSupplyOrderingCircuitboard
#       amount: 2
#     - id: RMCReserachDataTerminalCircuitboard
#       amount: 2
#     - id: RMCPacmanGeneratorCircuitboard
#       amount: 1
#     - id: RMCAirAlarmCircuitboard
#       amount: 2
#     - id: RMCSecurityCameraMonitorCircuitboard
#       amount: 2
#     - id: RMCStationAlertsConsoleCircuitboard
#       amount: 2
#     - id: RMCArcadeCircuitboard
#       amount: 2
#     - id: RMCAtmosphericConsoleCircuitboard
#       amount: 2
      - id: DoorElectronics
        amount: 14
      - id: CMAPCElectronics
        amount: 14
    - name: Machineboards
      entries:
      - id: RMCCircuitboardTelevision
        amount: 12
      - id: CMSMESMachineCircuitboard
        amount: 4
      - id: CMAutolatheMachineCircuitboard
        amount: 5
#      - id: CMCircuitboardDispenserBooze
#        amount: 2
#      - id: CMCircuitboardDispenserSoda
#        amount: 2
#      - id: CMCircuitboardMicrowave
#        amount: 2
#      - id: CMCircuitboardChemMaster
#        amount: 1
#      - id: CMCircuitboardDispenserChem
#        amount: 1

# Electronics
- type: entity
  parent: CMVendorTool
  id: CMVendorElectronics
  name: Electronics Vendor
  description: Spare tool vendor. What? Did you expect some witty description?
  components:
  - type: Sprite
    sprite: _RMC14/Structures/Machines/VendingMachines/engivend.rsi
  - type: CMAutomatedVendor
    hackable: true
    sections:
    - name: Tools
      entries:
      - id: RMCCableCoil
        amount: 15
      - id: CMMultitool
        amount: 6
    - name: Batteries
      entries:
      - id: RMCPowerCellHigh
        amount: 6
      - id: RMCPowerCell
        amount: 14
    - name: Circuitboards
      entries:
      - id: DoorElectronics
        amount: 8
      - id: CMAPCElectronics
        amount: 8
    - name: Machineboards
      entries:
      - id: RMCCircuitboardTelevision
        amount: 4
      - id: CMAutolatheMachineCircuitboard
        amount: 1
      - id: CMSMESMachineCircuitboard
        amount: 1

# Components
- type: entity
  parent: CMVendorTool
  id: CMVendorComponent
  name: Component Storage Machine
  description: A large storage machine containing various components.
  components:
  - type: Sprite
    sprite: _RMC14/Structures/Machines/VendingMachines/engi.rsi
  - type: CMAutomatedVendor
    hackable: true
    sections:
    - name: Assembly Components
      entries:
      - id: Igniter
        amount: 8
      - id: RMCTimerTrigger
        amount: 4
      - id: ProximitySensor
        amount: 4
      - id: RemoteSignaller
        amount: 4
    - name: Container
      entries:
      - id: RMCBucket
        amount: 6
      - id: CMBucketMop
        amount: 2
    - name: Stock Parts
      entries:
      - id: CMStockPartMatterBin
        amount: 8
      - id: CMStockPartManipulatorMicro
        amount: 8
      - id: CMStockPartCapacitor
        amount: 8
    #TODO Console screen, scanning module


# Science
- type: entity
  parent: ColMarTechBaseAnchorable
  id: CMVendorScience
  name: We-Ya SciVend
  description: Vendor containing basic equipment for your experiments.
  components:
  - type: Sprite
    sprite: _RMC14/Structures/Machines/VendingMachines/robotics.rsi
    layers:
    - state: "off"
      map: [ "enum.VendingMachineVisualLayers.Base" ]
    - state: "normal-unshaded"
      map: [ "enum.VendingMachineVisualLayers.BaseUnshaded" ]
      shader: unshaded
  - type: AccessReader
    access: [["CMAccessResearch"]]
  - type: CMAutomatedVendor
    access:
    - "CMAccessResearch"
    hackable: true
    sections:
    - name: Equipment
      entries:
      - id: RMCHoodBioGeneral # TODO scientist bio hood
        amount: 4
      - id: RMCSuitBioGeneral # TODO scientist bio suit
        amount: 4
      - id: CMJumpsuitResearch
        amount: 4
    - name: Assembly Components
      entries:
      - id: Igniter
        amount: 8
      - id: ProximitySensor
        amount: 6
      - id: RemoteSignaller
        amount: 10
      # Tank transfer valve
      - id: RMCTimerTrigger
        amount: 6

# Robotics
- type: entity
  parent: CMVendorScience
  id: CMVendorRobotics
  name: Robotech Deluxe
  description: All the tools you need to create your own robot army.
  components:
  - type: CMAutomatedVendor
    hackable: true
    sections:
    - name: Equipment
      entries:
      # Labcoat
      - id: CMMaskGasMedical
        amount: 4
      # Roboticist Jumpsuit
    - name: Tools
      entries:
      - id: RMCCableCoil
        amount: 15
      - id: SawElectric
        amount: 5
      - id: CMCrowbar
        amount: 4
      - id: CMScalpel
        amount: 4
      - id: CMScrewdriver
        amount: 4
    - name: Assembly Components
      entries:
      - id: CMFlash
        amount: 4
      - id: RMCPowerCellHigh
        amount: 4
      - id: RMCPowerCell
        amount: 8
      - id: ProximitySensor
        amount: 10
      - id: RemoteSignaller
        amount: 6
    - name: Miscellaneous
      entries:
      - id: NitrousOxideTankFilled
        amount: 3
      - id: CMHealthAnalyzer
        amount: 5
