Crates.io | crafting-helper |
lib.rs | crafting-helper |
version | 1.0.0 |
source | src |
created_at | 2019-02-22 10:31:20.979566 |
updated_at | 2019-02-22 10:31:20.979566 |
description | A small generic tool to calculate crafting times and resource usage for games. |
homepage | https://github.com/hardliner66/crafting-helper |
repository | https://github.com/hardliner66/crafting-helper |
max_upload_size | |
id | 116488 |
size | 52,515 |
A small generic tool to calculate crafting times and resource usage for games.
Currently there are only template recipes in the data file. To make this tool usable you have to add your own. See Data Format
Usage:
crafting.exe [OPTIONS] SEARCH STRINGS [...]
Crafting helper.
Positional arguments:
search strings the name or id of the part you want to build. [partial
names are supported (uses the first matching part),
whitespaces are allowed and don't have to be escaped]
Optional arguments:
-h,--help Show this help message and exit
-p,--path PATH the path to the data file.
-d,--details print details.
-a,--amount AMOUNT amount needed.
-D,--descending Sort descending.
-s,--search search for all matching parts. prints info for part if
only one is found.
-c,--count show item count in data file
-l,--list list all items in data file
[basic-construct] # the id of the item
name = "Basic Construct" # the full name of the item (used for sorting, if tier is the same)
tier = 5 # the tier of the item (used for sorting)
time = { seconds = 8 } # the time needed to craft this item. Excluding the time for the sub-parts
# time supports the fields: weeks, days, hours, minutes, seconds.
# e.g.: { hours = 3, minute = 2, seconds = 10 }
variations = [ # all variations of the item that can be crafted with the same materials
"red",
"blue",
"green"
]
[basic-construct.meta] # meta data for the item. this can contain any string or float data
some-meta-data = 6
some-other-meta-data = "Maybe a description?"
[basic-construct.requirements] # the requirements to craft this item in the format: <id> = <amount>
basic-part = 10
[basic-part]
name = "Basic Part"
tier = 4
time = { seconds = 4 }