mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-11 02:54:04 +09:00
crafting recipe loader wip
This commit is contained in:
@@ -9,7 +9,7 @@ Multiple workbenches are separated by commas, and alternative workbenches are se
|
||||
|
||||
### Ingredient Querying
|
||||
|
||||
Ingredients are defined as list of records. Multiple records denotes multiple alternative recipes, whereas
|
||||
Ingredients are defined as list of records. Multiple records denote multiple alternative recipes, whereas
|
||||
entries in a record denote multiple ingredients the recipe requires.
|
||||
|
||||
Example:
|
||||
@@ -25,18 +25,18 @@ Each entry is interpreted as:
|
||||
|
||||
```[moq, count 1, ingredient 1, count 2, ingredient 2, ...]```
|
||||
|
||||
- moq: this item combination creates this amount of items.
|
||||
- moq: this combination of ingredients creates this amount of crafted item.
|
||||
|
||||
For example:
|
||||
|
||||
```[2, 1, "$WOOD", 1, "$ROCK"]```
|
||||
|
||||
This line is interpreted as: this item requires 1 tagged-as-wood ingredient and 1 tagged-as-rock ingredient,
|
||||
and returns 2 of manufactured items.
|
||||
and returns 2 of crafted items.
|
||||
|
||||
```[20, 1, "ITEM_PLATFORM_BUILDING_KIT"]```
|
||||
|
||||
This line is interpreted as: this item requires 1 verbatim item "ITEM_PLATFORM_BUILDING_KIT" and returns
|
||||
20 of manufactured items.
|
||||
20 of crafted items.
|
||||
|
||||
Therefore, the single record has at least three items and always has odd number of items.
|
||||
Therefore, the single record has at least three elements and always has odd number of them.
|
||||
Reference in New Issue
Block a user