Port miasma from nyano (#8926)

Co-authored-by: Kara <lunarautomaton6@gmail.com>
This commit is contained in:
Rane
2022-06-17 03:00:23 -04:00
committed by GitHub
parent 5a216be730
commit 1dc78ec88a
21 changed files with 301 additions and 142 deletions

View File

@@ -12,3 +12,6 @@ reagent-desc-carbon-dioxide = You have genuinely no idea what this is.
reagent-name-nitrogen = nitrogen
reagent-desc-nitrogen = A colorless, odorless unreactive gas. Highly stable.
reagent-name-miasma = miasma
reagent-desc-miasma = Uh oh, stinky!

View File

@@ -57,3 +57,14 @@
gasOverlayState: water_vapor
color: bffffd
reagent: Water
- type: gas
id: 6
name: Miasma
specificHeat: 20
heatCapacityRatio: 1.4
molarMass: 44
gasOverlaySprite: /Textures/Effects/atmospherics.rsi
gasOverlayState: miasma
color: 56941E
reagent: Miasma

View File

@@ -152,6 +152,7 @@
90: 0.2
- type: MobPrice
price: 1000 # Living critters are valuable in space.
- type: Perishable
- type: entity
save: false

View File

@@ -326,6 +326,7 @@
- type: MobPrice
price: 1500 # Kidnapping a living person and selling them for cred is a good move.
deathPenalty: 0.01 # However they really ought to be living and intact, otherwise they're worth 100x less.
- type: Perishable
- type: entity
save: false

View File

@@ -60,6 +60,7 @@
key: bag
- type: BodyBagVisualizer
- type: Pullable
- type: AntiRottingContainer
- type: entity
id: BodyBag_Folded

View File

@@ -338,6 +338,43 @@
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity
parent: GasCanister
id: MiasmaCanister
name: miasma canister
components:
- type: Sprite
state: redws
- type: GasCanister
gasMixture:
volume: 1000
moles:
- 0 # oxygen
- 0 # nitrogen
- 0 # CO2
- 0 # Plasma
- 0 # Tritium
- 0 # Water vapor
- 1871.71051 # Miasma
temperature: 293.15
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:PlaySoundBehavior
sound:
path: /Audio/Effects/metalbreak.ogg
- !type:SpawnEntitiesBehavior
spawn:
MiasmaCanisterBroken:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
# Broke Entities
- type: entity
@@ -453,3 +490,12 @@
components:
- type: Sprite
state: water_vapor-1
- type: entity
parent: GasCanisterBrokenBase
id: MiasmaCanisterBroken
name: broken miasma canister
noSpawn: true
components:
- type: Sprite
state: redws-1

View File

@@ -47,8 +47,8 @@
state_open: mining_open
state_closed: mining_door
- type: AccessReader
access: [["Salvage"]]
access: [["Salvage"]]
# Command
- type: entity
id: LockerCaptain
@@ -169,6 +169,7 @@
access: [ [ "Kitchen" ] ]
- type: ExplosionResistance
resistance: 0.90
- type: AntiRottingContainer
# Botanist
- type: entity

View File

@@ -49,6 +49,7 @@
light_soul: morgue_soul_light
- type: Transform
anchored: true
- type: AntiRottingContainer
- type: entity
id: MorgueTray
@@ -72,7 +73,7 @@
- type: Clickable
- type: InteractionOutline
- type: MorgueTray
- type: AntiRottingContainer
- type: entity
id: Crematorium

View File

@@ -26,6 +26,7 @@
Plasma: danger # everything below is usually bad
Tritium: danger
WaterVapor: danger
Miasma: danger
- type: AtmosAlarmable
alarmedBy: ["AirAlarm"]
- type: AtmosDevice

View File

@@ -144,3 +144,43 @@
CarbonDioxide: 1.0
Nitrogen: -1.0
- type: reagent
id: Miasma
name: reagent-name-miasma
desc: reagent-desc-miasma
physicalDesc: reagent-physical-desc-gaseous
color: "#56941E"
boilingPoint: -195.8
meltingPoint: -210.0
metabolisms:
Gas:
effects:
- !type:ChemCauseRandomDisease
conditions:
- !type:ReagentThreshold
reagent: Miasma
min: 1
diseases:
- VentCough
- AMIV
- SpaceCold
- SpaceFlu
- Bird Flew
- VanAusdallsRobovirus
- BleedersBite
- !type:HealthChange
conditions:
- !type:ReagentThreshold
reagent: Miasma
min: 1
scaleByQuantity: true
ignoreResistances: true
damage:
types:
Poison: 0.25
- !type:ChemVomit
probability: 0.12
conditions:
- !type:ReagentThreshold
reagent: Miasma
min: 0.8