]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
butter is slippery (#29772)
authorIProduceWidgets <107586145+IProduceWidgets@users.noreply.github.com>
Wed, 7 Aug 2024 21:47:03 +0000 (17:47 -0400)
committerGitHub <noreply@github.com>
Wed, 7 Aug 2024 21:47:03 +0000 (15:47 -0600)
* butter slippery

* rerun tests

* standardize

Resources/Prototypes/Entities/Objects/Consumable/Food/ingredients.yml

index f1f30f6c46ddf12fd4d5a3461540a9592fe457e8..102703f2a56f4f73bb53eed8815f3498afde30fd 100644 (file)
@@ -1,4 +1,5 @@
 # Lots of misc stuff in here, hard to parent it.
+# ^ Yeah, this stuff should probably get split into different files but not my fight today.
 
 # Powder (For when you throw stuff like flour and it explodes)
 
   components:
   - type: Sprite
     state: butter
+  - type: Slippery
+  - type: StepTrigger
+    intersectRatio: 0.2
+  - type: CollisionWake
+    enabled: false
+  - type: Physics
+    bodyType: Dynamic
+  - type: Fixtures
+    fixtures:
+      slips:
+        shape:
+          !type:PhysShapeAabb
+          bounds: "-0.3,-0.2,0.3,0.2"
+        layer:
+        - SlipLayer
+        hard: false
+      fix1:
+        shape:
+          !type:PhysShapeAabb
+          bounds: "-0.3,-0.2,0.3,0.2"
+        density: 10
+        mask:
+        - ItemMask
 
 - type: entity
   name: stick of cannabis butter
-  parent: FoodBakingBase
+  parent: FoodButter
   id: FoodCannabisButter
   description: Add this to your favorite baked goods for an irie time.
   components: