From Dark and Darker Wiki

(Remove Prop from names)
(Clean up variables+ spaces)
Line 1: Line 1:
{{#arraydefine:arr|{{Prop Data|blizzard}}}}
<includeonly>
{{#arraydefine:ItemTypes|high-end props,coffin,ore,chest,herb,crate,pot,skeleton,barrel|,}}
{{#arraydefine:ItemTypes|high-end props,coffin,ore,chest,herb,crate,pot,skeleton,barrel|,}}<!--
{{#arraydefine:NonItemProps|lever,lever door,non-portal escape,portal,regular door,roaster,shrine,skeleton barrel,special door,torch|,}}
-->{{#arraydefine:NonItemProps|lever,lever door,non-portal escape,portal,regular door,roaster,shrine,skeleton barrel,special door,torch|,}}<!--
<!-- MISSING hoard=Treasure Hoard -->
--><!-- MISSING hoard=Treasure Hoard --><!--
 
--><!--
{{#arraydefine:PropAPNames|Treasure Hoard|,}}
-->{{#arraydefine:PropAPNames|Treasure Hoard|,}}<!--
<!-- Remember value -->{{#vardefine:Treasure Hoard-ruins|{{Prop Data|treasure hoard-ruins|hr|ap}}}}
--><!-- Remember value -->{{#vardefine:Treasure Hoard-ruins|{{Prop Data|treasure hoard-ruins|hr|ap}}}}<!--
<!-- Remember value -->{{#vardefine:Treasure Hoard-crypts|{{Prop Data|treasure hoard-crypts|hr|ap}}}}
--><!-- Remember value -->{{#vardefine:Treasure Hoard-crypts|{{Prop Data|treasure hoard-crypts|hr|ap}}}}<!--
<!-- Remember value -->{{#vardefine:Treasure Hoard-gobIce|{{Prop Data|treasure hoard-goblin caves and ice cavern|hr|ap}}}}
--><!-- Remember value -->{{#vardefine:Treasure Hoard-gobIce|{{Prop Data|treasure hoard-goblin caves and ice cavern|hr|ap}}}}<!--
<!-- Remember value -->{{#vardefine:Treasure Hoard-inferAbbys|{{Prop Data|treasure hoard-inferno and ice abyss|hr|ap}}}}
--><!-- Remember value -->{{#vardefine:Treasure Hoard-inferAbbys|{{Prop Data|treasure hoard-inferno and ice abyss|hr|ap}}}}<!--
 
--><!--
<!-- LOOP over item categories -->
--><!-- LOOP over item categories --><!--
{{#loop:LoopI|0|{{#arraysize:ItemTypes}}|
-->{{#loop:LoopI|0|{{#arraysize:ItemTypes}}|<!--
<!--Debug print==-->
--><!--Debug print==--><!--
<!--Debug print{{#var:LoopI}} ->-->
--><!--Debug print{{#var:LoopI}} ->--><!--
<!--Debug print{{#arrayindex:ItemTypes|{{#var:LoopI}}}} :-->
--><!--Debug print{{#arrayindex:ItemTypes|{{#var:LoopI}}}} :--><!--
<!-- Loop over items in category -->
--><!-- Loop over items in category --><!--
{{#arraydefine:CurArrayItems|{{Prop Data|AllList|Global|{{#arrayindex:ItemTypes|{{#var:LoopI}}}}}}|,}}
-->{{#arraydefine:CurArrayItems|{{Prop Data|AllList|Global|{{#arrayindex:ItemTypes|{{#var:LoopI}}}}}}|,}}<!--
{{#loop:LoopJ|0|{{#arraysize:CurArrayItems}}|
-->{{#loop:LoopJ|0|{{#arraysize:CurArrayItems}}|<!--
<!--Debug print{{#arrayindex:CurArrayItems|{{#var:LoopJ}}}}-->
--><!--Debug print{{#arrayindex:CurArrayItems|{{#var:LoopJ}}}}--><!--
<!-- Item ap parsing -->
--><!-- Item ap parsing --><!--
{{#vardefine:toAdd|0}}
-->{{#vardefine:toAdd|0}}<!--
{{#vardefine:CurItem|{{#arrayindex:CurArrayItems|{{#var:LoopJ}}}}}}
-->{{#vardefine:CurItem|{{#arrayindex:CurArrayItems|{{#var:LoopJ}}}}}}<!--
{{#vardefine:highAP|0}}
-->{{#vardefine:highAP|0}}<!--
 
--><!--
{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-global|hr|ap}}}}
-->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-global|hr|ap}}}}<!--
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}-global|{{#var:APVal}}}}
--><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-global|{{#var:APVal}}}}<!--
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}
--><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!--
<!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}
--><!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!--
{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-global#locked|hr|ap}}}}
-->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-global#locked|hr|ap}}}}<!--
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}-globalLocked|{{#var:APVal}}}}
--><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-globalLocked|{{#var:APVal}}}}<!--
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}
--><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!--
<!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}
--><!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!--
 
--><!--
{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-crypts|hr|ap}}}}
-->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-crypts|hr|ap}}}}<!--
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}-crypts|{{#var:APVal}}}}
--><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-crypts|{{#var:APVal}}}}<!--
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}
--><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!--
<!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}
--><!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!--
{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-crypts#locked|hr|ap}}}}
-->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-crypts#locked|hr|ap}}}}<!--
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}-cryptsLocked|{{#var:APVal}}}}
--><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-cryptsLocked|{{#var:APVal}}}}<!--
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}
--><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!--
<!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}
--><!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!--
 
--><!--
{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-ruins|hr|ap}}}}
-->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-ruins|hr|ap}}}}<!--
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}-ruins|{{#var:APVal}}}}
--><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-ruins|{{#var:APVal}}}}<!--
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}
--><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!--
<!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}
--><!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!--
{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-ruins#locked|hr|ap}}}}
-->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-ruins#locked|hr|ap}}}}<!--
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}-ruinsLocked|{{#var:APVal}}}}
--><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-ruinsLocked|{{#var:APVal}}}}<!--
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}
--><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!--
<!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}
--><!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!--
 
--><!--
{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-goblin caves and ice cavern|hr|ap}}}}
-->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-goblin caves and ice cavern|hr|ap}}}}<!--
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}-gobIce|{{#var:APVal}}}}
--><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-gobIce|{{#var:APVal}}}}<!--
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}
--><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!--
<!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}
--><!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!--
{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-goblin caves and ice cavern#locked|hr|ap}}}}
-->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-goblin caves and ice cavern#locked|hr|ap}}}}<!--
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}-gobIceLocked|{{#var:APVal}}}}
--><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-gobIceLocked|{{#var:APVal}}}}<!--
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}
--><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!--
<!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}
--><!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!--
 
--><!--
{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-inferno and ice abyss|hr|ap}}}}
-->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-inferno and ice abyss|hr|ap}}}}<!--
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}-inferAbbys|{{#var:APVal}}}}
--><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-inferAbbys|{{#var:APVal}}}}<!--
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}
--><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!--
<!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}
--><!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!--
{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-inferno and ice abyss#locked|hr|ap}}}}
-->{{#vardefine:APVal|{{Prop Data|{{#var:CurItem}}-inferno and ice abyss#locked|hr|ap}}}}<!--
<!-- Remember value -->{{#vardefine:{{#var:CurItem}}-inferAbbysLocked|{{#var:APVal}}}}
--><!-- Remember value -->{{#vardefine:{{#var:CurItem}}-inferAbbysLocked|{{#var:APVal}}}}<!--
<!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}
--><!-- Fix empty value-->{{#if:{{#var:APVal}}||{{#vardefine:APVal|0}}}}<!--
<!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}
--><!-- Copy value    -->{{#ifexpr:{{#var:APVal}} > {{#var:highAP}}|{{#vardefine:highAP|{{#var:APVal}}}}|}}<!--
 
--><!--
<!-- If -->
--><!-- If --><!--
{{#ifexpr:0 < {{#var:highAP}}|
-->{{#ifexpr:0 < {{#var:highAP}}|<!--
{{#arraydefine:PropAPNames|{{#arrayprint:PropAPNames|,}},{{#var:CurItem}}|,}}
-->{{#arraydefine:PropAPNames|{{#arrayprint:PropAPNames|,}},{{#var:CurItem}}|,}}<!--
|}}
-->|}}<!--
<!-- End If -->
--><!-- End If --><!--
}}
-->}}<!--
}}
-->}}<!--
<!-- END ITEMS LOOP -->
--><!-- END ITEMS LOOP --><!--
<!-- PROP LOOP -->
--><!-- PROP LOOP --><!--
{{#loop:LoopI|0|{{#arraysize:NonItemProps}}|
-->{{#loop:LoopI|0|{{#arraysize:NonItemProps}}|<!--
{{#vardefine:PropCategory|{{#arrayindex:NonItemProps|{{#var:LoopI}}}}}}
-->{{#vardefine:PropCategory|{{#arrayindex:NonItemProps|{{#var:LoopI}}}}}}<!--
<!-- DEBUG PRINT {{#var:LoopI}} {{#var:PropCategory}} :-->
--><!-- DEBUG PRINT {{#var:LoopI}} {{#var:PropCategory}} :--><!--
{{#arraydefine:CurCategProps|{{Prop Data|AllList|{{#var:PropCategory}}|all}}|,}}
-->{{#arraydefine:CurCategProps|{{Prop Data|AllList|{{#var:PropCategory}}|all}}|,}}<!--
<!--{{Prop Data|AllList|{{#var:CurItem}}|all}}-->
--><!--{{Prop Data|AllList|{{#var:CurItem}}|all}}--><!--
{{#loop:LoopJ|0|{{#arraysize:CurCategProps}}|
-->{{#loop:LoopJ|0|{{#arraysize:CurCategProps}}|<!--
{{#vardefine:CurItem|{{#arrayindex:CurCategProps|{{#var:LoopJ}}}}}}
-->{{#vardefine:CurItem|{{#arrayindex:CurCategProps|{{#var:LoopJ}}}}}}<!--
{{#vardefine:APVal|{{Prop Data|{{#arrayindex:CurCategProps|{{#var:LoopJ}}}}|global|ap}}}}
-->{{#vardefine:APVal|{{Prop Data|{{#arrayindex:CurCategProps|{{#var:LoopJ}}}}|global|ap}}}}<!--
{{#vardefine:{{#var:CurItem}}-global|{{#var:APVal}}}}
-->{{#vardefine:{{#var:CurItem}}-global|{{#var:APVal}}}}<!--
{{#if:{{#var:APVal}}|
-->{{#if:{{#var:APVal}}|<!--
{{#arraydefine:PropAPNames|{{#arrayprint:PropAPNames|,}},{{#var:CurItem}}|,}}
-->{{#arraydefine:PropAPNames|{{#arrayprint:PropAPNames|,}},{{#var:CurItem}}|,}}<!--
|}}
-->|}}<!--
}}
-->}}<!--
}}
-->}}<!--
<!-- END PROP LOOP -->
--><!-- END PROP LOOP --><!--
<!-- Result Table --><!--
--><!-- Result Table --><!--
--><table id="SumQuestItemsTable" cellspacing="0" class="wikitable sortable stripedtable jquery-tablesorter" style="width:80%; border-collapse:collapse; background:transparent; text-align:center"><!--
--><table id="SumQuestItemsTable" cellspacing="0" class="wikitable sortable stripedtable jquery-tablesorter" style="width:80%; border-collapse:collapse; background:transparent; text-align:center"><!--
--><tr><!--
--><tr><!--
--><th style="width:20%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Name</th><!--
--><th style="width:20%" class="headerSort" tabindex="0" role="columnheader button" title="Sort ascending">Name</th><!--
        --><th style="width:10%" class="headerSort" tabindex="2" role="columnheader button" title="Traders">Goblin / Ice Cavern</th><!--
--><th style="width:10%" class="headerSort" tabindex="2" role="columnheader button" title="Traders">Goblin / Ice Cavern</th><!--
        --><th style="width:10%" class="headerSort" tabindex="2" role="columnheader button" title="Traders">Crypts</th><!--
--><th style="width:10%" class="headerSort" tabindex="2" role="columnheader button" title="Traders">Crypts</th><!--
--><th style="width:10%" class="headerSort" tabindex="1" role="columnheader button" title="Quantity">Ruins</th><!--
--><th style="width:10%" class="headerSort" tabindex="1" role="columnheader button" title="Quantity">Ruins</th><!--
        --><th style="width:10%" class="headerSort" tabindex="2" role="columnheader button" title="Traders">Inferno / Ice Abbys</th><!--
--><th style="width:10%" class="headerSort" tabindex="2" role="columnheader button" title="Traders">Inferno / Ice Abbys</th><!--
        --></tr><!--
--></tr><!--
        -->{{#loop:LoopTable|0|{{#arraysize:PropAPNames}}<!--
-->{{#loop:LoopTable|0|{{#arraysize:PropAPNames}}<!--
-->|<!-- Loop --><!--
-->|<!-- Loop --><!--
-->{{#vardefine:name|{{#arrayindex:PropAPNames|{{#var:LoopTable}}}}}}<!--
-->{{#vardefine:name|{{#arrayindex:PropAPNames|{{#var:LoopTable}}}}}}<!--
Line 114: Line 114:
-->}}<!--
-->}}<!--
--></table><!--
--></table><!--
--></includeonly><!--
--><noinclude><!--
-->{{Template:Adventure_Points_Table}}

Revision as of 22:13, 5 October 2024