crafting-helper

Crates.iocrafting-helper
lib.rscrafting-helper
version1.0.0
sourcesrc
created_at2019-02-22 10:31:20.979566
updated_at2019-02-22 10:31:20.979566
descriptionA small generic tool to calculate crafting times and resource usage for games.
homepagehttps://github.com/hardliner66/crafting-helper
repositoryhttps://github.com/hardliner66/crafting-helper
max_upload_size
id116488
size52,515
Steve Biedermann (hardliner66)

documentation

README

crafting-helper

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

Command Line Usage

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

Data Format

[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 }
Commit count: 11

cargo fmt