From Dark and Darker Wiki

m (Removed space characters.)
m (Testing.)
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
vars: reset
vars: reset
-->{{#vardefine:sep|}}<!--
-->{{#vardefine:sep|}}<!--
Line 7: Line 6:


Determine the position of "#" character within $1
Determine the position of "#" character within $1
-->{{#vardefine:sep|{{#pos:{{{1}}}|#}}}}<!--
-->{{#vardefine:sep|{{#pos:{{{1}}}|#}} }}<!--
Store everything in front of the "#" character in $1 (or $1 unchanged if it contains no "#" character)
Store everything in front of the "#" character in $1 (or $1 unchanged if it contains no "#" character)
-->{{#vardefine:page|{{#sub:{{{1}}}|0|{{#var:sep}}}}}}<!--
-->{{#vardefine:page|{{#sub:{{{1}}}|0|{{#var:sep}} }} }}<!--
If Sep isn't empty, store everything behind the "#" character
If Sep isn't empty, store everything behind the "#" character
-->{{#if:{{#var:sep}}|<!--
-->{{#if:{{#var:sep}}<!--
-->{{#vardefine:heading|{{#sub:{{{1}}}|{{#expr:{{#var:sep}}+1}}|}}}}}}<!--
-->|{{#vardefine:heading|{{#sub:{{{1}}}|{{#expr:{{#var:sep}}+1}}|}} }} }}<!--


//actual transclusion:
//actual transclusion:
-->{{#if:{{{section|}}}<!--
-->{{#if:{{{section|}}}<!--
Transclude a defined section from the page
Transclude a defined section from the page
-->|{{#lst:{{#var:page}}|{{{section}}}}}<!--
-->|{{#lst:{{#var:page}}|{{{section}}} }}<!--
Transclude heading (part after the "#" character in $1)
Transclude heading (part after the "#" character in $1)
-->|{{#if:{{#var:sep}}<!--
-->|{{#if:{{#var:sep}}<!--
-->|{{#lsth:{{#var:page}}|{{#var:heading}}}}<!--
-->|{{#lsth:{{#var:page}}|{{#var:heading}} }}<!--
-->|{{:{{#var:page}}}}}}}}<!--
-->|{{:{{#var:page}} }} }} }}<!--
--></includeonly><noinclude>
--></includeonly><noinclude>
Example:<pre style="width:fit-content">{{Transclude|Weapons#Rarity}}</pre>
Example:<pre style="width:fit-content">{{Transclude|Weapons#Rarity}}</pre>
{{Transclude|Weapons#Rarity}}
{{Transclude|Weapons#Rarity}}
</noinclude>
</noinclude>

Revision as of 08:55, 13 April 2024

Example:

{{Transclude|Weapons#Rarity}}

Weapons can improve and become stronger as their rarity level increases. A weapon's rarity typically reflects its level of power, with higher rarity weapons providing more damage output and other attributes that can enhance the player's performance in combat.

There are 7 rarities in the game.

Poor | Common | Uncommon | Rare | Epic | Legendary | Unique

Uncommon rarity adds up to 1 new enchantment.

Rare rarity adds up to 2 new enchantments.

Epic rarity adds up to 3 new enchantments.

Legendary rarity adds up to 4 new enchantments.

Unique rarity adds 5 enchantments and may add a special effect varying based on weapon. A list of these effects can be found at Artifacts