Skip to content

AthenaCannotCode/recipe-calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

recipe-calc

What it is

It's a basic calculating tool for crafting chains, mostly for Factorio. And it's not nearly finished, I'm working on it :3

How to use

  1. make run exe=<your executable name here>
  2. ./<your executable> help to list all available commands (more to come than just 4)
  3. enjoy

How to add more recipes

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
  }
}

How to add more items

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!

About

A simple crafting chain calculator, mainly for Factorio

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published