]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Spaceshroom grilling (#31872)
authorgoet <6637097+goet@users.noreply.github.com>
Mon, 16 Dec 2024 17:53:38 +0000 (18:53 +0100)
committerGitHub <noreply@github.com>
Mon, 16 Dec 2024 17:53:38 +0000 (18:53 +0100)
* make spaceshroom cookable on grill

* remove microwave recipe

Resources/Prototypes/Entities/Objects/Misc/spaceshroom.yml
Resources/Prototypes/Recipes/Construction/Graphs/food/spaceshroom.yml [new file with mode: 0644]
Resources/Prototypes/Recipes/Cooking/meal_recipes.yml

index 91c90d1ce96d19913b25c25f8b8a69e1632db00a..c6d27dba67de381c0163930901b8a94055f656ca 100644 (file)
     weightedRandomId: RandomFillSpaceshroom
   - type: StaticPrice
     price: 20
+  - type: Fixtures
+    fixtures:
+      fix1:
+        shape:
+          !type:PhysShapeAabb
+          bounds: "-0.25,-0.25,0.25,0.25"
+        density: 1
+        mask:
+        - ItemMask
+        restitution: 0.3
+        friction: 0.2
+  - type: Construction
+    graph: CookedSpaceshroom
+    node: start
+    defaultTarget: cooked spaceshroom
+  - type: AtmosExposed
+  - type: Temperature
+    currentTemperature: 290
+  - type: InternalTemperature
+    thickness: 0.02
+    area: 0.02
+    conductivity: 0.43
 
 - type: weightedRandomFillSolution
   id: RandomFillSpaceshroom
   - type: Produce
   - type: StaticPrice
     price: 40
+  - type: Construction
+    graph: CookedSpaceshroom
+    node: cooked spaceshroom
diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/food/spaceshroom.yml b/Resources/Prototypes/Recipes/Construction/Graphs/food/spaceshroom.yml
new file mode 100644 (file)
index 0000000..ffef9f1
--- /dev/null
@@ -0,0 +1,16 @@
+- type: constructionGraph
+  id: CookedSpaceshroom
+  start: start
+  graph:
+
+  - node: start
+    edges:
+    - to: cooked spaceshroom
+      completed:
+      - !type:PlaySound
+        sound: /Audio/Effects/sizzle.ogg
+      steps:
+      - minTemperature: 375 # little bit above boiling, shrooms need to lose all moisture to be good
+
+  - node: cooked spaceshroom
+    entity: FoodSpaceshroomCooked
index 5dc7f81ac22b0050014343ece7cd644630007c08..1ec6fc7233f4b29dc3a1027f7cf5d9ba74796b95 100644 (file)
     FoodChevreSlice: 1
     FoodBreadBaguetteSlice: 1
 
-- type: microwaveMealRecipe
-  id: RecipeCookedSpaceshroom
-  name: cooked spaceshroom recipe
-  result: FoodSpaceshroomCooked
-  time: 5
-  solids:
-    FoodSpaceshroom: 1
-
 - type: microwaveMealRecipe
   id: RecipeCannabisButter
   name: cannabis butter recipe