1 |
/* |
2 |
* This file is part of Crossfire TRT, the Multiplayer Online Role Playing Game. |
3 |
* |
4 |
* Copyright (©) 2005,2006,2007 Marc Alexander Lehmann / Robin Redeker / the Crossfire TRT team |
5 |
* Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team |
6 |
* Copyright (©) 1992,2007 Frank Tore Johansen |
7 |
* |
8 |
* Crossfire TRT is free software; you can redistribute it and/or modify it |
9 |
* under the terms of the GNU General Public License as published by the Free |
10 |
* Software Foundation; either version 2 of the License, or (at your option) |
11 |
* any later version. |
12 |
* |
13 |
* This program is distributed in the hope that it will be useful, but |
14 |
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
15 |
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
16 |
* for more details. |
17 |
* |
18 |
* You should have received a copy of the GNU General Public License along |
19 |
* with Crossfire TRT; if not, write to the Free Software Foundation, Inc. 51 |
20 |
* Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA |
21 |
* |
22 |
* The authors can be reached via e-mail to <crossfire@schmorp.de> |
23 |
*/ |
24 |
|
25 |
/* 'recipe' and 'recipelist' are used by the alchemy code */ |
26 |
typedef struct recipestruct |
27 |
{ |
28 |
shstr title; /* distinguishing name of product */ |
29 |
size_t arch_names; /* the size of the arch_name[] array */ |
30 |
char **arch_name; /* the possible archetypes of the final product made */ |
31 |
int chance; /* chance that recipe for this item will appear |
32 |
* in an alchemical grimore */ |
33 |
int diff; /* alchemical dfficulty level */ |
34 |
int exp; /* how much exp to give for this formulae */ |
35 |
int index; /* an index value derived from formula ingredients */ |
36 |
int transmute; /* if defined, one of the formula ingredients is |
37 |
* used as the basis for the product object */ |
38 |
int yield; /* The maximum number of items produced by the recipe */ |
39 |
linked_char *ingred; /* comma delimited list of ingredients */ |
40 |
struct recipestruct *next; |
41 |
shstr keycode; /* keycode needed to use the recipe */ |
42 |
shstr skill; /* skill name used to make this recipe */ |
43 |
shstr cauldron; /* the arch of the cauldron/workbench used to house the |
44 |
* formulae. */ |
45 |
} recipe; |
46 |
|
47 |
typedef struct recipeliststruct |
48 |
{ |
49 |
int total_chance; |
50 |
int number; /* number of recipes in this list */ |
51 |
struct recipestruct *items; /* pointer to first recipe in this list */ |
52 |
struct recipeliststruct *next; /* pointer to next recipe list */ |
53 |
} recipelist; |