]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add bagels (#24799)
authorDrEnzyme <DrEnzyme@gmail.com>
Sun, 23 Jun 2024 19:33:12 +0000 (07:33 +1200)
committerGitHub <noreply@github.com>
Sun, 23 Jun 2024 19:33:12 +0000 (12:33 -0700)
Bagels are made by using a rolling pin on a dough slice to make a dough rope, then cooking the dough rope in a microwave for 5 seconds. There are two types: a normal bagel and a poppyseed bagel. The poppyseed bagel requires a poppy and a dough rope and has a small (5u) quantity of Bicaridine inside of it in addition to its nutriment.

Co-authored-by: Kevin Zheng <kevinz5000@gmail.com>
Resources/Prototypes/Entities/Markers/Spawners/Random/Food_Drinks/food_single.yml
Resources/Prototypes/Entities/Objects/Consumable/Food/Baked/bagel.yml [new file with mode: 0644]
Resources/Prototypes/Entities/Objects/Consumable/Food/ingredients.yml
Resources/Prototypes/Recipes/Construction/Graphs/food/doughrope.yml [new file with mode: 0644]
Resources/Prototypes/Recipes/Cooking/meal_recipes.yml
Resources/Textures/Objects/Consumable/Food/Baked/bagel.rsi/bagel-poppy.png [new file with mode: 0644]
Resources/Textures/Objects/Consumable/Food/Baked/bagel.rsi/bagel.png [new file with mode: 0644]
Resources/Textures/Objects/Consumable/Food/Baked/bagel.rsi/meta.json [new file with mode: 0644]
Resources/Textures/Objects/Consumable/Food/ingredients.rsi/dough-rope.png [new file with mode: 0644]
Resources/Textures/Objects/Consumable/Food/ingredients.rsi/meta.json

index 829ae92fc9dc75ea4f8bb1dc51eb760226fd3323..5cfe78c6d5a8cbcaa41c342e09857edd6c143ef0 100644 (file)
@@ -13,6 +13,8 @@
         state: plain
   - type: RandomSpawner
     prototypes:
+      - FoodBagel
+      - FoodBagelPoppy
       - FoodBurgerJelly
       - FoodBurgerCarp
       - FoodBurgerTofu
diff --git a/Resources/Prototypes/Entities/Objects/Consumable/Food/Baked/bagel.yml b/Resources/Prototypes/Entities/Objects/Consumable/Food/Baked/bagel.yml
new file mode 100644 (file)
index 0000000..8f23b6c
--- /dev/null
@@ -0,0 +1,49 @@
+# When adding new food also add to random spawner located in Resources\Prototypes\Entities\Markers\Spawners\Random\Food_Drinks\food_baked_whole.yml & food_baked_single.yml
+# Base
+
+- type: entity
+  id: FoodBagelBase
+  parent: FoodInjectableBase
+  abstract: true
+  description: A delicious bagel.
+  components:
+  - type: FlavorProfile
+    flavors:
+      - bread
+  - type: Sprite
+    sprite: Objects/Consumable/Food/Baked/bagel.rsi
+    state: bagel
+  - type: SolutionContainerManager
+    solutions:
+      food:
+        maxVol: 7
+        reagents:
+        - ReagentId: Nutriment
+          Quantity: 5
+
+- type: entity
+  id: FoodBagel
+  name: bagel
+  parent: FoodBagelBase
+
+- type: entity
+  id: FoodBagelPoppy
+  parent: FoodBagelBase
+  name: poppy seed bagel
+  description: A delicious bagel topped with bicaridine-infused poppy seeds.
+  components:
+  - type: FlavorProfile
+    flavors:
+      - bread
+      - medicine
+  - type: Sprite
+    state: bagel-poppy
+  - type: SolutionContainerManager
+    solutions:
+      food:
+        maxVol: 12
+        reagents:
+        - ReagentId: Bicaridine
+          Quantity: 5
+        - ReagentId: Nutriment
+          Quantity: 5
index dcf2f3355ce7e7e3be1047875ecd30254d61aca6..be23c2e43f6c4a55446cde5cd5599b32c251093e 100644 (file)
   - type: Tag
     tags:
     - Slice
+  - type: Construction
+    graph: DoughRope
+    node: start
+
+- type: entity
+  name: dough rope
+  parent: FoodBakingBase
+  id: FoodDoughRope
+  description: A thin noodle of dough. Can be cooked into a bagel.
+  components:
+  - type: FlavorProfile
+    flavors:
+      - dough
+  - type: Sprite
+    state: dough-rope
+  - type: Construction
+    graph: DoughRope
+    node: rolled
 
 - type: entity
   name: cornmeal dough
diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/food/doughrope.yml b/Resources/Prototypes/Recipes/Construction/Graphs/food/doughrope.yml
new file mode 100644 (file)
index 0000000..52a9a81
--- /dev/null
@@ -0,0 +1,13 @@
+- type: constructionGraph
+  id: DoughRope
+  start: start
+  graph:
+  - node: start
+    entity: FoodDoughSlice
+    edges:
+    - to: rolled
+      steps:
+      - tool: Rolling
+        doAfter: 1
+  - node: rolled
+    entity: FoodDoughRope
\ No newline at end of file
index 8cb4c5514672b4cbc23f172213395f437ffc403e..0a8ff18aad8f02208344bf2d6255bdab66273fb3 100644 (file)
@@ -6,6 +6,24 @@
   solids:
     FoodDoughSlice: 1 # one third of a standard bread dough recipe
 
+#Bagels
+- type: microwaveMealRecipe
+  id: RecipeBagel
+  name: bagel recipe
+  result: FoodBagel
+  time: 5
+  solids:
+    FoodDoughRope: 1 # created by rolling a dough slice.
+
+- type: microwaveMealRecipe
+  id: RecipeBagelPoppy
+  name: poppyseed bagel recipe
+  result: FoodBagelPoppy
+  time: 5
+  solids:
+    FoodDoughRope: 1
+    PoppySeeds: 1
+
 #Burgers
 
 - type: microwaveMealRecipe
diff --git a/Resources/Textures/Objects/Consumable/Food/Baked/bagel.rsi/bagel-poppy.png b/Resources/Textures/Objects/Consumable/Food/Baked/bagel.rsi/bagel-poppy.png
new file mode 100644 (file)
index 0000000..e9b8cc1
Binary files /dev/null and b/Resources/Textures/Objects/Consumable/Food/Baked/bagel.rsi/bagel-poppy.png differ
diff --git a/Resources/Textures/Objects/Consumable/Food/Baked/bagel.rsi/bagel.png b/Resources/Textures/Objects/Consumable/Food/Baked/bagel.rsi/bagel.png
new file mode 100644 (file)
index 0000000..1f36b3b
Binary files /dev/null and b/Resources/Textures/Objects/Consumable/Food/Baked/bagel.rsi/bagel.png differ
diff --git a/Resources/Textures/Objects/Consumable/Food/Baked/bagel.rsi/meta.json b/Resources/Textures/Objects/Consumable/Food/Baked/bagel.rsi/meta.json
new file mode 100644 (file)
index 0000000..fcd9dc0
--- /dev/null
@@ -0,0 +1,17 @@
+{
+    "version": 1,
+    "license": "CC-BY-SA-3.0",
+    "copyright": "Bagel and BagelPoppy were created by DrEnzyme",
+    "size": {
+      "x": 32,
+      "y": 32
+    },
+    "states": [
+      {
+        "name": "bagel"
+      },
+      {
+        "name": "bagel-poppy"
+      }
+    ]
+}
\ No newline at end of file
diff --git a/Resources/Textures/Objects/Consumable/Food/ingredients.rsi/dough-rope.png b/Resources/Textures/Objects/Consumable/Food/ingredients.rsi/dough-rope.png
new file mode 100644 (file)
index 0000000..864df46
Binary files /dev/null and b/Resources/Textures/Objects/Consumable/Food/ingredients.rsi/dough-rope.png differ
index 6633b0b0bd660c0ace7fe38410ed7f174f28d588..b4317b0c76f99fee1ca346980f7d28dfce03fbfe 100644 (file)
@@ -52,6 +52,9 @@
     {
       "name": "dough-pie"
     },
+    {
+      "name": "dough-rope"
+    },
     {
       "name": "dough-flat"
     },