From Dark and Darker Wiki
(Merged ArmorTable, GenerateArmorRows, GenerateArmorRow) |
(Fixed loop issue. Fixed depreciated string for "Magical Resistance".) |
||
(3 intermediate revisions by the same user not shown) | |||
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 29: | Line 29: | ||
-->|2<!-- | -->|2<!-- | ||
-->|{{#var:rarities}}}}<!-- | -->|{{#var:rarities}}}}<!-- | ||
-->|caption=< | -->|amount=<!-- | ||
--><span style="color:#EEEA; font-size:16px">{{Armor Data|{{#var:current}}|Types|All}}</span><!-- | |||
-->|caption=<span class="colorrarity{{#var:rarities}}">{{#var:current}}</span>}}</td><!-- | |||
Classes | Classes | ||
Line 39: | Line 41: | ||
-->||<td>{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|move speed}} }}<!-- | -->||<td>{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|move speed}} }}<!-- | ||
-->|{{#var:armor_stat}}<!-- | -->|{{#var:armor_stat}}<!-- | ||
-->| | -->|{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|move speed 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|move speed 2}} }}<!-- | -->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|move speed 2}} }}<!-- | ||
-->|<span class="colorrarity2">{{#var:armor_stat}}</span><br>}}<!-- | -->|<span class="colorrarity2">{{#var:armor_stat}}</span><br>}}<!-- | ||
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}} }}<!-- | ||
-->|{{#var:armor_stat}}<!-- | -->|{{#var:armor_stat}}<!-- | ||
-->| | -->|{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|armor rating 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|armor rating 2}} }}<!-- | -->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|armor rating 2}} }}<!-- | ||
Line 102: | 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><!-- | ||
-->{{#var:armor_stat}}<br><!-- | -->{{#var:armor_stat}}<br><!-- | ||
-->|<span style="color:#eee8;">{{#var:attribute}}</span><br><!-- | -->|<span style="color:#eee8;">{{#var:attribute}}</span><br><!-- | ||
-->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|{{#var:attribute}} 1}} }}<!-- | -->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|{{#var:attribute}} 1}} }}<!-- | ||
-->|<span class="colorrarity1">{{#var:armor_stat}}</span><br>}}<!-- | -->|<span class="colorrarity1">{{#var:armor_stat}}</span><br>}}<!-- | ||
Line 140: | 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><!-- | ||
-->{{#var:armor_stat}}<br><!-- | -->{{#var:armor_stat}}<br><!-- | ||
-->|<span style="color:#eee8;">{{#var:stat}}</span><br><!-- | -->|<span style="color:#eee8;">{{#var:stat}}</span><br><!-- | ||
-->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|{{#var:stat}} 1}} }}<!-- | -->{{#if:{{#vardefineecho:armor_stat|{{Armor Data|{{#var:current}}|stats|{{#var:stat}} 1}} }}<!-- | ||
-->|<span class="colorrarity1">{{#var:armor_stat}}</span><br>}}<!-- | -->|<span class="colorrarity1">{{#var:armor_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}} |
|