From Dark and Darker Wiki
No edit summary |
(Changing Template to use calls that work with Merchant Data.) |
||
Line 1: | Line 1: | ||
{{#if:{{ | <includeonly><!-- | ||
-->{{#if:<!-- | |||
If the Alchemist crafts this item, then set the merchant to Alchemist. | |||
-->{{#if:{{Merchant Data|Alchemist|Crafts|{{{1|{{PAGENAME}}}}}|rarity}}<!-- | |||
-->|{{#vardefineecho:merchant|Alchemist}}<!-- | |||
Else if the Armourer crafts this item, then set the merchant to Armourer. | |||
-->|{{#if:{{Merchant Data|Armourer|Crafts|{{{1|{{PAGENAME}}}}}|rarity}}<!-- | |||
-->|{{#vardefineecho:merchant|Armourer}}<!-- | |||
Else if the Leathersmith crafts this item, then set the merchant to Leathersmith. | |||
-->|{{#if:{{Merchant Data|Leathersmith|Crafts|{{{1|{{PAGENAME}}}}}|rarity}}<!-- | |||
-->|{{#vardefineecho:merchant|Leathersmith}}<!-- | |||
Else if the Tailor crafts this item, then set the merchant to Tailor. | |||
-->|{{#if:{{Merchant Data|Tailor|Crafts|{{{1|{{PAGENAME}}}}}|rarity}}<!-- | |||
-->|{{#vardefineecho:merchant|Tailor}}<!-- | |||
Else if the Weaponsmith crafts this item, then set the merchant to Weaponsmith. | |||
-->|{{#if:{{Merchant Data|Weaponsmith|Crafts|{{{1|{{PAGENAME}}}}}|rarity}}<!-- | |||
-->|{{#vardefineecho:merchant|Weaponsmith}} }} }} }} }} }}| | |||
==Craftable== | ==Craftable== | ||
{{PAGENAME}} is a [[Crafting|craftable]]. | {{{1|{{PAGENAME}}}}} is a [[Crafting|craftable]]. | ||
{{CraftingTable| | {{CraftingTable| | ||
{{GenerateCraftingRow|{{PAGENAME}}}}}}|}} | {{GenerateCraftingRow|{{#var:merchant}}|{{{1|{{PAGENAME}}}}} }} | ||
}} }}</includeonly><noinclude> | |||
<pre>{{Craftable|Gold Powder}}</pre> | |||
{{Craftable|Sterling Blade}} | |||
</noinclude> |