pre-plan for more sounds

This commit is contained in:
iaada
2025-07-31 17:38:39 -05:00
parent e58103bac6
commit 6cdf16e1fd
13 changed files with 57 additions and 71 deletions

View File

@@ -155,16 +155,6 @@
flatReductions: flatReductions:
Blunt: 5 Blunt: 5
# Generally quite fragile
- type: damageModifierSet
id: Cardboard
coefficients:
Blunt: 1.3
Slash: 1.3
Piercing: 0.3 # poking holes in cardboard doesn't do much
Heat: 2.0 # it's wood so it burns
Structural: 1.3
- type: damageModifierSet - type: damageModifierSet
id: Web # Very flammable, can be easily hacked and slashed, but shooting or hitting it is another story. id: Web # Very flammable, can be easily hacked and slashed, but shooting or hitting it is another story.
coefficients: coefficients:

View File

@@ -1,5 +1,5 @@
- type: entity - type: entity
parent: [DrinkBase, DrinkBaseMaterialGlass] parent: [DrinkBaseMaterialGlass, DrinkBase]
id: DrinkMeth id: DrinkMeth
name: meth # beer it is. coffee. beer? coff-ee? be-er? c-o... b-e name: meth # beer it is. coffee. beer? coff-ee? be-er? c-o... b-e
description: Just a whole glass of meth. description: Just a whole glass of meth.

View File

@@ -1,6 +1,6 @@
- type: entity - type: entity
abstract: true abstract: true
parent: [ DrinkBase, DrinkBaseMaterialCardboard, DrinkBaseOpenable, DrinkVisualsOpenable ] parent: [ DrinkBaseMaterialCardboard, DrinkBase, DrinkBaseOpenable, DrinkVisualsOpenable ]
id: DrinkCartonBaseLargeFull # todo rename DrinkCartonBaseFull to match bottles id: DrinkCartonBaseLargeFull # todo rename DrinkCartonBaseFull to match bottles
suffix: Full suffix: Full
components: components:

View File

@@ -28,7 +28,7 @@
solution: drink solution: drink
- type: InjectableSolution # Injectors (syringe) will fallback to RefillableSolution. This adds support for hyposprays and injector anomalies. - type: InjectableSolution # Injectors (syringe) will fallback to RefillableSolution. This adds support for hyposprays and injector anomalies.
solution: drink solution: drink
# - type: SolutionItemStatus todo Currently does not respect if the solution has ExaminableSolution and always shows the reagent count # - type: SolutionItemStatus todo Currently always shows the reagent count. Should show vague fill levels without ExaminableSolution
# solution: drink # solution: drink
- type: SolutionContainerManager - type: SolutionContainerManager
solutions: solutions:
@@ -155,9 +155,9 @@
# Visualizer for an openable entity with fill levels # Visualizer for an openable entity with fill levels
- type: entity - type: entity
abstract: true abstract: true
parent: [DrinkVisualsOpenable, DrinkVisualsFill]
id: DrinkVisualsAll id: DrinkVisualsAll
components: components:
- type: Appearance
- type: GenericVisualizer - type: GenericVisualizer
visuals: visuals:
enum.OpenableVisuals.Opened: enum.OpenableVisuals.Opened:
@@ -171,15 +171,6 @@
- state: fill-1 - state: fill-1
map: ["enum.SolutionContainerLayers.Fill"] map: ["enum.SolutionContainerLayers.Fill"]
visible: false visible: false
- type: SolutionContainerVisuals
maxFillLevels: 5
fillBaseName: fill-
inHandsMaxFillLevels: 3
inHandsFillBaseName: -fill-
- type: ExaminableSolution # If you can see the fill levels, you can see the unit count
solution: drink
- type: SolutionItemStatus # Remove when comp is uncommented on DrinkBase
solution: drink
# Visualizer for an openable entity with fill levels, already filled # Visualizer for an openable entity with fill levels, already filled
- type: entity - type: entity

View File

@@ -1,5 +1,5 @@
## Material costs to apply to a drink ## Material costs to apply to a drink
# Adding one of these bases as the first parent will override a previous inherited material # These bases should always be the first parent
# Fragile glass # Fragile glass
- type: entity - type: entity
@@ -42,6 +42,9 @@
damage: damage:
types: types:
Blunt: 5 Blunt: 5
# - type: EmitSoundOnLand TODO other materials need a sound
# sound:
# collection: GlassCrack
- type: PhysicalComposition - type: PhysicalComposition
materialComposition: materialComposition:
Glass: 25 Glass: 25
@@ -49,11 +52,9 @@
# Porcelain (like glass but no shard) # Porcelain (like glass but no shard)
- type: entity - type: entity
abstract: true abstract: true
parent: DrinkBaseMaterialGlass
id: DrinkBaseMaterialPorcelain id: DrinkBaseMaterialPorcelain
components: components:
- type: Damageable
damageContainer: Inorganic
damageModifierSet: FlimsyGlass
- type: Destructible - type: Destructible
thresholds: thresholds:
- trigger: # Overkill threshold - trigger: # Overkill threshold
@@ -72,15 +73,6 @@
- !type:SpillBehavior { } - !type:SpillBehavior { }
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
- type: DamageOnLand
ignoreResistances: true
damage:
types:
Blunt: 5 # so fragile it smashes when thrown
- type: DamageOtherOnHit
damage:
types:
Blunt: 5
- type: PhysicalComposition - type: PhysicalComposition
materialComposition: materialComposition:
Glass: 10 # Trace amounts of glass I guess. Important for overriding inheritance Glass: 10 # Trace amounts of glass I guess. Important for overriding inheritance
@@ -92,7 +84,7 @@
components: components:
- type: Damageable - type: Damageable
damageContainer: Inorganic damageContainer: Inorganic
#TODO damageModifierSet: FlimsyPlastic # damageModifierSet: FlimsyPlastic TODO
- type: Destructible - type: Destructible
thresholds: thresholds:
- trigger: # Overkill threshold - trigger: # Overkill threshold
@@ -131,7 +123,7 @@
components: components:
- type: Damageable - type: Damageable
damageContainer: Inorganic damageContainer: Inorganic
damageModifierSet: Cardboard # damageModifierSet: Cardboard TODO
- type: Destructible - type: Destructible
thresholds: thresholds:
- trigger: # Overkill threshold - trigger: # Overkill threshold
@@ -205,10 +197,10 @@
# strong metal # strong metal
- type: entity - type: entity
abstract: true abstract: true
parent: DrinkBaseMaterialMetal
id: DrinkBaseMaterialStrongMetal id: DrinkBaseMaterialStrongMetal
components: components:
- type: Damageable - type: Damageable
damageContainer: Inorganic
damageModifierSet: Metallic damageModifierSet: Metallic
- type: Destructible - type: Destructible
thresholds: thresholds:
@@ -228,15 +220,6 @@
- !type:SpillBehavior { } - !type:SpillBehavior { }
- !type:DoActsBehavior - !type:DoActsBehavior
acts: [ "Destruction" ] acts: [ "Destruction" ]
- type: DamageOnLand
ignoreResistances: true
damage:
types:
Blunt: 1
- type: DamageOtherOnHit
damage:
types:
Blunt: 5
- type: PhysicalComposition - type: PhysicalComposition
materialComposition: materialComposition:
Steel: 300 Steel: 300

View File

