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