Merged 1.5 update from Andre, maybe.

This commit is contained in:
ElijahZAwesome 2018-02-06 14:08:27 -06:00
commit 1e3fb61d76
50 changed files with 5573 additions and 3442 deletions

View file

@ -2,12 +2,12 @@
#include <stdarg.h>
#include "Item.h"
typedef struct {
typedef struct _recipecost {
int costItem;
int costAmount;
} Cost;
typedef struct {
typedef struct _recipe {
bool canCraft;
int itemResult;
int itemAmountLevel;
@ -16,7 +16,7 @@ typedef struct {
u8 order; // Used for stable sorting.
} Recipe;
typedef struct {
typedef struct _recipeManager {
int size;
Recipe * recipes;
} RecipeManager;
@ -32,6 +32,7 @@ RecipeManager potionMakerRecipes;
Recipe defineRecipe(int item, int amountOrLevel, int numArgs, ...);
void cloneRecipeManager(RecipeManager *from, RecipeManager *to);
void checkCanCraftRecipes(RecipeManager * rm, Inventory * inv);
void sortRecipes(RecipeManager * rm);
bool craftItem(RecipeManager * rm, Recipe* r, Inventory* inv);