ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/recipe.h
Revision: 1.11
Committed: Fri Mar 26 00:59:21 2010 UTC (14 years, 2 months ago) by root
Content type: text/plain
Branch: MAIN
Changes since 1.10: +2 -2 lines
Log Message:
remove bogus 2007 copyright that was added wrongly by the script, update to affero license

File Contents

# User Rev Content
1 root 1.5 /*
2 root 1.7 * This file is part of Deliantra, the Roguelike Realtime MMORPG.
3 root 1.5 *
4 root 1.8 * Copyright (©) 2005,2006,2007,2008 Marc Alexander Lehmann / Robin Redeker / the Deliantra team
5 root 1.11 * Copyright (©) 2002 Mark Wedel & Crossfire Development Team
6     * Copyright (©) 1992 Frank Tore Johansen
7 root 1.5 *
8 root 1.10 * 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 root 1.5 *
13 root 1.6 * 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 root 1.5 *
18 root 1.10 * 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 root 1.5 *
22 root 1.7 * The authors can be reached via e-mail to <support@deliantra.net>
23 root 1.5 */
24    
25 root 1.1 /* 'recipe' and 'recipelist' are used by the alchemy code */
26 root 1.4 typedef struct recipestruct
27     {
28     shstr title; /* distinguishing name of product */
29 root 1.9 //TODO: the next two should be a shstr vector
30 root 1.4 size_t arch_names; /* the size of the arch_name[] array */
31     char **arch_name; /* the possible archetypes of the final product made */
32     int chance; /* chance that recipe for this item will appear
33     * in an alchemical grimore */
34     int diff; /* alchemical dfficulty level */
35     int exp; /* how much exp to give for this formulae */
36     int index; /* an index value derived from formula ingredients */
37     int transmute; /* if defined, one of the formula ingredients is
38     * used as the basis for the product object */
39     int yield; /* The maximum number of items produced by the recipe */
40     linked_char *ingred; /* comma delimited list of ingredients */
41     struct recipestruct *next;
42     shstr keycode; /* keycode needed to use the recipe */
43     shstr skill; /* skill name used to make this recipe */
44     shstr cauldron; /* the arch of the cauldron/workbench used to house the
45     * formulae. */
46 root 1.1 } recipe;
47    
48 root 1.4 typedef struct recipeliststruct
49     {
50     int total_chance;
51     int number; /* number of recipes in this list */
52     struct recipestruct *items; /* pointer to first recipe in this list */
53     struct recipeliststruct *next; /* pointer to next recipe list */
54 root 1.1 } recipelist;