Crossfire Server, Trunk  R20763
recipestruct Struct Reference

#include <recipe.h>

+ Collaboration diagram for recipestruct:

Data Fields

char ** arch_name
 
size_t arch_names
 
sstring cauldron
 
int chance
 
int diff
 
int exp
 
sstring failure_arch
 
sstring failure_message
 
int index
 
linked_charingred
 
int ingred_count
 
int is_combination
 
sstring keycode
 
int min_level
 
struct recipestructnext
 
sstring skill
 
sstring title
 
char ** tool
 
size_t tool_size
 
int transmute
 
int yield
 

Detailed Description

One alchemy recipe.

Definition at line 10 of file recipe.h.

Field Documentation

◆ arch_name

◆ arch_names

◆ cauldron

sstring recipestruct::cauldron

◆ chance

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_random_recipe(), init_formulae(), make_formula_book(), CREWrapperFormulae::setFormulae(), and CREFormulaePanel::setItem().

◆ diff

◆ exp

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(), init_formulae(), CREWrapperFormulae::setFormulae(), and CREFormulaePanel::setItem().

◆ failure_arch

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(), and init_formulae().

◆ failure_message

sstring recipestruct::failure_message

Specific failure message.

Definition at line 29 of file recipe.h.

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

◆ index

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(), init_formulae(), knowledge_alchemy_get_recipe(), make_formula_book(), and CREFormulaePanel::setItem().

◆ ingred

◆ ingred_count

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(), init_formulae(), and knowledge_alchemy_attempt().

◆ is_combination

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 init_formulae(), and make_formula_book().

◆ keycode

sstring recipestruct::keycode

Optional keycode needed to use the recipe.

Definition at line 25 of file recipe.h.

Referenced by attempt_recipe(), and init_formulae().

◆ min_level

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(), and init_formulae().

◆ next

◆ skill

sstring recipestruct::skill

◆ title

◆ tool

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(), and init_formulae().

◆ tool_size

size_t recipestruct::tool_size

Length of tool.

Definition at line 33 of file recipe.h.

Referenced by find_recipe_for_tool(), and init_formulae().

◆ transmute

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(), and init_formulae().

◆ yield

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


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