#crafting #gaming #calculate #times #generic #resources #tool

app crafting-helper

一个小型通用工具,用于计算游戏中的制作时间和资源使用。

1 个稳定版本

1.0.0 2019年2月22日

#9 in #crafting

AGPL-3.0-only

18KB
327

crafting-helper

一个小型通用工具,用于计算游戏中的制作时间和资源使用。

目前数据文件中只有模板配方。要使此工具可用,您必须添加自己的配方。请参阅数据格式

命令行使用

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 }

依赖项

~0.6–1.2MB
~28K SLoC