Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
109 changes: 49 additions & 60 deletions Resources/Prototypes/Atmospherics/Thresholds/deltapressure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,83 +7,84 @@
abstract: true
id: BaseDeltaPressureGlass
components:
- type: DeltaPressure
minPressure: 1000
minPressureDelta: 750
scalingType: Linear
scalingPower: 0.0005
- type: DeltaPressure
minPressure: 150000
minPressureDelta: 100000
scalingType: Linear
scalingPower: 0.0001

## For quarter glass windows
- type: entity
abstract: true
id: BaseDeltaPressureGlassQuarter
components:
- type: DeltaPressure
minPressure: 250
minPressureDelta: 187.5
scalingType: Threshold
- type: DeltaPressure
minPressure: 37500
minPressureDelta: 25000
scalingType: Threshold

## For reinforced glass windows
- type: entity
abstract: true
id: BaseDeltaPressureReinforcedGlass
components:
- type: DeltaPressure
minPressure: 15000
minPressureDelta: 10000
scalingType: Threshold
- type: DeltaPressure
minPressure: 150000
minPressureDelta: 100000
scalingType: Linear
scalingPower: 0.0005

## For quarter reinforced glass windows
- type: entity
abstract: true
id: BaseDeltaPressureReinforcedGlassQuarter
components:
- type: DeltaPressure
minPressure: 3750
minPressureDelta: 2500
- type: DeltaPressure
minPressure: 300000
minPressureDelta: 200000
scalingType: Linear
scalingPower: 0.0001

## -- PLASMA --
## For plasma windows
- type: entity
abstract: true
id: BaseDeltaPressurePlasma
components:
- type: DeltaPressure
minPressure: 75000
minPressureDelta: 50000
scalingType: Linear
scalingPower: 0.0005
- type: DeltaPressure
minPressure: 75000
minPressureDelta: 50000
scalingType: Linear
scalingPower: 0.0005

## For quarter plasma windows
- type: entity
abstract: true
id: BaseDeltaPressurePlasmaQuarter
components:
- type: DeltaPressure
minPressure: 18750
minPressureDelta: 12500
scalingType: Threshold
- type: DeltaPressure
minPressure: 18750
minPressureDelta: 12500
scalingType: Threshold

## For reinforced plasma windows
- type: entity
abstract: true
id: BaseDeltaPressureReinforcedPlasma
components:
- type: DeltaPressure
minPressure: 150000
minPressureDelta: 100000
scalingType: Linear
scalingPower: 0.0001
- type: DeltaPressure
minPressure: 15000
minPressureDelta: 10000
scalingType: Threshold

## For quarter reinforced plasma windows
- type: entity
abstract: true
id: BaseDeltaPressureReinforcedPlasmaQuarter
components:
- type: DeltaPressure
minPressure: 37500
minPressureDelta: 25000
scalingType: Threshold
- type: DeltaPressure
minPressure: 3750
minPressureDelta: 2500


## -- PHORON --
Expand All @@ -92,40 +93,28 @@
abstract: true
id: BaseDeltaPressurePhoronGlass
components:
- type: DeltaPressure
minPressure: 150000
minPressureDelta: 100000
scalingType: Linear
scalingPower: 0.0005
- type: DeltaPressure
minPressure: 1000
minPressureDelta: 750
scalingType: Linear
scalingPower: 0.0005

## For quarter phoron windows (2x better than quarter plasma)
- type: entity
abstract: true
id: BaseDeltaPressurePhoronGlassQuarter
components:
- type: DeltaPressure
minPressure: 27500
minPressureDelta: 50000
scalingType: Linear
- type: DeltaPressure
minPressure: 250
minPressureDelta: 187.5
scalingType: Threshold

## For reinforced phoron glass windows (2x better than reinforced plasma)
- type: entity
abstract: true
id: BaseDeltaPressureReinforcedPhoronGlass
components:
- type: DeltaPressure
minPressure: 300000
minPressureDelta: 200000
scalingType: Linear
scalingPower: 0.0001

## For quareter reinforced phoron glass windows (2x better than quarter reinforced plasma)
- type: entity
abstract: true
id: BaseDeltaPressureReinforcedPhoronGlassQuarter
id: BaseDeltaPressureFans
components:
- type: DeltaPressure
minPressure: 75000
minPressureDelta: 50000
scalingType: Linear

- type: DeltaPressure
minPressure: 200
minPressureDelta: 150
scalingType: Linear
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Devices which are not portable but don't link up to anything
- type: entity
id: AtmosDeviceFanTiny
parent: BaseDeltaPressureFans
name: tiny fan
description: A tiny fan, releasing a thin gust of air.
placement:
Expand Down Expand Up @@ -43,9 +44,29 @@
- type: Tag
tags:
- SpreaderIgnore
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: StructuralMetallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 1
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
TinyFanFlatpack:
min: 1
max: 1
- !type:PlaySoundBehavior
sound:
collection: MetalSlam
- !type:DoActsBehavior
acts: [ "Destruction" ]

- type: entity
id: AtmosDeviceFanDirectional
parent: BaseDeltaPressureFans
name: directional fan
description: A thin fan, stopping the movement of gases across it.
placement:
Expand Down Expand Up @@ -91,3 +112,22 @@
- type: Tag
tags:
- SpreaderIgnore
- type: Damageable
damageContainer: StructuralInorganic
damageModifierSet: StructuralMetallic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 1
behaviors:
- !type:SpawnEntitiesBehavior
spawn:
DirectionalFanFlatpack:
min: 1
max: 1
- !type:PlaySoundBehavior
sound:
collection: MetalSlam
- !type:DoActsBehavior
acts: [ "Destruction" ]
Loading