]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
drinks_special part 1
authoriaada <iaada@users.noreply.github.com>
Fri, 25 Jul 2025 06:36:27 +0000 (01:36 -0500)
committeriaada <iaada@users.noreply.github.com>
Fri, 25 Jul 2025 06:36:27 +0000 (01:36 -0500)
Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_metamorphic.yml
Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_special.yml

index a5463757e67e76ca0b1d56534a60e9aeab372ad0..8065c4164a9ec633e85f4ad50f7390d7cc5fcc37 100644 (file)
@@ -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
 
       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
index 02a4346ebca8511626b9796b92623449a9fa8eac..cb958d67761adff1d8bd808340d08658441e6c4f 100644 (file)
@@ -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:
     solutions:
       drink:
         maxVol: 5
-  - type: SolutionTransfer
-    transferAmount: 10
-    minTransferAmount: 10
-  - type: Drink
   - type: Sprite
     sprite: Objects/Consumable/Drinks/shotglass.rsi
     layers:
     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
         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.
     canChangeTransferAmount: true
     minTransferAmount: 1
     maxTransferAmount: 20
-  - type: MixableSolution
-    solution: drink
   - type: FitsInDispenser
     solution: drink
   - type: Sprite
       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!