Crossfire Server, Branches 1.12  R18729
recipestruct Struct Reference

#include <recipe.h>

+ Collaboration diagram for recipestruct:

Data Fields

char ** arch_name
 
size_t arch_names
 
const char * cauldron
 
int chance
 
int diff
 
int exp
 
int index
 
linked_charingred
 
const char * keycode
 
struct recipestructnext
 
const char * skill
 
const char * title
 
int transmute
 
int yield
 

Detailed Description

One alchemy recipe.

Definition at line 10 of file recipe.h.

Field Documentation

const char* recipestruct::cauldron

Skill name used to make this recipe. Arch of the cauldron/workbench used to house the formulae.

Definition at line 26 of file recipe.h.

Referenced by attempt_do_alchemy(), attempt_recipe(), check_formulae(), dump_alchemy(), free_all_recipes(), get_empty_formula(), init_formulae(), make_formula_book(), and CREFormulaePanel::setRecipe().

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(), and CREFormulaePanel::setRecipe().

int recipestruct::diff

Alchemical dfficulty level.

Definition at line 16 of file recipe.h.

Referenced by attempt_do_alchemy(), calc_alch_danger(), dump_alchemy(), get_empty_formula(), init_formulae(), and CREFormulaePanel::setRecipe().

int recipestruct::exp

How much exp to give for this formulae.

Definition at line 17 of file recipe.h.

Referenced by attempt_do_alchemy(), dump_alchemy(), get_empty_formula(), init_formulae(), and CREFormulaePanel::setRecipe().

int recipestruct::index

Index value derived from formula ingredients.

Definition at line 18 of file recipe.h.

Referenced by attempt_do_alchemy(), check_formulae(), dump_alchemy(), find_recipe(), get_empty_formula(), and init_formulae().

const char* recipestruct::keycode

Optional keycode needed to use the recipe.

Definition at line 24 of file recipe.h.

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

struct recipestruct* recipestruct::next
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(), dump_alchemy_costs(), get_empty_formula(), init_formulae(), and CREFormulaePanel::setRecipe().


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