@@ -2,7 +2,7 @@
- type: entity - type: entity
abstract: true abstract: true
parent: [ DrinkBase, DrinkBaseMaterialGlass, DrinkBaseOpenable ] parent: [ DrinkBaseMaterialGlass, DrinkBase, DrinkBaseOpenable ]
id: DrinkBottleGlassBaseFull id: DrinkBottleGlassBaseFull
suffix: Full suffix: Full
components: components:
@@ -29,6 +29,30 @@
- type: Tag - type: Tag
tags: tags:
- DrinkBottle - DrinkBottle
- type: Destructible # Same as parent, but spawns BrokenBottle instead of ShardGlass
thresholds:
- trigger: # Overkill threshold
!type:DamageTrigger
damage: 200
behaviors:
- !type:DoActsBehavior
acts: [ "Destruction" ]
- trigger:
!type:DamageTrigger
damage: 5
behaviors:
- !type:PlaySoundBehavior
sound:
collection: GlassBreak
- !type:SpillBehavior { }
- !type:SpawnEntitiesBehavior
spawn:
BrokenBottle:
min: 1
max: 1
transferForensics: true
- !type:DoActsBehavior
acts: [ "Destruction" ]
- type: entity - type: entity
abstract: true abstract: true
@@ -88,7 +112,6 @@
map: ["enum.SolutionContainerLayers.Fill"] map: ["enum.SolutionContainerLayers.Fill"]
- type: SolutionContainerVisuals - type: SolutionContainerVisuals
maxFillLevels: 6 maxFillLevels: 6
fillBaseName: fill-
- type: entity - type: entity
parent: [DrinkVisualsOpenable, DrinkBottleGlassBaseFull] parent: [DrinkVisualsOpenable, DrinkBottleGlassBaseFull]
@@ -243,7 +266,6 @@
map: ["enum.SolutionContainerLayers.Fill"] map: ["enum.SolutionContainerLayers.Fill"]
- type: SolutionContainerVisuals - type: SolutionContainerVisuals
maxFillLevels: 6 maxFillLevels: 6
fillBaseName: fill-
- type: entity - type: entity
parent: [DrinkVisualsAllFilled, DrinkBottleGlassBaseFull] parent: [DrinkVisualsAllFilled, DrinkBottleGlassBaseFull]

View File

@@ -1,6 +1,6 @@
- type: entity - type: entity
abstract: true abstract: true
parent: [ DrinkBase, DrinkBaseMaterialPlastic, DrinkBaseOpenable ] parent: [ DrinkBaseMaterialPlastic, DrinkBase, DrinkBaseOpenable ]
id: DrinkBottlePlasticBaseFull id: DrinkBottlePlasticBaseFull
suffix: Full suffix: Full
components: components:

View File

@@ -1,7 +1,7 @@
# When adding new drinks also add to random spawner located in Resources\Prototypes\Entities\Markers\Spawners\Random\Food_Drinks\drinks_soda.yml # When adding new drinks also add to random spawner located in Resources\Prototypes\Entities\Markers\Spawners\Random\Food_Drinks\drinks_soda.yml
- type: entity - type: entity
abstract: true abstract: true
parent: [ DrinkBase, DrinkBaseMaterialMetal, DrinkBaseOpenable, DrinkVisualsOpenable ] parent: [ DrinkBaseMaterialMetal, DrinkBase, DrinkBaseOpenable, DrinkVisualsOpenable ]
id: DrinkCanBaseFull id: DrinkCanBaseFull
suffix: Full suffix: Full
components: components:

View File

