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