From 9f9b439688d886842e7ada2db969b662bcff8a9f Mon Sep 17 00:00:00 2001 From: iaada Date: Fri, 25 Jul 2025 01:36:27 -0500 Subject: [PATCH] drinks_special part 1 --- .../Consumable/Drinks/drinks_metamorphic.yml | 34 +++++++++- .../Consumable/Drinks/drinks_special.yml | 63 ++----------------- 2 files changed, 36 insertions(+), 61 deletions(-) diff --git a/Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_metamorphic.yml b/Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_metamorphic.yml index a5463757e6..8065c4164a 100644 --- a/Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_metamorphic.yml +++ b/Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_metamorphic.yml @@ -1,4 +1,4 @@ -# File for the metamorphic glass and pre-filled metamorph glass +# File for the metamorphic glass and pre-filled drinks # TODO Autogenerate prototypes so this file isn't 1000s of lines # When adding new drinks also add to random spawner located in Resources\Prototypes\Entities\Markers\Spawners\Random\Food_Drinks\drinks_glass.yml @@ -33,7 +33,37 @@ state: icon - type: TransformableContainer -# Reagent fills +- type: entity + parent: DrinkGlassBase + id: DrinkJar + name: jar + description: The hipster's cup. + components: + - type: Sprite + sprite: Objects/Consumable/Drinks/jar.rsi + layers: + - state: icon + map: [ "enum.SolutionContainerLayers.Base" ] + - state: fill1 + map: [ "enum.SolutionContainerLayers.Fill" ] + visible: false + - state: icon-front + map: [ "enum.SolutionContainerLayers.Overlay" ] + - type: Appearance + - type: SolutionContainerManager + solutions: + drink: + maxVol: 50 + - type: SolutionContainerVisuals + maxFillLevels: 9 + fillBaseName: fill + metamorphic: true + metamorphicDefaultSprite: + sprite: Objects/Consumable/Drinks/jar.rsi + state: icon + - type: TransformableContainer + +## Reagent filled - type: entity parent: DrinkGlass diff --git a/Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_special.yml b/Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_special.yml index 02a4346ebc..cb958d6776 100644 --- a/Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_special.yml +++ b/Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_special.yml @@ -1,5 +1,5 @@ - type: entity - parent: BaseItem + parent: DrinkBase id: DrinkShaker name: shaker description: The trusty mixing buddy of the bartender. @@ -8,35 +8,17 @@ solutions: drink: maxVol: 100 - - type: MixableSolution - solution: drink - - type: Drink - - type: Shakeable - type: FitsInDispenser solution: drink - - type: DrawableSolution - solution: drink - - type: RefillableSolution - solution: drink - - type: DrainableSolution - solution: drink - - type: SolutionTransfer - canChangeTransferAmount: true - - type: Spillable - solution: drink - type: Sprite sprite: Objects/Consumable/Drinks/shaker.rsi state: icon - type: Item sprite: Objects/Consumable/Drinks/shaker.rsi - - type: UserInterface - interfaces: - enum.TransferAmountUiKey.Key: - type: TransferAmountBoundUserInterface - type: PhysicalComposition materialComposition: Steel: 50 - - type: DnaSubstanceTrace + - type: Shakeable - type: ReactionMixer mixOnInteract: false reactionTypes: @@ -52,10 +34,6 @@ solutions: drink: maxVol: 5 - - type: SolutionTransfer - transferAmount: 10 - minTransferAmount: 10 - - type: Drink - type: Sprite sprite: Objects/Consumable/Drinks/shotglass.rsi layers: @@ -73,37 +51,6 @@ inHandsMaxFillLevels: 1 inHandsFillBaseName: -fill- -- type: entity - parent: DrinkGlassBase - id: DrinkJar - name: jar - description: The hipster's cup. - components: - - type: Drink - - type: Sprite - sprite: Objects/Consumable/Drinks/jar.rsi - layers: - - state: icon - map: [ "enum.SolutionContainerLayers.Base" ] - - state: fill1 - map: [ "enum.SolutionContainerLayers.Fill" ] - visible: false - - state: icon-front - map: [ "enum.SolutionContainerLayers.Overlay" ] - - type: Appearance - - type: SolutionContainerManager - solutions: - drink: - maxVol: 50 - - type: SolutionContainerVisuals - maxFillLevels: 9 - fillBaseName: fill - metamorphic: true - metamorphicDefaultSprite: - sprite: Objects/Consumable/Drinks/jar.rsi - state: icon - - type: TransformableContainer - - type: entity parent: DrinkGlassBase id: DrinkJarWhat @@ -135,7 +82,7 @@ type: TransferAmountBoundUserInterface - type: entity - parent: [BaseItem, BartenderMixer] + parent: BaseDrink id: DrinkJigger name: jigger description: Like a shaker, but smaller. Used to control the amount of ingredients. @@ -148,8 +95,6 @@ canChangeTransferAmount: true minTransferAmount: 1 maxTransferAmount: 20 - - type: MixableSolution - solution: drink - type: FitsInDispenser solution: drink - type: Sprite @@ -160,7 +105,7 @@ Steel: 20 - type: entity - parent: [BaseItem, BartenderMixer] + parent: BaseDrink id: DrinkIceBucket name: ice bucket description: A special bucket of refreshy ice. Prohibited use for challenge with the same name! -- 2.51.2