ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/recipe.h
Revision: 1.3
Committed: Sun Sep 3 14:33:48 2006 UTC (17 years, 8 months ago) by elmex
Content type: text/plain
Branch: MAIN
Changes since 1.2: +4 -4 lines
Log Message:
removed ox/oy, and then added shstr stuff to the recipes in alchemy

File Contents

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