]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Clean up bucket.yml (#40772)
authorāda <ss.adasts@gmail.com>
Wed, 8 Oct 2025 13:48:00 +0000 (08:48 -0500)
committerGitHub <noreply@github.com>
Wed, 8 Oct 2025 13:48:00 +0000 (13:48 +0000)
SMASH that bucket

Co-authored-by: iaada <iaada@users.noreply.github.com>
Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_base_materials.yml
Resources/Prototypes/Entities/Objects/Tools/bucket.yml

index 7db03edbf59a2ec85df30800cadaa76896d1af30..43df992b2ae1b4c86a49cfa58a5ab39bfff4aae2 100644 (file)
     materialComposition:
       Plastic: 25
 
+# Strong plastic
+- type: entity
+  abstract: true
+  parent: DrinkBaseMaterialPlastic
+  id: DrinkBaseMaterialStrongPlastic
+  components:
+  - type: Destructible
+    thresholds:
+    - trigger: # Overkill threshold
+        !type:DamageTrigger
+        damage: 200
+      behaviors:
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
+    - trigger:
+        !type:DamageTrigger
+        damage: 20 # can take a few more hits than basic plastic
+      behaviors:
+      - !type:PlaySoundBehavior
+        sound:
+          collection: MetalCrunch # TODO a plastic break collection
+      - !type:SpillBehavior { }
+      - !type:DoActsBehavior
+        acts: [ "Destruction" ]
+  - type: PhysicalComposition
+    materialComposition:
+      Plastic: 100
+
 # Fragile cardboard
 - type: entity
   abstract: true
index c62b178366b0b36c0b00fb1c9a3f108a0744cc0d..3c95afe69e401c9a245065aaf42a0a74a1036e68 100644 (file)
@@ -1,22 +1,13 @@
 - type: entity
-  parent: DrinkBase
+  parent: [ DrinkBaseMaterialStrongPlastic, DrinkBase, DrinkVisualsFill ]
   id: Bucket
   name: bucket
   description: It's a boring old bucket.
   components:
-  - type: Clickable
   - type: Edible
-    edible: Drink
-    solution: bucket
-    destroyOnEmpty: false
     utensil: Spoon
   - type: Sprite
     sprite: Objects/Tools/bucket.rsi
-    layers:
-    - state: icon
-    - map: ["enum.SolutionContainerLayers.Fill"]
-      state: fill-1
-      visible: false
   - type: Item
     size: Normal
   - type: Clothing
     quickEquip: false
   - type: SolutionContainerManager
     solutions:
-      bucket:
+      drink:
         maxVol: 250
-  - type: MixableSolution
-    solution: bucket
   - type: SolutionTransfer
     transferAmount: 100
     maxTransferAmount: 100
     minTransferAmount: 10
-    canChangeTransferAmount: true
-  - type: UserInterface
-    interfaces:
-      enum.TransferAmountUiKey.Key:
-        type: TransferAmountBoundUserInterface
-  - type: MeleeWeapon
-    soundNoDamage:
-      path: "/Audio/Effects/Fluids/splat.ogg"
-    damage:
-      types:
-        Blunt: 0
-  - type: Spillable
-    solution: bucket
   - type: SpillWhenWorn
-    solution: bucket
-  - type: DrawableSolution
-    solution: bucket
-  - type: RefillableSolution
-    solution: bucket
-  - type: DrainableSolution
-    solution: bucket
-  - type: SolutionItemStatus
-    solution: bucket
-  - type: Appearance
+    solution: drink
   - type: SolutionContainerVisuals
     maxFillLevels: 3
-    fillBaseName: fill-
-  - type: ExaminableSolution
-    solution: bucket
+    inHandsFillBaseName: null
   - type: Tag
     tags:
       - Bucket
   - type: PhysicalComposition
     materialComposition:
       Plastic: 50
-  - type: DnaSubstanceTrace
 
 - type: entity
   parent: Bucket
@@ -79,5 +43,5 @@
   components:
   - type: SolutionContainerManager
     solutions:
-      bucket:
+      drink:
         maxVol: 500