Station maps (#13027)

This commit is contained in:
metalgearsloth
2023-04-13 16:21:24 +10:00
committed by GitHub
parent fc94d5245e
commit be4e69b0c0
45 changed files with 1210 additions and 153 deletions

View File

@@ -0,0 +1,5 @@
- type: entity
parent: BaseElectronics
id: StationMapCircuitboard
name: station map circuit board
description: A printed circuit board for a station map.

View File

@@ -0,0 +1,33 @@
- type: entity
id: StationMap
name: station map
description: Displays a readout of the current station.
parent: BaseItem
suffix: Handheld
components:
- type: StationMap
- type: Sprite
netsync: false
sprite: Objects/Devices/tablets.rsi
layers:
- state: tablet
- state: generic
shader: unshaded
- type: ActivatableUI
inHandsOnly: true
singleUser: true
key: enum.StationMapUiKey.Key
- type: Damageable
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: UserInterface
interfaces:
- key: enum.StationMapUiKey.Key
type: StationMapBoundUserInterface

View File

@@ -0,0 +1,76 @@
- type: entity
id: WallStationMapBroken
name: station map
description: A virtual map of the surrounding station.
suffix: Wall broken
placement:
mode: SnapgridCenter
components:
- type: InteractionOutline
- type: Clickable
- type: Sprite
netsync: false
sprite: Structures/Machines/station_map.rsi
drawdepth: WallMountedItems
layers:
- state: station_map_broken
- type: Damageable
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity
id: WallStationMap
name: station map
parent: WallStationMapBroken
suffix: Wall
placement:
mode: SnapgridCenter
components:
- type: StationMap
- type: Transform
anchored: true
- type: Sprite
layers:
- state: station_map0
- state: unshaded
map: [ "enum.PowerDeviceVisualLayers.Powered" ]
shader: unshaded
- type: ApcPowerReceiver
powerLoad: 200
priority: Low
- type: WallMount
arc: 360
- type: ExtensionCableReceiver
- type: ActivatableUIRequiresPower
- type: ActivatableUI
key: enum.StationMapUiKey.Key
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 100
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:SpawnEntitiesBehavior
spawn:
WallStationMapBroken:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: UserInterface
interfaces:
- key: enum.StationMapUiKey.Key
type: StationMapBoundUserInterface