SolutionContainerComponent refactors (#2746)
* Moves ContainsReagent from SolutionContainer to Solution * GetMajorReagentId from SOlutionContainer to Solution * Makes capability checks use HasFlag * Moves Solution Color calculation from SolutionContainer to Solution * Replaces SolutionContainerCaps.NoExamine with CanExamine * Misc SolutionContainer.Capabilities yaml cleanup * Removes HasFlag usage in SolutionContainerComponent Co-authored-by: py01 <pyronetics01@gmail.com>
This commit is contained in:
@@ -38,7 +38,7 @@
|
||||
drawWarnings: false
|
||||
- type: SolutionContainer
|
||||
maxVol: 200
|
||||
caps: AddTo, NoExamine
|
||||
caps: AddTo
|
||||
- type: Pourable
|
||||
- type: SnapGrid
|
||||
offset: Center
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
# Organs
|
||||
- type: SolutionContainer
|
||||
maxVol: 250
|
||||
caps: AddTo, RemoveFrom, NoExamine
|
||||
caps: AddTo, RemoveFrom
|
||||
- type: Bloodstream
|
||||
max_volume: 100
|
||||
# StatusEffects
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
- type: entity
|
||||
- type: entity
|
||||
parent: BaseItem
|
||||
id: ProduceBase
|
||||
abstract: true
|
||||
components:
|
||||
- type: SolutionContainer
|
||||
caps: NoExamine
|
||||
caps: None
|
||||
- type: Sprite
|
||||
state: produce
|
||||
- type: Produce
|
||||
@@ -18,7 +18,7 @@
|
||||
- type: Sprite
|
||||
sprite: Objects/Specific/Hydroponics/wheat.rsi
|
||||
- type: SolutionContainer
|
||||
caps: NoExamine
|
||||
caps: None
|
||||
contents:
|
||||
reagents:
|
||||
- ReagentId: chem.Nutriment
|
||||
@@ -38,7 +38,7 @@
|
||||
- type: Sprite
|
||||
sprite: Objects/Specific/Hydroponics/sugarcane.rsi
|
||||
- type: SolutionContainer
|
||||
caps: NoExamine
|
||||
caps: None
|
||||
contents:
|
||||
reagents:
|
||||
- ReagentId: chem.Nutriment
|
||||
@@ -58,7 +58,7 @@
|
||||
- type: Sprite
|
||||
sprite: Objects/Specific/Hydroponics/towercap.rsi
|
||||
- type: SolutionContainer
|
||||
caps: NoExamine
|
||||
caps: None
|
||||
- type: MeleeWeapon
|
||||
- type: Produce
|
||||
seed: towercap
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# TODO: Find remaining cans and move to drinks_cans
|
||||
# TODO: Find remaining cans and move to drinks_cans
|
||||
# TODO: Find empty containers (e.g. mug, pitcher) and move to their own yml
|
||||
# TODO: Move bottles to their own yml
|
||||
- type: entity
|
||||
@@ -8,7 +8,6 @@
|
||||
components:
|
||||
- type: SolutionContainer
|
||||
maxVol: 50
|
||||
caps: AddTo, RemoveFrom
|
||||
- type: Pourable
|
||||
transferAmount: 5
|
||||
- type: Drink
|
||||
@@ -55,7 +54,6 @@
|
||||
- type: SolutionContainer
|
||||
fillingState: glass
|
||||
maxVol: 50
|
||||
caps: AddTo, RemoveFrom
|
||||
- type: Pourable
|
||||
transferAmount: 5
|
||||
- type: TransformableContainer
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
- type: Drink
|
||||
openSounds: bottleOpenSounds
|
||||
- type: SolutionContainer
|
||||
caps: AddTo, RemoveFrom
|
||||
- type: Pourable
|
||||
transferAmount: 5
|
||||
- type: Sprite
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
components:
|
||||
- type: SolutionContainer
|
||||
maxVol: 20
|
||||
caps: AddTo, RemoveFrom
|
||||
- type: Pourable
|
||||
transferAmount: 5
|
||||
- type: Drink
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
- type: Food
|
||||
- type: LoopingSound
|
||||
- type: SolutionContainer
|
||||
caps: NoExamine
|
||||
caps: None
|
||||
- type: Sprite
|
||||
state: icon
|
||||
netsync: false
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
components:
|
||||
- type: SolutionContainer
|
||||
maxVol: 50
|
||||
caps: AddTo, RemoveFrom
|
||||
contents:
|
||||
reagents:
|
||||
- ReagentId: chem.Flour
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
# These can still be used as containers
|
||||
# These can still be used as containers
|
||||
- type: entity
|
||||
name: base empty bottle
|
||||
parent: BaseItem
|
||||
@@ -12,7 +12,6 @@
|
||||
|
||||
- type: SolutionContainer
|
||||
maxVol: 10
|
||||
caps: AddTo, RemoveFrom
|
||||
- type: Pourable
|
||||
transferAmount: 5
|
||||
- type: Drink
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
size: 10
|
||||
- type: SolutionContainer
|
||||
maxVol: 100
|
||||
caps: AddTo, RemoveFrom, NoExamine
|
||||
caps: AddTo, RemoveFrom
|
||||
contents:
|
||||
reagents:
|
||||
- ReagentId: chem.Water
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
- type: SolutionContainer
|
||||
fillingState: beaker
|
||||
maxVol: 50
|
||||
caps: AddTo, RemoveFrom, FitsInDispenser # can add and remove solutions and fits in the chemmaster.
|
||||
caps: CanExamine, AddTo, RemoveFrom, FitsInDispenser # can add and remove solutions and fits in the chemmaster.
|
||||
- type: Pourable
|
||||
transferAmount: 5.0
|
||||
- type: Spillable
|
||||
@@ -34,7 +34,7 @@
|
||||
- type: SolutionContainer
|
||||
fillingState: beakerlarge
|
||||
maxVol: 100
|
||||
caps: AddTo, RemoveFrom, FitsInDispenser
|
||||
caps: CanExamine, AddTo, RemoveFrom, FitsInDispenser
|
||||
- type: Pourable
|
||||
transferAmount: 5.0
|
||||
- type: Spillable
|
||||
@@ -53,7 +53,6 @@
|
||||
fillingState: dropper
|
||||
fillingSteps: 2
|
||||
maxVol: 5
|
||||
caps: AddTo, RemoveFrom
|
||||
- type: Pourable
|
||||
transferAmount: 5.0
|
||||
- type: Spillable
|
||||
@@ -71,7 +70,6 @@
|
||||
fillingState: syringe
|
||||
fillingSteps: 5
|
||||
maxVol: 15
|
||||
caps: AddTo, RemoveFrom
|
||||
- type: Injector
|
||||
injectOnly: false
|
||||
- type: Spillable
|
||||
@@ -87,7 +85,6 @@
|
||||
- type: Drink
|
||||
- type: SolutionContainer
|
||||
maxVol: 30
|
||||
caps: AddTo, RemoveFrom
|
||||
- type: Pourable
|
||||
transferAmount: 5
|
||||
- type: Spillable
|
||||
@@ -104,4 +101,4 @@
|
||||
- type: Pill
|
||||
- type: SolutionContainer
|
||||
maxVol: 50
|
||||
caps: RemoveFrom
|
||||
caps: None
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- type: entity
|
||||
- type: entity
|
||||
parent: BaseItem
|
||||
name: mop
|
||||
id: MopItem
|
||||
@@ -13,7 +13,6 @@
|
||||
- type: Mop
|
||||
- type: SolutionContainer
|
||||
maxVol: 10
|
||||
caps: AddTo, RemoveFrom
|
||||
- type: LoopingSound
|
||||
|
||||
- type: entity
|
||||
@@ -33,7 +32,6 @@
|
||||
- type: LoopingSound
|
||||
- type: SolutionContainer
|
||||
maxVol: 500
|
||||
caps: AddTo, RemoveFrom
|
||||
- type: Physics
|
||||
mass: 5
|
||||
anchored: false
|
||||
@@ -65,7 +63,6 @@
|
||||
- type: LoopingSound
|
||||
- type: SolutionContainer
|
||||
maxVol: 500
|
||||
caps: AddTo, RemoveFrom
|
||||
- type: Physics
|
||||
mass: 5
|
||||
anchored: false
|
||||
@@ -219,7 +216,6 @@
|
||||
components:
|
||||
- type: SolutionContainer
|
||||
maxVol: 100
|
||||
caps: AddTo, RemoveFrom
|
||||
contents:
|
||||
reagents:
|
||||
- ReagentId: chem.Water
|
||||
@@ -234,7 +230,6 @@
|
||||
components:
|
||||
- type: SolutionContainer
|
||||
maxVol: 100
|
||||
caps: AddTo, RemoveFrom
|
||||
contents:
|
||||
reagents:
|
||||
- ReagentId: chem.SpaceCleaner
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
- type: entity
|
||||
- type: entity
|
||||
parent: BaseItem
|
||||
id: SeedBase
|
||||
abstract: true
|
||||
components:
|
||||
- type: Seed
|
||||
- type: SolutionContainer
|
||||
caps: NoExamine
|
||||
caps: None
|
||||
- type: Sprite
|
||||
sprite: Objects/Specific/Hydroponics/seeds.rsi
|
||||
state: seed
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- type: entity
|
||||
- type: entity
|
||||
name: mini hoe
|
||||
parent: BaseItem
|
||||
id: MiniHoe
|
||||
@@ -24,7 +24,7 @@
|
||||
state: plantbgone
|
||||
- type: SolutionContainer
|
||||
maxVol: 100
|
||||
caps: RemoveFrom, NoExamine
|
||||
caps: RemoveFrom
|
||||
contents:
|
||||
reagents:
|
||||
- ReagentId: chem.PlantBGone
|
||||
@@ -42,7 +42,7 @@
|
||||
state: weedspray
|
||||
- type: SolutionContainer
|
||||
maxVol: 50
|
||||
caps: RemoveFrom, NoExamine
|
||||
caps: RemoveFrom
|
||||
contents:
|
||||
reagents:
|
||||
- ReagentId: chem.WeedKiller
|
||||
@@ -65,7 +65,7 @@
|
||||
state: pestspray
|
||||
- type: SolutionContainer
|
||||
maxVol: 50
|
||||
caps: RemoveFrom, NoExamine
|
||||
caps: RemoveFrom
|
||||
contents:
|
||||
reagents:
|
||||
- ReagentId: chem.PestKiller
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- type: entity
|
||||
- type: entity
|
||||
name: haycutters
|
||||
parent: BaseItem
|
||||
id: Haycutters
|
||||
@@ -114,7 +114,7 @@
|
||||
- type: ItemStatus
|
||||
- type: SolutionContainer
|
||||
maxVol: 50
|
||||
caps: AddTo, NoExamine
|
||||
caps: AddTo
|
||||
contents:
|
||||
reagents:
|
||||
- ReagentId: chem.WeldingFuel
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
- type: ItemStatus
|
||||
- type: SolutionContainer
|
||||
maxVol: 100
|
||||
caps: AddTo, NoExamine
|
||||
caps: AddTo
|
||||
contents:
|
||||
reagents:
|
||||
- ReagentId: chem.WeldingFuel
|
||||
@@ -44,7 +44,7 @@
|
||||
sprite: Objects/Tools/welder_experimental.rsi
|
||||
- type: SolutionContainer
|
||||
maxVol: 1000
|
||||
caps: AddTo, NoExamine
|
||||
caps: AddTo
|
||||
contents:
|
||||
reagents:
|
||||
- ReagentId: chem.WeldingFuel
|
||||
@@ -66,7 +66,7 @@
|
||||
sprite: Objects/Tools/welder_mini.rsi
|
||||
- type: SolutionContainer
|
||||
maxVol: 25
|
||||
caps: AddTo, NoExamine
|
||||
caps: AddTo
|
||||
contents:
|
||||
reagents:
|
||||
- ReagentId: chem.WeldingFuel
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- type: entity
|
||||
- type: entity
|
||||
name: spear
|
||||
parent: BaseItem
|
||||
id: Spear
|
||||
@@ -22,7 +22,6 @@
|
||||
- type: MeleeChemicalInjector
|
||||
- type: SolutionContainer
|
||||
maxVol: 5
|
||||
caps: AddTo, RemoveFrom
|
||||
- type: Pourable
|
||||
|
||||
- type: MeleeWeaponAnimation
|
||||
|
||||
@@ -8,7 +8,6 @@
|
||||
- type: Sprite
|
||||
drawdepth: FloorObjects
|
||||
- type: SolutionContainer
|
||||
caps: AddTo, RemoveFrom
|
||||
- type: Puddle
|
||||
spill_sound: /Audio/Effects/Fluids/splat.ogg
|
||||
recolor: true
|
||||
|
||||
Reference in New Issue
Block a user