ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/recipe.h
Revision: 1.7
Committed: Thu Nov 8 19:43:25 2007 UTC (16 years, 6 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: rel-2_4, rel-2_5, rel-2_52, rel-2_53, rel-2_32, rel-2_43, rel-2_42, rel-2_41
Changes since 1.6: +4 -4 lines
Log Message:
update copyrights and other minor stuff to deliantra

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