Crossfire Server, Trunk  1.75.0
recipe.h
Go to the documentation of this file.
1 
6 #ifndef RECIPE_H
7 #define RECIPE_H
8 
10 struct recipe {
12  size_t arch_names;
13  char **arch_name;
14  int chance;
16  int diff;
17  int exp;
18  int index;
19  int transmute;
21  int yield;
30  int min_level;
32  char **tool;
33  size_t tool_size;
34 } ;
35 
37 struct recipelist {
39  int number;
42 };
43 
44 #endif /* RECIPE_H */
recipe::tool_size
size_t tool_size
Length of tool.
Definition: recipe.h:33
recipe::arch_names
size_t arch_names
Size of the arch_name[] array.
Definition: recipe.h:12
recipe::yield
int yield
Maximum number of items produced by the recipe.
Definition: recipe.h:21
recipe::failure_arch
sstring failure_arch
Arch of the item to generate on failure, instead of blowing up stuff.
Definition: recipe.h:28
recipelist::next
recipelist * next
Pointer to next recipe list.
Definition: recipe.h:41
recipelist::items
recipe * items
Pointer to first recipe in this list.
Definition: recipe.h:40
recipe::failure_message
sstring failure_message
Specific failure message.
Definition: recipe.h:29
recipe::arch_name
char ** arch_name
Possible archetypes of the final product made.
Definition: recipe.h:13
recipe::transmute
int transmute
If defined, one of the formula ingredients is used as the basis for the product object.
Definition: recipe.h:19
recipe::exp
int exp
How much exp to give for this formulae.
Definition: recipe.h:17
recipelist::total_chance
int total_chance
Total chance of the recipes in this list.
Definition: recipe.h:38
linked_char
Definition: global.h:98
recipe::is_combination
int is_combination
Whather this is an alchemy recipe, or an item transformation description.
Definition: recipe.h:31
recipelist
List of recipes with a certain number of ingredients.
Definition: recipe.h:37
recipe::index
int index
Index value derived from formula ingredients.
Definition: recipe.h:18
recipe::ingred_count
int ingred_count
Number of items in ingred.
Definition: recipe.h:23
recipe
One alchemy recipe.
Definition: recipe.h:10
recipe::tool
char ** tool
Tool(s) for item transformation.
Definition: recipe.h:32
recipe::chance
int chance
Chance that recipe for this item will appear in an alchemical grimore.
Definition: recipe.h:14
sstring
const typedef char * sstring
Definition: sstring.h:2
recipe::diff
int diff
Alchemical dfficulty level.
Definition: recipe.h:16
recipe::keycode
sstring keycode
Optional keycode needed to use the recipe.
Definition: recipe.h:25
recipelist::number
int number
Number of recipes in this list.
Definition: recipe.h:39
recipe::min_level
int min_level
Minimum level to have in the skill to be able to use the formulae.
Definition: recipe.h:30
recipe::ingred
linked_char * ingred
List of ingredients.
Definition: recipe.h:22
recipe::next
recipe * next
Next recipe with the same number of ingredients.
Definition: recipe.h:24
recipe::skill
sstring skill
Skill name used to make this recipe.
Definition: recipe.h:26
recipe::cauldron
sstring cauldron
Arch of the cauldron/workbench used to house the formulae.
Definition: recipe.h:27
recipe::title
sstring title
Distinguishing name of product.
Definition: recipe.h:11