From Dark and Darker Wiki

< Module:Armor

m (Fixed example)
No edit summary
Tag: Reverted
Line 1: Line 1:
=Overview=
=Overview=
Functions for making [[Armor]] table. Data comes from [[Data:Armor.json]].
Functions for making [[Misc]] table. Data comes from [[Data:Misc.json]].


=Functions=
=Functions=
==draw_table==
==draw_table==
Creates a table of armors
Creates a table of misc items


===Parameters===
===Parameters===
* ''1'' - <Slot Type>
* ''1'' - <Type>
* ''2'' - Craftable or Uncraftable




==draw_table examples==
==draw_table examples==
===Back===
===Gems===
----
----
<pre>{{#invoke:Armor|draw_table|Back|Craftable}}</pre>
<pre>{{#invoke:Misc|draw_table|Gem}}</pre>




{{#invoke:Armor|draw_table|Back|Craftable}}
{{#invoke:Misc|draw_table|Gem}}
<br>
<br>
===Head===
===Contianer===
----
----
<pre>{{#invoke:Armor|draw_table|Head|Uncraftable}}</pre>
<pre>{{#invoke:Misc|draw_table|Container}}</pre>




{{#invoke:Armor|draw_table|Head|Uncraftable}}
{{#invoke:Misc|draw_table|Container}}

Revision as of 23:18, 7 March 2026

Overview

Functions for making Misc table. Data comes from Data:Misc.json.

Functions

draw_table

Creates a table of misc items

Parameters

  • 1 - <Type>


draw_table examples

Gems


{{#invoke:Misc|draw_table|Gem}}


NameSingle ItemMaximum Item Stack
Sell PriceItem AchieveSell Price / Slot SizeItem Achieve / Slot Size
3
5
12
25
50
100
175
1
1
2
4
6
10
20
9
15
36
75
150
300
525
3
3
6
12
18
30
60
3
5
12
25
50
100
175
1
1
2
4
6
10
20
9
15
36
75
150
300
525
3
3
6
12
18
30
60
3
5
12
25
50
100
175
1
1
2
4
6
10
20
9
15
36
75
150
300
525
3
3
6
12
18
30
60
3
5
12
25
50
100
175
1
1
2
4
6
10
20
9
15
36
75
150
300
525
3
3
6
12
18
30
60


Contianer


{{#invoke:Misc|draw_table|Container}}


NameSell PriceCapacity
32500
25000
1500
1100
5100
55000