ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/recipe.h
(Generate patch)

Comparing deliantra/server/include/recipe.h (file contents):
Revision 1.1.1.1 by root, Fri Feb 3 07:12:50 2006 UTC vs.
Revision 1.13 by root, Sat Apr 23 04:56:49 2011 UTC

1/*
2 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 *
4 * Copyright (©) 2005,2006,2007,2008,2009,2010,2011 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 * Copyright (©) 2002 Mark Wedel & Crossfire Development Team
6 * Copyright (©) 1992 Frank Tore Johansen
7 *
8 * Deliantra is free software: you can redistribute it and/or modify it under
9 * the terms of the Affero GNU General Public License as published by the
10 * Free Software Foundation, either version 3 of the License, or (at your
11 * 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 Affero GNU General Public License
19 * and the GNU General Public License along with this program. If not, see
20 * <http://www.gnu.org/licenses/>.
21 *
22 * The authors can be reached via e-mail to <support@deliantra.net>
23 */
24
1/* 'recipe' and 'recipelist' are used by the alchemy code */ 25/* 'recipe' and 'recipelist' are used by the alchemy code */
2typedef struct recipestruct { 26typedef struct recipestruct
27{
3 const char *title; /* distinguishing name of product */ 28 shstr title; /* distinguishing name of product */
29 //TODO: the next two should be a shstr vector
4 size_t arch_names; /* the size of the arch_name[] array */ 30 size_t arch_names; /* the size of the arch_name[] array */
5 char **arch_name; /* the possible archetypes of the final product made */ 31 char **arch_name; /* the possible archetypes of the final product made */
6 int chance; /* chance that recipe for this item will appear 32 int chance; /* chance that recipe for this item will appear
7 * in an alchemical grimore */ 33 * in an alchemical grimore */
8 int diff; /* alchemical dfficulty level */ 34 int diff; /* alchemical dfficulty level */
9 int exp; /* how much exp to give for this formulae */ 35 int exp; /* how much exp to give for this formulae */
10 int index; /* an index value derived from formula ingredients */ 36 int index; /* an index value derived from formula ingredients */
11 int transmute; /* if defined, one of the formula ingredients is 37 int transmute; /* if defined, one of the formula ingredients is
12 * used as the basis for the product object */ 38 * used as the basis for the product object */
13 int yield; /* The maximum number of items produced by the recipe */ 39 int yield; /* The maximum number of items produced by the recipe */
14 linked_char *ingred; /* comma delimited list of ingredients */ 40 linked_char *ingred; /* comma delimited list of ingredients */
15 struct recipestruct *next; 41 struct recipestruct *next;
16 const char *keycode; /* keycode needed to use the recipe */ 42 shstr keycode; /* keycode needed to use the recipe */
17 const char *skill; /* skill name used to make this recipe */ 43 shstr skill; /* skill name used to make this recipe */
18 const char *cauldron; /* the arch of the cauldron/workbench used to house the 44 shstr cauldron; /* the arch of the cauldron/workbench used to house the
19 * formulae. */ 45 * formulae. */
20} recipe; 46} recipe;
21 47
22typedef struct recipeliststruct { 48typedef struct recipeliststruct
49{
23 int total_chance; 50 int total_chance;
24 int number; /* number of recipes in this list */ 51 int number; /* number of recipes in this list */
25 struct recipestruct *items; /* pointer to first recipe in this list */ 52 struct recipestruct *items; /* pointer to first recipe in this list */
26 struct recipeliststruct *next; /* pointer to next recipe list */ 53 struct recipeliststruct *next; /* pointer to next recipe list */
27} recipelist; 54} recipelist;
28
29

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines