aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/recipes/newRecipes.yaml124
-rw-r--r--server/src/bin/graph.rs6
2 files changed, 3 insertions, 127 deletions
diff --git a/data/recipes/newRecipes.yaml b/data/recipes/newRecipes.yaml
deleted file mode 100644
index 59d00339..00000000
--- a/data/recipes/newRecipes.yaml
+++ /dev/null
@@ -1,124 +0,0 @@
-
-# rice based
-
-
-# grain based
-- hamburger :=
- - bun
- - cooked-meat | cooked-chicken
- - ?sliced-tomato
- - ?sliced-lettuce
- - ?sliced-garlic
- - ?sliced-onion
- - ?sliced-pickles
- - ?sliced-chesse
- - ?blended-tomato
- - ?blended-egg
-- frenchFries :=
- - cooked-potato
- - blended-tomato | blended-egg
- - ?spices
-- cook:pizza :=
- - sliced-dough
- - blended-tomato
- - sliced-chesse
- - ?sliced-lettuce
- - ?sliced-tomato
- - ?sliced-pickles
- - ?sliced-onion
- - ?sliced-radish
- - ?sliced-mushroom
- - ?sliced-olive
-- cook:unholyPizza :=
- - sliced-dough
- - blended-tomato
- - sliced-chesse
- - sliced-pineapple
-- toast :=
- - cooked-dough
- - cooked-egg | cooked-beans
-- fishNChips :=
- - cooked-fish
- - frenchFries
-# gen: Consumables are generatable
-# sample:
-### - gen
-### - bun
-### - tomato
-### - lettuce
-### - garlic
-### - onion
-### - pickles
-### - chesse
-### - potato
-# cooking: sliced-X -> cooked-X
-# sample:
-### - cook
-### - cooked-meat
-### - sliced-meat
-### - cooked-chicken
-### - sliced-chicken
-### - cooked-potato
-### - sliced-potato
-# blending: sliced-X -> blended-X
-# sample:
-### - blend
-### - blended-tomato
-### - sliced-tomato
-### - blended-egg
-### - sliced-egg
-# slice: X -> sliced-X
-# sample:
-### - slice
-### - sliced-tomato
-### - tomato
-### - sliced-lettuce
-### - lettuce
-### - sliced-garlic
-### - garlic
-### - sliced-onion
-### - onion
-### - sliced-pickles
-### - pickles
-### - sliced-chesse
-### - chesse
-### - sliced-meat
-### - meat
-### - sliced-chicken
-### - chicken
-### - sliced-potato
-### - potato
-
-- kettle
- - hot-water
- - water
-
-# maize based
-- salad :=
- - sliced-lettuce
- - ?sliced-tomato
- - ?sliced-pickles
- - ?sliced-onion
- - ?sliced-carrot
- - ?sliced-celery
- - ?sliced-radish
- - ?sliced-mushroom
- - ?sliced-avocado
- - ?sliced-olive
-
-- cook:soup :=
- - cooked-meat | cooked-chicken | sliced-lettuce
- - water
- - ?sliced-yam
- - ?sliced-wheat
- - ?sliced-corn
- - ?rice
- - ?beans
- - ?sliced-jackfruit
- - ?sliced-durian
- - ?pasta
- - ?spices
- - ?sliced-onion
- - ?sliced-fish
- - ?sliced-shrimp
- - ?sliced-chesse
diff --git a/server/src/bin/graph.rs b/server/src/bin/graph.rs
index 766fa851..38b081a9 100644
--- a/server/src/bin/graph.rs
+++ b/server/src/bin/graph.rs
@@ -16,14 +16,14 @@
*/
use anyhow::{anyhow, Result};
-use pollster::FutureExt;
use undercooked::{
data::{DataIndex, Demand},
interaction::Recipe,
protocol::{ItemIndex, RecipeIndex},
};
-fn main() -> Result<()> {
+#[tokio::main]
+async fn main() -> Result<()> {
let mut index = DataIndex::default();
index.reload()?;
@@ -33,7 +33,7 @@ fn main() -> Result<()> {
.nth(1)
.ok_or(anyhow!("first arg should be recipe set name"))?;
- let data = index.generate(format!("small-default-{rn}")).block_on()?;
+ let data = index.generate(format!("lobby-default-{rn}")).await?;
for i in 0..data.item_names.len() {
println!("i{i} [label=\"{}\"]", data.item_name(ItemIndex(i)))