Crossfire Server, Trunk  R20513
Data Fields
recipestruct Struct Reference

One alchemy recipe. More...

#include <recipe.h>

Collaboration diagram for recipestruct:
Collaboration graph

Data Fields

char ** arch_name
 Possible archetypes of the final product made. More...
 
size_t arch_names
 Size of the arch_name[] array. More...
 
sstring cauldron
 Arch of the cauldron/workbench used to house the formulae. More...
 
int chance
 Chance that recipe for this item will appear in an alchemical grimore. More...
 
int diff
 Alchemical dfficulty level. More...
 
int exp
 How much exp to give for this formulae. More...
 
sstring failure_arch
 Arch of the item to generate on failure, instead of blowing up stuff. More...
 
sstring failure_message
 Specific failure message. More...
 
int index
 Index value derived from formula ingredients. More...
 
linked_charingred
 List of ingredients. More...
 
int ingred_count
 Number of items in ingred. More...
 
int is_combination
 Whather this is an alchemy recipe, or an item transformation description. More...
 
sstring keycode
 Optional keycode needed to use the recipe. More...
 
int min_level
 Minimum level to have in the skill to be able to use the formulae. More...
 
struct recipestructnext
 Next recipe with the same number of ingredients. More...
 
sstring skill
 Skill name used to make this recipe. More...
 
sstring title
 Distinguishing name of product. More...
 
char ** tool
 Tool(s) for item transformation. More...
 
size_t tool_size
 Length of tool. More...
 
int transmute
 If defined, one of the formula ingredients is used as the basis for the product object. More...
 
int yield
 Maximum number of items produced by the recipe. More...
 

Detailed Description

One alchemy recipe.

Definition at line 10 of file recipe.h.

Field Documentation

char** recipestruct::arch_name
size_t recipestruct::arch_names
sstring recipestruct::cauldron
int recipestruct::chance

Chance that recipe for this item will appear in an alchemical grimore.

Definition at line 14 of file recipe.h.

Referenced by dump_alchemy(), dump_alchemy_costs(), get_empty_formula(), get_random_recipe(), init_formulae(), make_formula_book(), CREWrapperFormulae::setFormulae(), and CREFormulaePanel::setItem().

int recipestruct::diff
int recipestruct::exp

How much exp to give for this formulae.

Definition at line 17 of file recipe.h.

Referenced by alchemyTable(), attempt_do_alchemy(), dump_alchemy(), get_empty_formula(), init_formulae(), CREWrapperFormulae::setFormulae(), and CREFormulaePanel::setItem().

sstring recipestruct::failure_arch

Arch of the item to generate on failure, instead of blowing up stuff.

Definition at line 28 of file recipe.h.

Referenced by alchemy_failure_effect(), free_all_recipes(), get_empty_formula(), and init_formulae().

sstring recipestruct::failure_message

Specific failure message.

Definition at line 29 of file recipe.h.

Referenced by alchemy_failure_effect(), free_all_recipes(), get_empty_formula(), and init_formulae().

int recipestruct::index
linked_char* recipestruct::ingred
int recipestruct::ingred_count

Number of items in ingred.

Definition at line 23 of file recipe.h.

Referenced by alchemyTable(), command_use(), find_recipe_for_tool(), get_empty_formula(), init_formulae(), and knowledge_alchemy_attempt().

int recipestruct::is_combination

Whather this is an alchemy recipe, or an item transformation description.

Definition at line 31 of file recipe.h.

Referenced by get_empty_formula(), init_formulae(), and make_formula_book().

sstring recipestruct::keycode

Optional keycode needed to use the recipe.

Definition at line 25 of file recipe.h.

Referenced by attempt_recipe(), get_empty_formula(), and init_formulae().

int recipestruct::min_level

Minimum level to have in the skill to be able to use the formulae.

0 if no requirement.

Definition at line 30 of file recipe.h.

Referenced by attempt_do_alchemy(), get_empty_formula(), and init_formulae().

struct recipestruct* recipestruct::next
sstring recipestruct::skill
sstring recipestruct::title
char** recipestruct::tool

Tool(s) for item transformation.

Definition at line 32 of file recipe.h.

Referenced by find_recipe_for_tool(), free_all_recipes(), get_empty_formula(), and init_formulae().

size_t recipestruct::tool_size

Length of tool.

Definition at line 33 of file recipe.h.

Referenced by find_recipe_for_tool(), get_empty_formula(), and init_formulae().

int recipestruct::transmute

If defined, one of the formula ingredients is used as the basis for the product object.

Definition at line 19 of file recipe.h.

Referenced by find_recipe(), find_transmution_ob(), get_empty_formula(), and init_formulae().

int recipestruct::yield

Maximum number of items produced by the recipe.

Definition at line 21 of file recipe.h.

Referenced by attempt_recipe(), command_use(), dump_alchemy_costs(), get_empty_formula(), init_formulae(), and CREFormulaePanel::setItem().


The documentation for this struct was generated from the following file: