It's a basic calculating tool for crafting chains, mostly for Factorio. And it's not nearly finished, I'm working on it :3
make run exe=<your executable name here>
./<your executable> help
to list all available commands (more to come than just 4)- enjoy
For now you have to modify the load_recipes()
function in main.cpp
.
A recipe takes the form
{
get_item_with_amount("<item id of crafting result>", <amount>),
{
get_item_with_amount("<item id of ingredient>", <amount>), // repeat line for every ingredient
}
}
For now you have to modify the load_items()
function in main.cpp
.
A item takes the form
{
<some unique item id>,
{
"<the same item id>",
"<the item name, purely cosmetic>",
0, // a placeholder for the amount
true (if the item doesn't have a recipe), false (if the item has a recipe)
}
}
Happy crafting!