Power cell slot QOL (#15373)

This commit is contained in:
metalgearsloth
2023-04-23 12:25:12 +10:00
committed by GitHub
parent abc84070c6
commit a4dfe8beed
17 changed files with 544 additions and 264 deletions

View File

@@ -1,8 +1,10 @@
- type: entity
id: StationMap
id: HandheldStationMap
name: station map
description: Displays a readout of the current station.
parent: BaseItem
parent:
- BaseItem
- PowerCellSlotSmallItem
suffix: Handheld
components:
- type: StationMap
@@ -13,6 +15,10 @@
- state: tablet
- state: generic
shader: unshaded
- type: PowerCellDraw
drawRate: 0
useRate: 20
- type: ActivatableUIRequiresPowerCell
- type: ActivatableUI
inHandsOnly: true
singleUser: true

View File

@@ -1,12 +1,18 @@
- type: entity
name: handheld crew monitor
parent: BaseItem
parent:
- BaseItem
- PowerCellSlotSmallItem
id: HandheldCrewMonitor
description: A hand-held crew monitor displaying the status of suit sensors.
components:
- type: Sprite
sprite: Objects/Specific/Medical/handheldcrewmonitor.rsi
state: scanner
- type: PowerCellDraw
drawRate: 0
useRate: 20
- type: ActivatableUIRequiresPowerCell
- type: ActivatableUI
key: enum.CrewMonitoringUIKey.Key
closeOnHandDeselect: false

View File

@@ -1,6 +1,8 @@
- type: entity
name: health analyzer
parent: BaseItem
parent:
- BaseItem
- PowerCellSlotSmallItem
id: HandheldHealthAnalyzer
description: A hand-held body scanner capable of distinguishing vital signs of the subject.
components:
@@ -8,6 +10,10 @@
sprite: Objects/Specific/Medical/healthanalyzer.rsi
netsync: false
state: analyzer
- type: PowerCellDraw
drawRate: 0
useRate: 20
- type: ActivatableUIRequiresPowerCell
- type: ActivatableUI
key: enum.HealthAnalyzerUiKey.Key
closeOnHandDeselect: false

View File

@@ -56,3 +56,36 @@
storagebase: !type:Container
ents: []
# PowerCellSlot parents
- type: entity
name: a
id: PowerCellSlotSmallItem
abstract: true
components:
- type: ContainerContainer
containers:
cell_slot: !type:ContainerSlot { }
- type: PowerCellSlot
cellSlotId: cell_slot
- type: ItemSlots
slots:
cell_slot:
name: power-cell-slot-component-slot-name-default
startingItem: PowerCellSmall
- type: entity
name: a
id: PowerCellSlotMediumItem
abstract: true
components:
- type: ContainerContainer
containers:
cell_slot: !type:ContainerSlot { }
- type: PowerCellSlot
cellSlotId: cell_slot
- type: ItemSlots
slots:
cell_slot:
name: power-cell-slot-component-slot-name-default
startingItem: PowerCellMedium

View File

@@ -1,5 +1,5 @@
- type: entity
id: WallStationMapBroken
id: StationMapBroken
name: station map
description: A virtual map of the surrounding station.
suffix: Wall broken
@@ -29,9 +29,9 @@
acts: [ "Destruction" ]
- type: entity
id: WallStationMap
id: StationMap
name: station map
parent: WallStationMapBroken
parent: StationMapBroken
suffix: Wall
placement:
mode: SnapgridCenter
@@ -65,7 +65,7 @@
collection: GlassBreak
- !type:SpawnEntitiesBehavior
spawn:
WallStationMapBroken:
StationMapBroken:
min: 1
max: 1
- !type:DoActsBehavior