@@ -22,7 +22,7 @@
# A mug is a type of cup.[2] # A mug is a type of cup.[2]
- type: entity - type: entity
abstract: true abstract: true
parent: [DrinkBaseCup, DrinkBaseMaterialPorcelain] # todo Should use DrinkVisualsFill, but inheritors have no in-hand and state names are wrong parent: [ DrinkBaseMaterialPorcelain, DrinkBaseCup ] # todo Should use DrinkVisualsFill, but inheritors have no in-hand and state names are wrong
id: DrinkBaseMug id: DrinkBaseMug
name: mug name: mug
description: A mug. description: A mug.
@@ -46,7 +46,7 @@
## Misc Cups ## Misc Cups
- type: entity - type: entity
parent: [DrinkBaseCup, DrinkBaseMaterialGold] parent: [DrinkBaseMaterialGold, DrinkBaseCup]
id: DrinkGoldenCup id: DrinkGoldenCup
name: golden cup name: golden cup
description: A golden cup. description: A golden cup.
@@ -73,7 +73,7 @@
maxFillLevels: 4 maxFillLevels: 4
- type: entity - type: entity
parent: [ DrinkBaseCup, DrinkBaseMaterialGlass, DrinkVisualsFillOverlay ] parent: [ DrinkBaseMaterialGlass, DrinkBaseCup, DrinkVisualsFillOverlay ]
id: DrinkGlassCoupeShaped id: DrinkGlassCoupeShaped
name: coupe glass name: coupe glass
description: A classic thin neck coupe glass, the icon of fragile labels on crates around the galaxy. description: A classic thin neck coupe glass, the icon of fragile labels on crates around the galaxy.
@@ -93,7 +93,7 @@
inHandsMaxFillLevels: 1 inHandsMaxFillLevels: 1
- type: entity - type: entity
parent: [DrinkBaseCup, DrinkBaseMaterialCardboard] # TODO should use DrinkVisualsFill but state names are wrong and no inhand parent: [DrinkBaseMaterialCardboard, DrinkBaseCup] # TODO should use DrinkVisualsFill but state names are wrong and no inhand
id: DrinkWaterCup id: DrinkWaterCup
name: water cup name: water cup
description: A paper water cup. description: A paper water cup.
@@ -351,7 +351,7 @@
# TODO this needs fill levels # TODO this needs fill levels
- type: entity - type: entity
parent: [DrinkBaseCup, DrinkBaseMaterialPlastic] parent: [DrinkBaseMaterialPlastic, DrinkBaseCup]
id: DrinkLean id: DrinkLean
name: grape juice name: grape juice
description: Damn, no fun allowed. description: Damn, no fun allowed.

View File

@@ -1,6 +1,6 @@
- type: entity - type: entity
abstract: true abstract: true
parent: [DrinkBase, DrinkBaseMaterialStrongMetal, DrinkBaseOpenable, DrinkVisualsOpenable] parent: [DrinkBaseMaterialStrongMetal, DrinkBase, DrinkBaseOpenable, DrinkVisualsOpenable]
id: FlaskBase id: FlaskBase
components: components:
- type: SolutionContainerManager - type: SolutionContainerManager
@@ -21,7 +21,7 @@
# Flasks # Flasks
- type: entity - type: entity
parent: [DrinkBase, DrinkBaseMaterialStrongMetal] parent: [DrinkBaseMaterialStrongMetal, DrinkBase]
id: DrinkFlaskOld id: DrinkFlaskOld
name: old flask name: old flask
description: A decrepit old flask, its lid seems to be missing. description: A decrepit old flask, its lid seems to be missing.

View File

@@ -1,5 +1,5 @@
- type: entity - type: entity
parent: [ DrinkBase, DrinkBaseMaterialPlastic, DrinkBaseOpenable, DrinkVisualsOpenable ] # todo Should use DrinkVisualAll, but sprite has no inhand parent: [ DrinkBaseMaterialPlastic, DrinkBase, DrinkBaseOpenable, DrinkVisualsOpenable ] # todo Should use DrinkVisualAll, but sprite has no inhand
id: DrinkSpaceGlue id: DrinkSpaceGlue
name: space glue tube name: space glue tube
description: High performance glue intended for maintenance of extremely complex mechanical equipment. DON'T DRINK! description: High performance glue intended for maintenance of extremely complex mechanical equipment. DON'T DRINK!
@@ -34,7 +34,7 @@
solution: drink solution: drink
- type: entity - type: entity
parent: [ DrinkBase, DrinkBaseMaterialPlastic, DrinkBaseOpenable, DrinkVisualsOpenable ] # Should use DrinkVisualAll, but sprite has no inhand parent: [ DrinkBaseMaterialPlastic, DrinkBase, DrinkBaseOpenable, DrinkVisualsOpenable ] # Should use DrinkVisualAll, but sprite has no inhand
id: DrinkSpaceLube id: DrinkSpaceLube
name: space lube tube name: space lube tube
description: High performance lubricant intended for maintenance of extremely complex mechanical equipment. description: High performance lubricant intended for maintenance of extremely complex mechanical equipment.
@@ -88,7 +88,7 @@
Quantity: 200 Quantity: 200
- type: entity - type: entity
parent: [DrinkBase, DrinkBaseMaterialGlass] parent: [DrinkBaseMaterialGlass, DrinkBase]
id: DrinkJarWhat id: DrinkJarWhat
name: jar of something name: jar of something
description: You can't really tell what this is. description: You can't really tell what this is.

