Debian Codegraph @

include/recipe.h

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