* vial

* yea

* s

* fix something

* yaml

* fixer

* aaaaaaaaaaa

* update

* sprite changes

* a

* fix'd
This commit is contained in:
Ubaser
2023-12-17 01:29:53 +11:00
committed by GitHub
parent 06392fb98c
commit db74ca0e2c
22 changed files with 165 additions and 6 deletions

View File

@@ -18,6 +18,16 @@
category: Medical
group: market
- type: cargoProduct
id: MedicalChemistryVials
icon:
sprite: Objects/Specific/Chemistry/vial.rsi
state: vial
product: CrateChemistryVials
cost: 1000
category: Medical
group: market
- type: cargoProduct
id: EmergencyBurnKit
icon:

View File

@@ -126,3 +126,21 @@
whitelist:
tags:
- BodyBag
- type: entity
name: vial box
parent: BoxCardboard
id: BoxVial
description: A box full of vials.
components:
- type: Storage
grid:
- 0,0,2,1
- type: StorageFill
contents:
- id: BaseChemistryEmptyVial
amount: 6
- type: Sprite
layers:
- state: box
- state: vials

View File

@@ -28,6 +28,14 @@
- id: BoxBottle
amount: 2
- type: entity
id: CrateChemistryVials
parent: CrateMedical
components:
- type: StorageFill
contents:
- id: BoxVial
- type: entity
id: CrateMindShieldImplants
parent: CrateMedical

View File

@@ -116,6 +116,7 @@
prob: 0.3
- id: BoxPillCanister
- id: BoxBottle
- id: BoxVial
- id: ChemBag
- id: ClothingHandsGlovesLatex
- id: ClothingHeadsetMedical

View File

@@ -0,0 +1,95 @@
# TODO: Have a seperate lid state that can be popped on and off (not as a seperate item) that changes whether the vial can be spilled or not
- type: entity
name: vial
parent: BaseItem
id: BaseChemistryEmptyVial
description: A small vial.
components:
- type: Tag
tags:
- Trash
- type: PhysicalComposition
materialComposition:
Glass: 25
- type: FitsInDispenser
solution: beaker
- type: SpaceGarbage
- type: Sprite
sprite: Objects/Specific/Chemistry/vial.rsi
layers:
- state: vial-1
- state: vial-1-1
map: ["enum.SolutionContainerLayers.Fill"]
visible: false
- type: Appearance
- type: SolutionContainerVisuals
maxFillLevels: 6
fillBaseName: vial-1-
- type: SolutionContainerManager
solutions:
drink:
maxVol: 30
canMix: true
- type: RefillableSolution
solution: drink
- type: DrainableSolution
solution: drink
- type: ExaminableSolution
solution: drink
- type: DrawableSolution
solution: drink
- type: SolutionTransfer
maxTransferAmount: 30
canChangeTransferAmount: true
- type: UserInterface
interfaces:
- key: enum.TransferAmountUiKey.Key
type: TransferAmountBoundUserInterface
- type: Item
size: Tiny
sprite: Objects/Specific/Chemistry/vial.rsi
shape:
- 0,0,0,0
- type: MeleeWeapon
soundNoDamage:
path: "/Audio/Effects/Fluids/splat.ogg"
damage:
types:
Blunt: 0
- type: TrashOnSolutionEmpty
solution: drink
- type: StaticPrice
price: 100
- type: DamageOnLand
damage:
types:
Blunt: 5
- type: DamageOtherOnHit
damage:
types:
Blunt: 2
- type: Damageable
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 15
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
params:
volume: -4
- !type:SpillBehavior { }
- !type:SpawnEntitiesBehavior
spawn:
ShardGlass:
min: 0
max: 1
transferForensics: true
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Spillable
solution: drink