Crossfire Server, Trunk
|
#include <recipe.h>
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_char * | ingred |
int | ingred_count |
int | is_combination |
sstring | keycode |
int | min_level |
struct recipestruct * | next |
sstring | skill |
sstring | title |
char ** | tool |
size_t | tool_size |
int | transmute |
int | yield |
char** recipestruct::arch_name |
Possible archetypes of the final product made.
Definition at line 13 of file recipe.h.
Referenced by alchemy_failure_effect(), alchemyTable(), attempt_do_alchemy(), check_formulae(), check_recipe(), command_use(), ArtifactPanel::computeMadeViaAlchemy(), RecipeWrapper::displayIcon(), RecipeWrapper::displayName(), dump_alchemy(), dump_alchemy_costs(), find_recipe(), find_transmution_ob(), free_all_recipes(), init_formulae(), knowledge_alchemy_can_use_item(), knowledge_alchemy_detail(), knowledge_alchemy_summary(), locate_recipe_artifact(), make_formula_book(), make_item_from_recipe(), CREMainWindow::onReportAlchemyGraph(), recipe_get_face(), and writeRecipe().
size_t recipestruct::arch_names |
Size of the arch_name[] array.
Definition at line 12 of file recipe.h.
Referenced by alchemy_failure_effect(), alchemyTable(), check_formulae(), check_recipe(), ArtifactPanel::computeMadeViaAlchemy(), RecipeWrapper::displayIcon(), RecipeWrapper::displayName(), dump_alchemy(), dump_alchemy_costs(), find_transmution_ob(), init_formulae(), knowledge_alchemy_can_use_item(), knowledge_alchemy_detail(), knowledge_alchemy_summary(), make_formula_book(), CREMainWindow::onReportAlchemyGraph(), recipe_get_face(), RecipeWrapper::uses(), and writeRecipe().
sstring recipestruct::cauldron |
Arch of the cauldron/workbench used to house the formulae.
Definition at line 27 of file recipe.h.
Referenced by attempt_do_alchemy(), attempt_recipe(), RecipeWrapper::cauldron(), check_formulae(), dump_alchemy(), free_all_recipes(), init_formulae(), knowledge_alchemy_attempt(), knowledge_alchemy_detail(), and make_formula_book().
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 alchemyTable(), dump_alchemy(), dump_alchemy_costs(), get_random_recipe(), init_formulae(), and make_formula_book().
int recipestruct::diff |
Alchemical dfficulty level.
Definition at line 16 of file recipe.h.
Referenced by alchemyTable(), attempt_do_alchemy(), calc_alch_danger(), dump_alchemy(), init_formulae(), recipe_chance(), and START_TEST().
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(), and init_formulae().
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().
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().
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(), RecipeWrapper::index(), init_formulae(), knowledge_alchemy_get_recipe(), and make_formula_book().
linked_char* recipestruct::ingred |
List of ingredients.
Definition at line 22 of file recipe.h.
Referenced by alchemyTable(), command_use(), dump_alchemy(), dump_alchemy_costs(), free_all_recipes(), init_formulae(), is_defined_recipe(), knowledge_alchemy_attempt(), knowledge_alchemy_can_use_item(), knowledge_alchemy_detail(), make_formula_book(), CREMainWindow::onReportAlchemyGraph(), and writeRecipe().
int recipestruct::ingred_count |
Number of items in ingred.
Definition at line 23 of file recipe.h.
Referenced by alchemyTable(), command_use(), RecipeListWrapper::displayName(), find_recipe_for_tool(), 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 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(), 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(), and init_formulae().
struct recipestruct* recipestruct::next |
Next recipe with the same number of ingredients.
Definition at line 24 of file recipe.h.
Referenced by alchemyTable(), check_formulae(), check_recipes(), ArtifactPanel::computeMadeViaAlchemy(), dump_alchemy(), dump_alchemy_costs(), find_recipe(), find_recipe_for_tool(), free_all_recipes(), get_random_recipe(), init_formulae(), knowledge_alchemy_get_recipe(), make_formula_book(), CREMainWindow::onReportAlchemyGraph(), and writeRecipe().
sstring recipestruct::skill |
Skill name used to make this recipe.
Definition at line 26 of file recipe.h.
Referenced by alchemyTable(), attempt_do_alchemy(), attempt_recipe(), dump_alchemy(), dump_alchemy_costs(), free_all_recipes(), init_formulae(), knowledge_alchemy_detail(), make_formula_book(), and RecipeWrapper::skill().
sstring recipestruct::title |
Distinguishing name of product.
Definition at line 11 of file recipe.h.
Referenced by alchemy_failure_effect(), alchemyTable(), attempt_do_alchemy(), attempt_recipe(), check_formulae(), check_recipe(), ArtifactPanel::computeMadeViaAlchemy(), RecipeWrapper::displayName(), dump_alchemy(), dump_alchemy_costs(), find_recipe(), free_all_recipes(), init_formulae(), knowledge_alchemy_can_use_item(), knowledge_alchemy_detail(), knowledge_alchemy_get_recipe(), knowledge_alchemy_summary(), locate_recipe_artifact(), make_formula_book(), make_item_from_recipe(), CREMainWindow::onReportAlchemyGraph(), recipe_get_face(), and writeRecipe().
char** recipestruct::tool |
Tool(s) for item transformation.
Definition at line 32 of file recipe.h.
Referenced by check_formulae(), find_recipe_for_tool(), free_all_recipes(), init_formulae(), and writeRecipe().
size_t recipestruct::tool_size |
Length of tool.
Definition at line 33 of file recipe.h.
Referenced by check_formulae(), find_recipe_for_tool(), init_formulae(), and writeRecipe().
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(), init_formulae(), and make_item_from_recipe().
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 RecipeWrapper::yield().