From Dark and Darker Wiki
(Temporarily added armor type onto iconbox) |
(Fixed loop issue. Fixed depreciated string for "Magical Resistance".) |
||
Line 7: | Line 7: | ||
||<th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Class Requirements</th> | ||<th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Class Requirements</th> | ||
<th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Movement Speed</th>}} | <th style="width:5%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Movement Speed</th>}} | ||
<th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Armor/ | <th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Armor/magical Rating</th> | ||
<th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Attributes</th> | <th style="width:10%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Attributes</th> | ||
<th style="width:25%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Other</th> | <th style="width:25%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Other</th> | ||
Line 57: | Line 57: | ||
Magic/Armor Rating | Magic/Armor Rating | ||
--><td>{{#if:{{#pos:{{#var:AllStats}}| | --><td>{{#if:{{#pos:{{#var:AllStats}}|Magical Resistance}}<!-- | ||
-->|<div style="display:inline-block; vertical-align:top; | -->|<div style="display:inline-block; vertical-align:top; margin-right:15px; margin-left:15px;"><!-- | ||
--><span style="color:#eee8;"> | --><span style="color:#eee8;">Magical Resistance<br></span><!-- | ||
-->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|magical resistance}} }}<!-- | ||
-->|{{#var:armor_stat}}<!-- | -->|{{#var:armor_stat}}<!-- | ||
-->|{{#vardefine:use_horizontal_format|{{#if:{{Armor Data|{{#var:current}}|stats|armor rating 5}}|1}} }}<!-- | -->|{{#vardefine:use_horizontal_format|{{#if:{{Armor Data|{{#var:current}}|stats|armor rating 5}}|1}} }}<!-- | ||
-->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|magical resistance 1}} }}<!-- | ||
-->|<span class="colorrarity1">{{#var:armor_stat}}</span><br>}}<!-- | -->|<span class="colorrarity1">{{#var:armor_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|magical resistance 2}} }}<!-- | ||
-->|<span class="colorrarity2">{{#var:armor_stat}}</span><br>}}<!-- | -->|<span class="colorrarity2">{{#var:armor_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|magical resistance 3}} }}<!-- | ||
-->|<span class="colorrarity3">{{#var:armor_stat}}</span><br>}}<!-- | -->|<span class="colorrarity3">{{#var:armor_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|magical resistance 4}} }}<!-- | ||
-->|<span class="colorrarity4">{{#var:armor_stat}}</span><br>}}<!-- | -->|<span class="colorrarity4">{{#var:armor_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|magical resistance 5}} }}<!-- | ||
-->|<span class="colorrarity5">{{#var:armor_stat}}</span><br>}}<!-- | -->|<span class="colorrarity5">{{#var:armor_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|magical resistance 6}} }}<!-- | ||
-->|<span class="colorrarity6">{{#var:armor_stat}}</span><br>}}<!-- | -->|<span class="colorrarity6">{{#var:armor_stat}}</span><br>}}<!-- | ||
-->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats| | -->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|magical resistance 7}} }}<!-- | ||
-->|<span class="colorrarity7">{{#var:armor_stat}}</span>}} }}</div>}}<!-- | -->|<span class="colorrarity7">{{#var:armor_stat}}</span>}} }}</div>}}<!-- | ||
-->{{#if:{{#pos:{{#var:AllStats}}|Armor Rating}}<!-- | -->{{#if:{{#pos:{{#var:AllStats}}|Armor Rating}}<!-- | ||
-->|<div style="display:inline-block; vertical-align:top;"><!-- | -->|<div style="display:inline-block; vertical-align:top; margin-right:15px; margin-left:15px;"><!-- | ||
--><span style="color:#eee8;">Armor Rating<br></span><!-- | --><span style="color:#eee8;">Armor Rating<br></span><!-- | ||
-->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|armor rating}} }}<!-- | -->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|armor rating}} }}<!-- | ||
Line 98: | Line 98: | ||
Sieve Stats into Attributes and Others | Sieve Stats into Attributes and Others | ||
-->{{#arraydefine:Stats | -->{{#arraydefine:Stats|{{#var:AllStats}} }}<!-- | ||
-->{{#arraydefine: | -->{{#arraydefine:ResistancesAndMoveSpeed|Armor Rating,Magical Resistance,Move Speed}}<!-- | ||
-->{{#arraydefine: | -->{{#arraydefine:AllAttributes|Strength,Vigor,Agility,Dexterity,Will,Knowledge,Resourcefulness}}<!-- | ||
-->{{#arrayintersect:Attributes|Stats|AllAttributes}}<!-- | |||
-->{{#arraydiff:Others|Stats|AllAttributes|ResistancesAndMoveSpeed}}<!-- | |||
Attribute Stats | Attribute Stats | ||
--><td><!-- | --><td><!-- | ||
-->{{#loop:i|0|{{#arraysize: | -->{{#loop:i|0|{{#arraysize:Attributes}}<!-- | ||
-->|{{#vardefine:attribute|{{#arrayindex: | -->|{{#vardefine:attribute|{{#arrayindex:Attributes|{{#var:i}} }} }}<!-- | ||
--><div style="display:inline-block; vertical-align:top; | --><div style="display:inline-block; vertical-align:top; margin-right:15px; margin-left:15px;"><!-- | ||
-->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|{{#var:attribute}} }} }}<!-- | -->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|{{#var:attribute}} }} }}<!-- | ||
-->|<span style="color:#eee8;">{{#var:attribute}}</span><br><!-- | -->|<span style="color:#eee8;">{{#var:attribute}}</span><br><!-- | ||
Line 134: | Line 131: | ||
Other Stats | Other Stats | ||
--><td><!-- | --><td><!-- | ||
-->{{#loop:i|0|{{#arraysize: | -->{{#loop:i|0|{{#arraysize:Others}}<!-- | ||
-->|{{#vardefine:stat|{{#arrayindex: | -->|{{#vardefine:stat|{{#arrayindex:Others|{{#var:i}} }} }}<!-- | ||
--><div style="display:inline-block; vertical-align:top; | --><div style="display:inline-block; vertical-align:top; margin-right:15px; margin-left:15px;"><!-- | ||
-->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|{{#var:stat}} }} }}<!-- | -->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|{{#var:stat}} }} }}<!-- | ||
-->|<span style="color:#eee8;">{{#var:stat}}</span><br><!-- | -->|<span style="color:#eee8;">{{#var:stat}}</span><br><!-- |
Latest revision as of 03:29, 22 July 2024
- 1={Uncraftable,Craftable,Both}
- 2={Foot,Back,Chest,Head,Legs,Hands}
Example
Code | Preview | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
{{GenerateArmorTable|Uncraftable|Head}} |
|