ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/include/recipe.h
Revision: 1.17
Committed: Sat Nov 17 23:40:01 2018 UTC (5 years, 6 months ago) by root
Content type: text/plain
Branch: MAIN
CVS Tags: HEAD
Changes since 1.16: +1 -0 lines
Log Message:
copyright update 2018

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