ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/recipe.h
Revision: 1.9
Committed: Thu Jan 1 11:41:17 2009 UTC (15 years, 4 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-2_80, rel-2_76, rel-2_77, rel-2_75, rel-2_79, rel-2_78
Changes since 1.8: +1 -0 lines
Log Message:
*** empty log message ***

File Contents

# Content
1 /*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 *
4 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002,2007 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992,2007 Frank Tore Johansen
7 *
8 * Deliantra is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 *
21 * The authors can be reached via e-mail to <support@deliantra.net>
22 */
23
24 /* 'recipe' and 'recipelist' are used by the alchemy code */
25 typedef struct recipestruct
26 {
27 shstr title; /* distinguishing name of product */
28 //TODO: the next two should be a shstr vector
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;