jugs closeable, move chemistry entities into chemistry directory (#29413)

* jugs closeable, move chemitsry entities into chemsitry directory

* forgor to stage json. I hope i didnt stage robust :anxious:

* Who likes cargo? Not me. Lets remove it.

* Remove seal, make the amount examinable regardless of open or not, update jug icon

* apply iaada's parenting

* fix issues tdw parenting

* Review changes

* Fix sprite rename

* small touchup

---------

Co-authored-by: SlamBamActionman <slambamactionman@gmail.com>
Co-authored-by: iaada <iaada@users.noreply.github.com>
This commit is contained in:
IProduceWidgets
2026-01-05 18:18:23 -05:00
committed by GitHub
parent 54d7f2b736
commit 4b7aaa3a46
16 changed files with 76 additions and 123 deletions

View File

@@ -42,7 +42,7 @@
id: BulkPlantBGone
icon:
sprite: Objects/Specific/Chemistry/jug.rsi
state: jug
state: icon_empty
product: CratePlantBGone
cost: 750
category: cargoproduct-category-name-hydroponics

View File

@@ -138,7 +138,15 @@
- !type:PlaySoundBehavior
sound:
collection: MetalCrunch # TODO a plastic break collection
params:
volume: -4
- !type:SpillBehavior { }
- !type:SpawnEntitiesBehavior
spawn:
SheetPlastic1:
min: 0
max: 1
transferForensics: true
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: PhysicalComposition

View File

@@ -1,92 +1,34 @@
- type: entity
name: jug
parent: BaseItem
parent: [ DrinkBaseMaterialStrongPlastic, DrinkBase, DrinkBaseOpenable, DrinkVisualsAll ]
id: Jug
name: jug
description: Used to contain a very large amount of chemicals or solutions. Chugging is extremely ill-advised.
components:
- type: SolutionContainerManager
solutions:
beaker:
maxVol: 200
- type: Sprite
sprite: Objects/Specific/Chemistry/jug.rsi
layers:
- state: jug
- state: jug1
map: [ "enum.SolutionContainerLayers.Fill" ]
visible: false
- type: Item
size: Normal
sprite: Objects/Specific/Chemistry/jug.rsi
- type: MixableSolution
solution: beaker
- type: RefillableSolution
solution: beaker
- type: DrainableSolution
solution: beaker
- type: ExaminableSolution
solution: beaker
exactVolume: true
- type: DrawableSolution
solution: beaker
- type: InjectableSolution
solution: beaker
- type: SolutionTransfer
canChangeTransferAmount: true
- type: SolutionItemStatus
solution: beaker
- type: UserInterface
interfaces:
enum.TransferAmountUiKey.Key:
type: TransferAmountBoundUserInterface
- type: Edible
edible: Drink
solution: beaker
destroyOnEmpty: false
utensil: Spoon
- type: Spillable
solution: beaker
- type: Appearance
- type: SolutionContainerVisuals
maxFillLevels: 6
fillBaseName: jug
inHandsMaxFillLevels: 5
inHandsFillBaseName: -fill-
- type: StaticPrice
price: 60
- type: Damageable
damageContainer: Inorganic
- type: Destructible
thresholds:
- trigger:
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 20
behaviors:
- !type:PlaySoundBehavior
sound:
collection: MetalBreak
params:
volume: -4
- !type:SpillBehavior { }
- !type:SpawnEntitiesBehavior
spawn:
SheetPlastic1:
min: 0
max: 1
transferForensics: true
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: Label
- type: Tag
tags:
- ChemDispensable
- type: DnaSubstanceTrace
- type: Sprite
sprite: Objects/Specific/Chemistry/jug.rsi
- type: Item
size: Normal
sprite: Objects/Specific/Chemistry/jug.rsi
- type: SolutionContainerManager
solutions:
drink:
maxVol: 200
- type: SolutionContainerVisuals
maxFillLevels: 6
inHandsMaxFillLevels: 5
- type: ExaminableSolution
exactVolume: true # Chemistry item
- type: Openable
sound:
collection: bottleOpenSounds
closeable: true
closeSound:
collection: bottleCloseSounds
- type: StaticPrice
price: 60
- type: Tag
tags:
- ChemDispensable
- type: entity
parent: Jug
@@ -97,7 +39,7 @@
currentLabel: reagent-name-puncturase-tranexamic
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Puncturase
Quantity: 160
@@ -113,7 +55,7 @@
currentLabel: reagent-name-pyrazine-dermaline
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Pyrazine
Quantity: 50
@@ -129,7 +71,7 @@
currentLabel: reagent-name-dexalin-plus-saline
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: DexalinPlus
Quantity: 100
@@ -145,7 +87,7 @@
currentLabel: reagent-name-tricordrazine
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Tricordrazine
Quantity: 200
@@ -159,7 +101,7 @@
currentLabel: reagent-name-blood
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Blood
Quantity: 200
@@ -173,7 +115,7 @@
currentLabel: reagent-name-water
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Water
Quantity: 200
@@ -188,7 +130,7 @@
currentLabel: reagent-name-carbon
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Carbon
Quantity: 200
@@ -203,7 +145,7 @@
currentLabel: reagent-name-iodine
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Iodine
Quantity: 200
@@ -218,7 +160,7 @@
currentLabel: reagent-name-fluorine
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Fluorine
Quantity: 200
@@ -233,7 +175,7 @@
currentLabel: reagent-name-chlorine
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Chlorine
Quantity: 200
@@ -248,7 +190,7 @@
currentLabel: reagent-name-aluminium
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Aluminium
Quantity: 200
@@ -263,7 +205,7 @@
currentLabel: reagent-name-phosphorus
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Phosphorus
Quantity: 200
@@ -278,7 +220,7 @@
currentLabel: reagent-name-sulfur
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Sulfur
Quantity: 200
@@ -293,7 +235,7 @@
currentLabel: reagent-name-silicon
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Silicon
Quantity: 200
@@ -308,7 +250,7 @@
currentLabel: reagent-name-hydrogen
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Hydrogen
Quantity: 200
@@ -323,7 +265,7 @@
currentLabel: reagent-name-lithium
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Lithium
Quantity: 200
@@ -338,7 +280,7 @@
currentLabel: reagent-name-sodium
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Sodium
Quantity: 200
@@ -353,7 +295,7 @@
currentLabel: reagent-name-potassium
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Potassium
Quantity: 200
@@ -368,7 +310,7 @@
currentLabel: reagent-name-radium
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Radium
Quantity: 200
@@ -383,7 +325,7 @@
currentLabel: reagent-name-iron
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Iron
Quantity: 200
@@ -398,7 +340,7 @@
currentLabel: reagent-name-copper
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Copper
Quantity: 200
@@ -413,7 +355,7 @@
currentLabel: reagent-name-gold
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Gold
Quantity: 200
@@ -428,7 +370,7 @@
currentLabel: reagent-name-mercury
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Mercury
Quantity: 200
@@ -443,7 +385,7 @@
currentLabel: reagent-name-silver
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Silver
Quantity: 200
@@ -458,7 +400,7 @@
currentLabel: reagent-name-ethanol
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Ethanol
Quantity: 200
@@ -473,7 +415,7 @@
currentLabel: reagent-name-sugar
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Sugar
Quantity: 200
@@ -488,7 +430,7 @@
currentLabel: reagent-name-nitrogen
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Nitrogen
Quantity: 200
@@ -503,7 +445,7 @@
currentLabel: reagent-name-oxygen
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: Oxygen
Quantity: 200
@@ -518,7 +460,7 @@
currentLabel: reagent-name-plant-b-gone
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: PlantBGone
Quantity: 200
@@ -533,7 +475,7 @@
currentLabel: reagent-name-welding-fuel
- type: SolutionContainerManager
solutions:
beaker:
drink:
reagents:
- ReagentId: WeldingFuel
Quantity: 200

View File

Before

Width:  |  Height:  |  Size: 129 B

After

Width:  |  Height:  |  Size: 129 B

View File

Before

Width:  |  Height:  |  Size: 146 B

After

Width:  |  Height:  |  Size: 146 B

View File

Before

Width:  |  Height:  |  Size: 166 B

After

Width:  |  Height:  |  Size: 166 B

View File

Before

Width:  |  Height:  |  Size: 164 B

After

Width:  |  Height:  |  Size: 164 B

View File

Before

Width:  |  Height:  |  Size: 171 B

After

Width:  |  Height:  |  Size: 171 B

View File

Before

Width:  |  Height:  |  Size: 164 B

After

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 328 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 346 B

View File

@@ -8,7 +8,10 @@
},
"states": [
{
"name": "jug"
"name": "icon_empty"
},
{
"name": "icon_open"
},
{
"name": "inhand-left",
@@ -59,22 +62,22 @@
"directions": 4
},
{
"name": "jug1"
"name": "fill-1"
},
{
"name": "jug2"
"name": "fill-2"
},
{
"name": "jug3"
"name": "fill-3"
},
{
"name": "jug4"
"name": "fill-4"
},
{
"name": "jug5"
"name": "fill-5"
},
{
"name": "jug6"
"name": "fill-6"
}
]
}