| 1 |
root |
1.1 |
/* 'recipe' and 'recipelist' are used by the alchemy code */ |
| 2 |
root |
1.4 |
typedef struct recipestruct |
| 3 |
|
|
{ |
| 4 |
|
|
shstr title; /* distinguishing name of product */ |
| 5 |
|
|
size_t arch_names; /* the size of the arch_name[] array */ |
| 6 |
|
|
char **arch_name; /* the possible archetypes of the final product made */ |
| 7 |
|
|
int chance; /* chance that recipe for this item will appear |
| 8 |
|
|
* in an alchemical grimore */ |
| 9 |
|
|
int diff; /* alchemical dfficulty level */ |
| 10 |
|
|
int exp; /* how much exp to give for this formulae */ |
| 11 |
|
|
int index; /* an index value derived from formula ingredients */ |
| 12 |
|
|
int transmute; /* if defined, one of the formula ingredients is |
| 13 |
|
|
* used as the basis for the product object */ |
| 14 |
|
|
int yield; /* The maximum number of items produced by the recipe */ |
| 15 |
|
|
linked_char *ingred; /* comma delimited list of ingredients */ |
| 16 |
|
|
struct recipestruct *next; |
| 17 |
|
|
shstr keycode; /* keycode needed to use the recipe */ |
| 18 |
|
|
shstr skill; /* skill name used to make this recipe */ |
| 19 |
|
|
shstr cauldron; /* the arch of the cauldron/workbench used to house the |
| 20 |
|
|
* formulae. */ |
| 21 |
root |
1.1 |
} recipe; |
| 22 |
|
|
|
| 23 |
root |
1.4 |
typedef struct recipeliststruct |
| 24 |
|
|
{ |
| 25 |
|
|
int total_chance; |
| 26 |
|
|
int number; /* number of recipes in this list */ |
| 27 |
|
|
struct recipestruct *items; /* pointer to first recipe in this list */ |
| 28 |
|
|
struct recipeliststruct *next; /* pointer to next recipe list */ |
| 29 |
root |
1.1 |
} recipelist; |