Difference between revisions of "Get ingredients"

From Kolmafia
Jump to navigation Jump to search
imported>StDoodle
m
imported>Heeheehee
m (Fixed up some.)
Line 22: Line 22:
  
 
more_info=See the Coldfront's wiki page on [http://kol.coldfront.net/thekolwiki/index.php/Discoveries Discoveries] for more information.|
 
more_info=See the Coldfront's wiki page on [http://kol.coldfront.net/thekolwiki/index.php/Discoveries Discoveries] for more information.|
special= Returns an empty map for items that cannot be created. Depleted Grimacite items are NOT parsed by this function.|
+
special= Returns an empty map for items that cannot be created at the moment, taking into account gender, skills, tools in inventory, current date, and access to certain forms of crafting (e.g. Crimbo Town).|
 
}}
 
}}
{{RFI|Are there any creation types this function won't parse besides depleted Grimacite?}}
 

Revision as of 06:18, 31 March 2010

needs(code_samples);

Function Syntax

int [item] get_ingredients(item parse_me )

  • parse_me is the creatable item to list the ingredients for

Returns a map keyed by item names with the values equal to the quantity of each ingredient required to make parse_me. Note that for multi-stage crafting (where you combine several items to get intermediate items, and then combine those for the final result), only the last stage of requirements is listed. This function will parse items that can be created through multi-use of items as well as "traditional" creation methods such as cooking, cocktailcrafting, and smithing.

More Information

See the Coldfront's wiki page on Discoveries for more information.

Special

Returns an empty map for items that cannot be created at the moment, taking into account gender, skills, tools in inventory, current date, and access to certain forms of crafting (e.g. Crimbo Town).