From f26c37aa9f9cd99a3be53ce21890e200e9d85b28 Mon Sep 17 00:00:00 2001 From: myk002 Date: Tue, 7 Sep 2021 17:27:11 -0700 Subject: [PATCH] add scroll and shell craft orders --- data/examples/orders/basic.json | 269 ++++++++++++++++++++++++++------ 1 file changed, 225 insertions(+), 44 deletions(-) diff --git a/data/examples/orders/basic.json b/data/examples/orders/basic.json index 5a6917074..152402fd1 100644 --- a/data/examples/orders/basic.json +++ b/data/examples/orders/basic.json @@ -665,6 +665,62 @@ "is_active" : false, "is_validated" : false, "item_conditions" : + [ + { + "condition" : "AtLeast", + "item_type" : "WOOD", + "value" : 150 + }, + { + "condition" : "AtMost", + "item_subtype" : "ITEM_TOOL_WHEELBARROW", + "item_type" : "TOOL", + "value" : 2 + } + ], + "item_subtype" : "ITEM_TOOL_WHEELBARROW", + "job" : "MakeTool", + "material_category" : + [ + "wood" + ] + }, + { + "amount_left" : 1, + "amount_total" : 1, + "frequency" : "Daily", + "id" : 21, + "is_active" : false, + "is_validated" : false, + "item_conditions" : + [ + { + "condition" : "AtLeast", + "item_type" : "WOOD", + "value" : 150 + }, + { + "condition" : "AtMost", + "item_subtype" : "ITEM_TOOL_MINECART", + "item_type" : "TOOL", + "value" : 2 + } + ], + "item_subtype" : "ITEM_TOOL_MINECART", + "job" : "MakeTool", + "material_category" : + [ + "wood" + ] + }, + { + "amount_left" : 1, + "amount_total" : 1, + "frequency" : "Daily", + "id" : 22, + "is_active" : false, + "is_validated" : false, + "item_conditions" : [ { "condition" : "AtLeast", @@ -691,7 +747,7 @@ "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 21, + "id" : 23, "is_active" : false, "is_validated" : false, "item_conditions" : @@ -721,7 +777,7 @@ "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 22, + "id" : 24, "is_active" : false, "is_validated" : false, "item_conditions" : @@ -750,7 +806,7 @@ "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 23, + "id" : 25, "is_active" : false, "is_validated" : false, "item_conditions" : @@ -781,7 +837,7 @@ "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 24, + "id" : 26, "is_active" : false, "is_validated" : false, "item_conditions" : @@ -817,7 +873,7 @@ "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 25, + "id" : 27, "is_active" : false, "is_validated" : false, "item_conditions" : @@ -853,7 +909,7 @@ "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 26, + "id" : 28, "is_active" : false, "is_validated" : false, "item_conditions" : @@ -889,7 +945,7 @@ "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 27, + "id" : 29, "is_active" : false, "is_validated" : false, "item_conditions" : @@ -908,7 +964,33 @@ "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 28, + "id" : 30, + "is_active" : false, + "is_validated" : true, + "item_conditions" : + [ + { + "condition" : "AtLeast", + "flags" : + [ + "unrotten", + "shell", + "body_part" + ], + "value" : 2 + } + ], + "job" : "MakeCrafts", + "material_category" : + [ + "shell" + ] + }, + { + "amount_left" : 1, + "amount_total" : 1, + "frequency" : "Daily", + "id" : 31, "is_active" : false, "is_validated" : false, "item_conditions" : @@ -930,7 +1012,7 @@ "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 29, + "id" : 32, "is_active" : false, "is_validated" : false, "item_conditions" : @@ -956,7 +1038,7 @@ "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 30, + "id" : 33, "is_active" : false, "is_validated" : false, "item_conditions" : @@ -982,7 +1064,33 @@ "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 31, + "id" : 34, + "is_active" : false, + "is_validated" : false, + "item_conditions" : + [ + { + "condition" : "AtLeast", + "item_type" : "WOOD", + "value" : 150 + }, + { + "condition" : "AtMost", + "item_type" : "BED", + "value" : 2 + } + ], + "job" : "ConstructBed", + "material_category" : + [ + "wood" + ] + }, + { + "amount_left" : 1, + "amount_total" : 1, + "frequency" : "Daily", + "id" : 35, "is_active" : false, "is_validated" : false, "item_conditions" : @@ -1015,7 +1123,7 @@ "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 32, + "id" : 36, "is_active" : false, "is_validated" : false, "item_conditions" : @@ -1054,7 +1162,7 @@ "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 33, + "id" : 37, "is_active" : false, "is_validated" : false, "item_conditions" : @@ -1088,7 +1196,7 @@ "amount_left" : 4, "amount_total" : 4, "frequency" : "Daily", - "id" : 34, + "id" : 38, "is_active" : false, "is_validated" : false, "item_conditions" : @@ -1111,7 +1219,7 @@ "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 35, + "id" : 39, "is_active" : false, "is_validated" : false, "item_conditions" : @@ -1135,82 +1243,155 @@ "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 36, + "id" : 40, "is_active" : false, "is_validated" : false, "item_conditions" : [ { "condition" : "AtLeast", - "item_type" : "WOOD", - "value" : 150 + "flags" : + [ + "unrotten" + ], + "item_type" : "PLANT", + "reaction_id" : "MAKE_SLURRY_FROM_PLANT", + "reaction_product" : "PRESS_PAPER_MAT", + "value" : 50 }, { "condition" : "AtMost", - "item_type" : "BED", + "flags" : + [ + "non_pressed" + ], + "item_type" : "GLOB", + "reaction_class" : "PAPER_SLURRY", "value" : 2 } ], - "job" : "ConstructBed", - "material_category" : + "job" : "CustomReaction", + "reaction" : "MAKE_SLURRY_FROM_PLANT" + }, + { + "amount_left" : 1, + "amount_total" : 1, + "frequency" : "Daily", + "id" : 41, + "is_active" : false, + "is_validated" : false, + "item_conditions" : [ - "wood" - ] + { + "condition" : "AtLeast", + "flags" : + [ + "non_pressed" + ], + "item_type" : "GLOB", + "reaction_class" : "PAPER_SLURRY", + "reaction_id" : "PRESS_PLANT_PAPER", + "value" : 2 + }, + { + "condition" : "AtMost", + "item_type" : "SHEET", + "value" : 10 + } + ], + "job" : "CustomReaction", + "reaction" : "PRESS_PLANT_PAPER" }, { "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 37, + "id" : 42, "is_active" : false, "is_validated" : false, "item_conditions" : [ { "condition" : "AtLeast", - "item_type" : "WOOD", - "value" : 150 + "flags" : + [ + "unrotten" + ], + "item_type" : "PLANT", + "reaction_class" : "PAPER_PLANT", + "reaction_id" : "MAKE_SHEET_FROM_PLANT", + "value" : 15 }, { "condition" : "AtMost", - "item_subtype" : "ITEM_TOOL_WHEELBARROW", + "item_type" : "SHEET", + "value" : 10 + } + ], + "job" : "CustomReaction", + "reaction" : "MAKE_SHEET_FROM_PLANT" + }, + { + "amount_left" : 1, + "amount_total" : 1, + "frequency" : "Daily", + "id" : 43, + "is_active" : false, + "is_validated" : true, + "item_conditions" : + [ + { + "condition" : "AtLeast", + "flags" : + [ + "non_economic", + "hard" + ], + "item_type" : "BOULDER", + "material" : "INORGANIC", + "value" : 50 + }, + { + "condition" : "AtMost", + "item_subtype" : "ITEM_TOOL_SCROLL_ROLLERS", "item_type" : "TOOL", - "value" : 2 + "value" : 10 } ], - "item_subtype" : "ITEM_TOOL_WHEELBARROW", + "item_subtype" : "ITEM_TOOL_SCROLL_ROLLERS", "job" : "MakeTool", - "material_category" : - [ - "wood" - ] + "material" : "INORGANIC" }, { "amount_left" : 1, "amount_total" : 1, "frequency" : "Daily", - "id" : 38, + "id" : 44, "is_active" : false, "is_validated" : false, "item_conditions" : [ { "condition" : "AtLeast", - "item_type" : "WOOD", - "value" : 150 + "item_type" : "SHEET", + "reaction_id" : "MAKE_SCROLL", + "value" : 2 }, { - "condition" : "AtMost", - "item_subtype" : "ITEM_TOOL_MINECART", + "condition" : "AtLeast", + "item_subtype" : "ITEM_TOOL_SCROLL_ROLLERS", "item_type" : "TOOL", + "reaction_id" : "MAKE_SCROLL", "value" : 2 + }, + { + "condition" : "AtMost", + "item_subtype" : "ITEM_TOOL_SCROLL", + "item_type" : "TOOL", + "value" : 10 } ], - "item_subtype" : "ITEM_TOOL_MINECART", - "job" : "MakeTool", - "material_category" : - [ - "wood" - ] + "job" : "CustomReaction", + "reaction" : "MAKE_SCROLL" } ]