View File

@@ -4,7 +4,7 @@
# Transformable container - normal glass # Transformable container - normal glass
- type: entity - type: entity
parent: [DrinkBaseCup, DrinkBaseMaterialGlass] # todo parent to DrinkVisualsFillOverlay after in-hands are added parent: [DrinkBaseMaterialGlass, DrinkBaseCup] # todo parent to DrinkVisualsFillOverlay after in-hands are added
id: DrinkGlass id: DrinkGlass
name: metamorphic glass name: metamorphic glass
description: A metamorphic glass that automagically turns into a glass appropriate for the drink within. There's a sanded off patent number on the bottom. description: A metamorphic glass that automagically turns into a glass appropriate for the drink within. There's a sanded off patent number on the bottom.

View File

@@ -1,5 +1,5 @@
- type: entity - type: entity
parent: [DrinkBase, DrinkBaseMaterialGlass, DrinkVisualsFillOverlay] parent: [DrinkBaseMaterialGlass, DrinkBase, DrinkVisualsFillOverlay]
id: DrinkShotGlass id: DrinkShotGlass
name: shot glass name: shot glass
description: Perfect for slamming down onto the table angrily. description: Perfect for slamming down onto the table angrily.
@@ -31,7 +31,7 @@
- DrinkGlass - DrinkGlass
- type: entity - type: entity
parent: [DrinkBase, DrinkBaseMaterialMetal] parent: [DrinkBaseMaterialMetal, DrinkBase]
id: DrinkIceBucket id: DrinkIceBucket
name: ice bucket name: ice bucket
description: A special bucket of refreshy ice. Prohibited use for challenge with the same name! description: A special bucket of refreshy ice. Prohibited use for challenge with the same name!
@@ -50,7 +50,7 @@
Steel: 75 Steel: 75
- type: entity - type: entity
parent: [DrinkBase, DrinkBaseMaterialPorcelain] parent: [DrinkBaseMaterialPorcelain, DrinkBase]
id: DrinkTeapot id: DrinkTeapot
name: teapot # short and stout name: teapot # short and stout
description: An elegant teapot. It simply oozes class. description: An elegant teapot. It simply oozes class.
@@ -123,7 +123,7 @@
# Bartender tools # Bartender tools
- type: entity - type: entity
parent: [DrinkBase, DrinkBaseMaterialStrongMetal] parent: [DrinkBaseMaterialStrongMetal, DrinkBase]
id: DrinkShaker id: DrinkShaker
name: shaker name: shaker
description: The trusty mixing buddy of the bartender. description: The trusty mixing buddy of the bartender.
@@ -151,7 +151,7 @@
solution: drink solution: drink
- type: entity - type: entity
parent: [DrinkBase, DrinkBaseMaterialMetal] parent: [DrinkBaseMaterialMetal, DrinkBase]
id: DrinkJigger id: DrinkJigger
name: jigger name: jigger
description: Like a shaker, but smaller. Used to control the amount of ingredients. description: Like a shaker, but smaller. Used to control the amount of ingredients.
@@ -178,7 +178,7 @@
solution: drink solution: drink
- type: entity - type: entity
parent: [DrinkBase, DrinkBaseMaterialStrongMetal, DrinkVisualsFill] parent: [DrinkBaseMaterialStrongMetal, DrinkBase, DrinkVisualsFill]
id: Pitcher id: Pitcher
name: metal pitcher name: metal pitcher
description: A stainless steel insulated pitcher. Everyone's best friend in the morning. description: A stainless steel insulated pitcher. Everyone's best friend in the morning.
@@ -204,7 +204,7 @@
- type: entity - type: entity
abstract: true abstract: true
parent: [DrinkBase, DrinkBaseMaterialGlass] parent: [DrinkBaseMaterialGlass, DrinkBase]
id: DrinkShakeBase id: DrinkShakeBase
description: '' description: ''
components: components: