Add telecommunication server (#14415)

This commit is contained in:
Slava0135
2023-03-07 00:11:36 +03:00
committed by GitHub
parent d584537dac
commit e4b1a363f5
14 changed files with 216 additions and 53 deletions

View File

@@ -376,6 +376,7 @@
- SignalTrigger
- VoiceTrigger
- TimerTrigger
- TelecomServerCircuitboard
- type: technology
name: technologies-electrical-engineering

View File

@@ -762,3 +762,18 @@
Amount: 1
DefaultPrototype: Beaker
ExamineName: Glass Beaker
- type: entity
id: TelecomServerCircuitboard
parent: BaseMachineCircuitboard
name: telecommunication server machine board
description: A machine printed circuit board for an telecommunication server
components:
- type: MachineBoard
prototype: TelecomServer
requirements:
Capacitor: 1
ScanningModule: 2
materialRequirements:
Steel: 1
Cable: 2

View File

@@ -326,6 +326,7 @@
- TraversalDistorterMachineCircuitboard
- BoozeDispenserMachineCircuitboard
- SodaDispenserMachineCircuitboard
- TelecomServerCircuitboard
- type: MaterialStorage
whitelist:
tags:

View File

@@ -0,0 +1,81 @@
- type: entity
parent: [ BaseMachinePowered, ConstructibleMachine ]
id: TelecomServer
name: telecommunication server
description: When powered and filled with encryption keys it allows radio headset communication
components:
- type: Sprite
sprite: Structures/Machines/telecomms.rsi
snapCardinals: true
netsync: false
layers:
- state: icon
- state: unlit
shader: unshaded
map: ["enum.PowerDeviceVisualLayers.Powered"]
- state: panel
map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: GenericVisualizer
visuals:
enum.PowerDeviceVisuals.Powered:
enum.PowerDeviceVisualLayers.Powered:
True: { visible: true }
False: { visible: false }
- type: Appearance
- type: WiresVisuals
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.4,-0.4,0.4,0.4"
density: 190
mask:
- MachineMask
layer:
- MachineLayer
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:ChangeConstructionNodeBehavior
node: machineFrame
- !type:DoActsBehavior
acts: ["Destruction"]
- type: Machine
board: TelecomServerCircuitboard
- type: Wires
BoardName: "TelecomServer"
LayoutId: TelecomServer
- type: Transform
anchored: true
- type: Pullable
- type: EncryptionKeyHolder
keysExtractionMethod: Prying
keySlots: 10
- type: TelecomServer
- type: ContainerContainer
containers:
key_slots: !type:Container
machine_board: !type:Container
machine_parts: !type:Container
- type: entity
parent: TelecomServer
id: TelecomServerFilled
suffix: Filled
components:
- type: ContainerFill
containers:
key_slots:
- EncryptionKeyCommon
- EncryptionKeyCargo
- EncryptionKeyEngineering
- EncryptionKeyMedical
- EncryptionKeyScience
- EncryptionKeySecurity
- EncryptionKeyService
- EncryptionKeyCommand

View File

@@ -527,3 +527,11 @@
materials:
Steel: 100
Glass: 900
- type: latheRecipe
id: TelecomServerCircuitboard
result: TelecomServerCircuitboard
completetime: 4
materials:
Steel: 100
Glass: 900