From Dark and Darker Wiki
This is the documentation page for Module:Craft
Overview
Functions for making Crafting table. Data comes from Data:Merchant.json.
Functions
draw_table
Creates a table of craftables
Parameters
- merchant - Merchant of interest
- item - Singular item for which to create a table
- ingredient - Ingredient name, used to filter the provided merchant's crafts for those which use the ingredient
draw_table examples
Void Blade, Weaponsmith
{{#invoke:Craft|draw_table|item=Void Blade|merchant=Weaponsmith}}
| Name | Ingredients | Merchant |
|---|---|---|
Weaponsmith, Iron Ingot
{{#invoke:Craft|draw_table|merchant=Weaponsmith|ingredient=Iron Ingot}}
| Name | Ingredients | Merchant |
|---|---|---|
Weaponsmith
{{#invoke:Craft|draw_table|merchant=Weaponsmith}}
| Name | Ingredients | Merchant |
|---|---|---|