Beds, Medical Beds, Stasis Beds (#6695)

This commit is contained in:
Rane
2022-04-15 18:53:52 -04:00
committed by GitHub
parent 3383350c03
commit 5376aed6ea
36 changed files with 534 additions and 31 deletions

View File

@@ -312,3 +312,26 @@
Amount: 1
DefaultPrototype: Beaker
ExamineName: Glass Beaker
- type: entity
id: StasisBedMachineCircuitboard
parent: BaseMachineCircuitboard
name: Stasis Bed (Machine Board)
components:
- type: MachineBoard
prototype: StasisBed
requirements:
Capacitor: 1
Manipulator: 1
materialRequirements:
Cable: 3
tagRequirements:
Pipe:
Amount: 4
DefaultPrototype: GasPipeStraight
ExamineName: Pipe
Cryobeaker:
Amount: 2
DefaultPrototype: CryostasisBeaker
ExamineName: Cryostasis Beaker

View File

@@ -144,7 +144,11 @@
solution: beaker
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Tag
tags:
- GlassBeaker
- Cryobeaker
- type: entity
name: bluespace beaker
parent: BaseBeaker

View File

@@ -2,8 +2,15 @@
name: bed
id: Bed
parent: BaseStructure
description: This is used to lie in, sleep in or strap on.
description: This is used to lie in, sleep in or strap on. Resting here provides extremely slow healing.
components:
- type: HealOnBuckle
damage:
groups:
Brute: -0.2 ## 0.1 per
Burn: -0.2
types:
Poison: -0.1
- type: Physics
bodyType: Static
- type: Fixtures
@@ -52,6 +59,25 @@
- type: Pullable
- type: entity
parent: Bed
id: MedicalBed
name: medical bed
description: A hospital bed for patients to recover in. Resting here provides fairly slow healing.
components:
- type: Sprite
state: bed-MED
- type: HealOnBuckle
damage:
groups:
Brute: -0.4 ## 0.2 per
Burn: -0.4
types:
Poison: -0.2
- type: Construction
graph: bed
node: medicalbed
- type: entity
parent: Bed
id: DogBed

View File

@@ -245,6 +245,7 @@
- ShuttleConsoleCircuitboard
- CircuitImprinterMachineCircuitboard
- DawInstrumentMachineCircuitboard
- StasisBedMachineCircuitboard
- type: Machine
board: CircuitImprinterMachineCircuitboard

View File

@@ -0,0 +1,51 @@
- type: entity
id: StasisBed
name: stasis bed
parent: BaseStructure
description: A bed that massively slows down the patient's metabolism, allowing more time to administer a proper treatment for stabilization.
components:
- type: StasisBed
multiplier: 10
- type: Sprite
sprite: Structures/Machines/stasis_bed.rsi
netsync: false
layers:
- state: icon
- state: unlit
shader: unshaded
map: ["enum.StasisBedVisualLayers.IsOn"]
- type: StasisBedVisuals
- type: Appearance
- type: ApcPowerReceiver
powerLoad: 1000
- type: ExtensionCableReceiver
- type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 75
behaviors:
- !type:DoActsBehavior
acts: ["Destruction"]
- !type:SpawnEntitiesBehavior
spawn:
SheetSteel1:
min: 1
max: 2
- type: Strap
position: Down
rotation: -90
- type: Physics
bodyType: Static
- type: Fixtures
fixtures:
- shape:
!type:PhysShapeAabb
bounds: "-0.45,-0.45,0.45,0.05"
mass: 25
mask:
- SmallImpassable