Epinephrine + epipen (#5444)

* add sprite and basic entity, no reagent or testing

* actually implement epinephrine and add it to the box

* allow creating it

* add it to nanomed

* fig
This commit is contained in:
mirrorcult
2021-11-22 23:51:51 -07:00
committed by GitHub
parent 732baa56a9
commit e2205e418b
39 changed files with 311 additions and 32 deletions

View File

@@ -18,3 +18,48 @@
- type: ExaminableSolution
solution: hypospray
- type: Hypospray
- type: entity
name: chemical medipen
parent: BaseItem
description: A sterile injector for rapid administration of drugs to patients. This one can't be refilled.
id: ChemicalMedipen
components:
- type: Sprite
sprite: Objects/Specific/Medical/medipen.rsi
netsync: false
layers:
- state: medipen
map: ["enum.SolutionContainerLayers.Fill"]
- type: Item
sprite: Objects/Specific/Medical/medipen.rsi
size: 5
- type: SolutionContainerManager
solutions:
pen:
maxVol: 15
- type: ExaminableSolution
solution: pen
- type: Hypospray
solutionName: pen
transferAmount: 15
- type: Appearance
visuals:
- type: SolutionContainerVisualizer
maxFillLevels: 1
changeColor: false
emptySpriteName: medipen_empty
- type: entity
name: epinephrine medipen
parent: ChemicalMedipen
id: EpinephrineMedipen
description: A rapid and safe way to stabilize patients in critical condition for personnel without advanced medical knowledge. Beware, as it's easy to overdose on epinephrine.
components:
- type: SolutionContainerManager
solutions:
pen:
maxVol: 15
reagents:
- ReagentId: Epinephrine
Quantity: 15

View File

@@ -109,3 +109,17 @@
- type: SolutionContainerVisualizer
maxFillLevels: 6
fillBaseName: bottle-4-
- type: entity
id: EpinephrineChemistryBottle
name: epinephrine bottle
parent: BaseChemistryEmptyBottle
components:
- type: SolutionContainerManager
solutions:
drink: # This solution name and target volume is hard-coded in ChemMasterComponent
maxVol: 30
reagents:
- ReagentId: Epinephrine
Quantity: 30