Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General anesthesia canisters and associated cargo order #527

Merged
merged 1 commit into from
Feb 6, 2025
Merged
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
19 changes: 19 additions & 0 deletions Resources/Prototypes/Floof/Catalog/Cargo/cargo_atmospherics.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
- type: cargoProduct
id: AtmosphericsNitrousMix
icon:
sprite: Structures/Storage/canister.rsi
state: redws
product: NitrousOxideMixCanister
cost: 2100
category: cargoproduct-category-name-atmospherics
group: market

- type: cargoProduct
id: AtmosphericsLiquidNitrousMix
icon:
sprite: Structures/Storage/canister.rsi
state: redws
product: LiquidNitrousOxideMixCanister
cost: 5200
category: cargoproduct-category-name-atmospherics
group: market
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
- type: entity
parent: GasCanister
id: NitrousOxideMixCanister
name: general anesthesia canister
description: A canister that can contain any type of gas. This one is supposed to contain nitrous oxide and oxygen in a 3-to-7 ratio. It can be attached to connector ports using a wrench.
components:
- type: Sprite
layers:
- state: redws
- type: GasCanister
gasMixture:
volume: 1000
moles:
- 1310.19735 # oxygen
- 0 # nitrogen
- 0 # CO2
- 0 # Plasma
- 0 # Tritium
- 0 # Water vapor
- 0 # Ammonia
- 561.51315 # N2O
temperature: 293.15
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 600
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 300
behaviors:
- !type:PlaySoundBehavior
sound:
collection: MetalBreak
- !type:SpawnEntitiesBehavior
spawn:
NitrousOxideCanisterBroken:
min: 1
max: 1
- !type:DoActsBehavior
acts: [ "Destruction" ]
- !type:DumpCanisterBehavior
- type: AccessReader
access: [["Atmospherics"],["Medical"],["Research"]]

- type: entity
parent: NitrousOxideMixCanister
id: LiquidNitrousOxideMixCanister
name: liquid general anesthesia canister
description: A canister that can contain any type of gas. This one is supposed to contain liquid nitrous oxide and oxygen in a 3-to-7 ratio. It can be attached to connector ports using a wrench.
components:
- type: GasCanister
gasMixture:
volume: 1000
moles:
- 13100.19735 # oxygen
- 0 # nitrogen
- 0 # CO2
- 0 # Plasma
- 0 # Tritium
- 0 # Water vapor
- 0 # Ammonia
- 5610.51315 # N2O
temperature: 72
Loading