]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Add rolling pins for flattening dough (#20624)
authordeltanedas <39013340+deltanedas@users.noreply.github.com>
Mon, 2 Oct 2023 19:21:15 +0000 (20:21 +0100)
committerGitHub <noreply@github.com>
Mon, 2 Oct 2023 19:21:15 +0000 (11:21 -0800)
17 files changed:
Resources/Locale/en-US/tools/tool-qualities.ftl
Resources/Prototypes/Catalog/VendingMachines/Inventories/dinnerware.yml
Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_bottles.yml
Resources/Prototypes/Entities/Objects/Consumable/Drinks/drinks_cans.yml
Resources/Prototypes/Entities/Objects/Consumable/Food/ingredients.yml
Resources/Prototypes/Entities/Objects/Misc/fire_extinguisher.yml
Resources/Prototypes/Entities/Objects/Tools/gas_tanks.yml
Resources/Prototypes/Entities/Objects/Tools/tools.yml
Resources/Prototypes/Entities/Objects/Weapons/Melee/baseball_bat.yml
Resources/Prototypes/Recipes/Construction/Graphs/food/pizza.yml [new file with mode: 0644]
Resources/Prototypes/Recipes/Cooking/meal_recipes.yml
Resources/Prototypes/tool_qualities.yml
Resources/ServerInfo/Guidebook/Service/FoodRecipes.xml
Resources/Textures/Objects/Tools/rolling_pin.rsi/icon.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/rolling_pin.rsi/inhand-left.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/rolling_pin.rsi/inhand-right.png [new file with mode: 0644]
Resources/Textures/Objects/Tools/rolling_pin.rsi/meta.json [new file with mode: 0644]

index d12eb1104ebe90a4b53f587ec516c79c1ff76220..331925b4b98115d6b176b110a8c09a504550b9e5 100644 (file)
@@ -26,4 +26,7 @@ tool-quality-honking-name = Honking
 tool-quality-honking-tool-name = Bike Horn
 
 tool-quality-woodcutting-name = Woodcutting
-tool-quality-woodcutting-tool-name = Hatchet
\ No newline at end of file
+tool-quality-woodcutting-tool-name = Hatchet
+
+tool-quality-rolling-name = Rolling
+tool-quality-rolling-tool-name = Rolling Pin
index ccf702b210eac246b58601001c5e9354a2c840e0..86f35b52696d7d7ae283dae8f3bf6510e2461098 100644 (file)
@@ -3,6 +3,7 @@
   startingInventory:
     ButchCleaver: 1
     KitchenKnife: 5
+    RollingPin: 4
     Spoon: 4
     Fork: 4
     FoodBowlBig: 10
index bd817568162c56ff7cf150b014a7fb95eb4277e2..2fa487fa2cee29707fbb6cad6a0470ecd5af68c8 100644 (file)
             max: 1
       - !type:DoActsBehavior
         acts: [ "Destruction" ]
+  - type: Tool
+    qualities:
+    - Rolling
+    speed: 0.75 # not as good as a rolling pin but does the job
   - type: TrashOnEmpty
     solution: drink
 
index a68aba3d6e38557ca4843b8d32c996728fc08c51..118b2421367e3d11ec324f5c26aadda41171f062 100644 (file)
     damage:
       types:
         Blunt: 0
+  - type: Tool
+    qualities:
+    - Rolling
+    speed: 0.25 # its small so takes longer to roll the entire dough flat
   - type: ItemCooldown
   - type: SpaceGarbage
   - type: TrashOnEmpty
index c3b3bba35baf8acc9fd78376aa508093aabc359f..8ef9bab706a7f877dae38a1e4d12b8c79c8cc8e3 100644 (file)
   - type: SliceableFood
     count: 3
     slice: FoodDoughSlice
+  - type: Construction
+    graph: Pizza
+    node: start
 
 - type: entity
   name: dough slice
   components:
   - type: Sprite
     state: dough-flat
+  - type: Construction
+    graph: Pizza
+    node: flat
 
 - type: entity
   name: pizza bread
index 344d7074439781280f617eb0e9933686c8e6b959..66ab0ab7fb8e5784e75499f1cb50d090eee32064 100644 (file)
         Blunt: 10
     soundHit:
       path: /Audio/Weapons/smash.ogg
+  - type: Tool
+    qualities:
+    - Rolling
+    speed: 0.5 # its very big, akward to use
   - type: Appearance
   - type: GenericVisualizer
     visuals:
index 7f4ee54f79a1ebe010e385d645afedcdb6f24438..0fde43be318473db2740013721393a46f989e8a2 100644 (file)
     price: 20
 
 - type: entity
+  abstract: true
   parent: GasTankBase
+  id: GasTankRoundBase
+  components:
+  - type: Tool
+    qualities:
+    - Rolling
+    speed: 0.6 # fairly unwieldly but nice round surface
+
+- type: entity
+  parent: GasTankRoundBase
   id: OxygenTank
   name: oxygen tank
   description: A standard cylindrical gas tank for oxygen.
@@ -68,7 +78,7 @@
     sprite: Objects/Tanks/yellow.rsi
 
 - type: entity
-  parent: GasTankBase
+  parent: GasTankRoundBase
   id: NitrogenTank
   name: nitrogen tank
   description: A standard cylindrical gas tank for nitrogen.
@@ -81,7 +91,7 @@
     sprite: Objects/Tanks/red.rsi
 
 - type: entity
-  parent: GasTankBase
+  parent: GasTankRoundBase
   id: EmergencyOxygenTank
   name: emergency oxygen tank
   description: An easily portable tank for emergencies. Contains very little oxygen, rated for survival use only.
         Blunt: 7.5
 
 - type: entity
-  parent: GasTankBase
+  parent: GasTankRoundBase
   id: AirTank
   name: air tank
   description: Mixed anyone?
     sprite: Objects/Tanks/generic.rsi
 
 - type: entity
-  parent: GasTankBase
+  parent: GasTankRoundBase
   id: NitrousOxideTank
   name: nitrous oxide tank
   description: Contains a mixture of air and nitrous oxide. Make sure you don't refill it with pure N2O.
     sprite: Objects/Tanks/anesthetic.rsi
 
 - type: entity
+  # it's a square so no rolling dough
   parent: GasTankBase
   id: PlasmaTank
   name: plasma tank
index 82bef616de47b74dcd5c93ed87d39956d9181017..c9e7bd0403adc9dc339cce7006e8f9ea00e3db4d 100644 (file)
       Wood: 50
   - type: StaticPrice
     price: 25
+
+- type: entity
+  parent: BaseItem
+  id: RollingPin
+  name: rolling pin
+  description: A tool used to shape and flatten dough.
+  components:
+  - type: Sprite
+    sprite: Objects/Tools/rolling_pin.rsi
+    state: icon
+  - type: Item
+    sprite: Objects/Tools/rolling_pin.rsi
+    size: 10
+  - type: ItemCooldown
+  - type: MeleeWeapon
+    damage:
+      types:
+        Blunt: 7
+  - type: Tool
+    qualities:
+    - Rolling
+  - type: PhysicalComposition
+    materialComposition:
+      Wood: 100
index c8134180bccbcf56185fe1c3ba6532978f1e5fc7..4cd71e723939f208578042139e688748b855251a 100644 (file)
         Blunt: 8
   - type: Item
     size: 80
+  - type: Tool
+    qualities:
+    - Rolling
+    speed: 0.75 # a bit unwieldly but does the job
   - type: Clothing
     quickEquip: false
     slots:
diff --git a/Resources/Prototypes/Recipes/Construction/Graphs/food/pizza.yml b/Resources/Prototypes/Recipes/Construction/Graphs/food/pizza.yml
new file mode 100644 (file)
index 0000000..c818410
--- /dev/null
@@ -0,0 +1,14 @@
+- type: constructionGraph
+  id: Pizza
+  start: start
+  graph:
+  - node: start
+    entity: FoodDough
+    edges:
+    - to: flat
+      steps:
+      - tool: Rolling
+        doAfter: 1
+  - node: flat
+    entity: FoodDoughFlat
+  # TODO: add stuff for adding ingredients then cooking the pizza, wsci
index 3b15730535e54a8599523516e2e454c64fe6d192..1290c73a1d959779961de52f89edec70ca7101c6 100644 (file)
   solids:
     FoodBreadPlainSlice: 2
 
-#Pizzas
+#Pizzas TODO: contruction graph based pizza
 - type: microwaveMealRecipe
   id: RecipeMargheritaPizza
   name: margherita pizza recipe
   result: FoodPizzaMargherita
   time: 30
   solids:
-    FoodDough: 1
+    FoodDoughFlat: 1
     FoodCheeseSlice: 1
     FoodTomato: 4
 
   result: FoodPizzaMushroom
   time: 25
   solids:
-    FoodDough: 1
+    FoodDoughFlat: 1
     FoodMushroom: 5
 
 - type: microwaveMealRecipe
   result: FoodPizzaMeat
   time: 30
   solids:
-    FoodDough: 1
+    FoodDoughFlat: 1
     FoodMeat: 3
     FoodCheeseSlice: 1
     FoodTomato: 1
   result: FoodPizzaVegetable
   time: 30
   solids:
-    FoodDough: 1
+    FoodDoughFlat: 1
     FoodEggplant: 1
     FoodCarrot: 1
     FoodCorn: 1
   result: FoodPizzaPineapple
   time: 30
   solids:
-    FoodDough: 1
+    FoodDoughFlat: 1
     FoodMeatChickenCutlet: 3
     FoodPineappleSlice: 5
 
   result: FoodPizzaDank
   time: 30
   solids:
-    FoodDough: 1
+    FoodDoughFlat: 1
     FoodAmbrosiaVulgaris: 3
     FoodCheeseSlice: 1
     FoodTomato: 1
   result: FoodPizzaDonkpocket
   time: 30
   solids:
-    FoodDough: 1
+    FoodDoughFlat: 1
     FoodDonkpocketWarm: 3
     FoodCheeseSlice: 1
     FoodTomato: 1
index 65254542873cc492c328506d34bccaece2a095aa..ff55d9fcf14c42327a1f6763e35a6a15b358e739 100644 (file)
   name: tool-quality-honking-name
   toolName: tool-quality-honking-tool-name
   spawn: BikeHorn
-  icon: { sprite: Objects/Fun/bikehorn.rsi, state: icon }
\ No newline at end of file
+  icon: { sprite: Objects/Fun/bikehorn.rsi, state: icon }
+
+- type: tool
+  id: Rolling
+  name: tool-quality-rolling-name
+  toolName: tool-quality-rolling-tool-name
+  spawn: RollingPin
+  icon: { sprite: Objects/Tools/rolling_pin.rsi, state: icon }
index 02bf32677e3e4b43b5a82f7427445410863e88e5..338cbea408227fdc0c1265da5e561748566795a0 100644 (file)
@@ -25,6 +25,7 @@ WARNING: This is not an automatically generated list, things here may become out
 <GuideEntityEmbed Entity="FoodTofu"/>
 <GuideEntityEmbed Entity="FoodDoughPie"/>
 <GuideEntityEmbed Entity="FoodCakeBatter"/>
+<GuideEntityEmbed Entity="FoodDoughFlat"/>
 </Box>
 
 <Box>
@@ -39,6 +40,7 @@ WARNING: This is not an automatically generated list, things here may become out
 - Bun: Microwave Dough Slice for 5 Seconds
 - Cutlet: Slice Raw Meat
 - Cheese Wedge: Slice Cheese Wheel
+- Flat Dough: Use a rolling pin or a round object (fire extinguisher, soda can, bottle) on Dough.
 
 ## Food Examples
 
@@ -46,7 +48,7 @@ WARNING: This is not an automatically generated list, things here may become out
 - Plain Burger: Microwave 1 Bun and 1 Raw Meat for 10 Seconds
 - Tomato Soup: 10u Water, 1 Bowl, and 2 Tomatoes for 10 Seconds
 - Citrus Salad: 1 Bowl, 1 Lemon, 1 Lime, 1 Orange for 5 Seconds
-- Margherita Pizza: Microwave 1 Dough, 1 Cheese Wedge, and 4 Tomatoes for 30 Seconds
+- Margherita Pizza: Microwave 1 Flat Dough, 1 Cheese Wedge, and 4 Tomatoes for 30 Seconds
 - Cake: 1 Cake Batter for 15 Seconds
 - Apple Pie: 1 Pie Dough, 3 Apples, and 1 Pie Tin for 15 Seconds
 
diff --git a/Resources/Textures/Objects/Tools/rolling_pin.rsi/icon.png b/Resources/Textures/Objects/Tools/rolling_pin.rsi/icon.png
new file mode 100644 (file)
index 0000000..4cc81ec
Binary files /dev/null and b/Resources/Textures/Objects/Tools/rolling_pin.rsi/icon.png differ
diff --git a/Resources/Textures/Objects/Tools/rolling_pin.rsi/inhand-left.png b/Resources/Textures/Objects/Tools/rolling_pin.rsi/inhand-left.png
new file mode 100644 (file)
index 0000000..d356033
Binary files /dev/null and b/Resources/Textures/Objects/Tools/rolling_pin.rsi/inhand-left.png differ
diff --git a/Resources/Textures/Objects/Tools/rolling_pin.rsi/inhand-right.png b/Resources/Textures/Objects/Tools/rolling_pin.rsi/inhand-right.png
new file mode 100644 (file)
index 0000000..6866756
Binary files /dev/null and b/Resources/Textures/Objects/Tools/rolling_pin.rsi/inhand-right.png differ
diff --git a/Resources/Textures/Objects/Tools/rolling_pin.rsi/meta.json b/Resources/Textures/Objects/Tools/rolling_pin.rsi/meta.json
new file mode 100644 (file)
index 0000000..407ebc3
--- /dev/null
@@ -0,0 +1,22 @@
+{
+  "version": 1,
+  "license": "CC-BY-SA-3.0",
+  "copyright": "icon.png taken from https://github.com/DesertRose2/desertrose/blob/0348c98f8343b5cb82d87df12411ba647b2b1b4f/icons/obj/kitchen.dmi. Inhand sprites created by deltanedas (github) for SS14.",
+  "size": {
+    "x": 32,
+    "y": 32
+  },
+  "states": [
+    {
+      "name": "icon"
+    },
+    {
+      "name": "inhand-left",
+      "directions": 4
+    },
+    {
+      "name": "inhand-right",
+      "directions": 4
+    }
+  ]
+}