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

  • 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.

{{#invoke:Craft|draw_table|item=Void Blade|merchant=Weaponsmith}}
NameIngredientsMerchant
1
1
3
50



{{#invoke:Craft|draw_table|merchant=Weaponsmith|ingredient=Iron Ingot}}
NameIngredientsMerchant
2
1



{{#invoke:Craft|draw_table|merchant=Weaponsmith}}
NameIngredientsMerchant
2
1
1
1
1
1
1
1
1
1
3
50
1
1
1
1
5
50
3
3
1
1
3
50
1
1
1
1
2
3
50
1
2
1
2
1
2
1
2
1
2
1
2
1
2
1
1
2
3
50
1
2
1
1
1
1
1
1
1
1
3
3
1
2
1
1
1
2
1
1
2
2
50
1
1
1
2
50
3
1
1
3
3
50
1
1
1
2
50
1
2
1
1
3
1
1
1
1
1
1
1
1
2
1
1
3
6
50
1
1
1
2
3
1
1
60
1
1
3
3
50
1
2
5
3
50
1
1
3
3
50
1
1
3
50
1
1
1
1
1
1
1
1
1
1
2
1
1
1
1
1
1
3
1
1
1
50
1
1
5
2
50
1
1
3
50

page

Creates, if possible, two tables. The first presents recipes for if the given item is craftable. The second presents recipes that use the item to create other items.

  • item - Singular item for which to create a table.
  • category - Item's item category. Used to lookup merchant crafting presence.

{{#invoke:Craft|page|item=Void Blade|category=Weapon}}

Craftable

Void Blade is craftable with the following crafting recipes.
NameIngredientsMerchant
1
1
3
50



{{#invoke:Craft|page|category=Misc|item=Iron Ingot}}

Craftable

Iron Ingot is craftable with the following crafting recipes.
NameIngredientsMerchant
3
3

Ingredient

Iron Ingot is used in the following crafting recipes.
NameIngredientsMerchant
1
1
3
3
50
2
1
1
1
2
1
1
1
1
2
1
1
3
3
50
1
2
1
1
1
2



{{#invoke:Craft|page|category=Misc|item=Iron Ore}}

Ingredient

Iron Ore is used in the following crafting recipes.
NameIngredientsMerchant
2
3
3