From Dark and Darker Wiki
m (Added comments. Changed whitespace structure from C style to Python style.) |
(Undo revision 22501) Tag: Undo |
||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
< | <onlyinclude><!-- | ||
vars: reset | vars: reset | ||
-->{{#vardefine:sep|}}<!-- | -->{{#vardefine:sep|}}<!-- | ||
Line 11: | Line 10: | ||
-->{{#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}} }} }} }}<!-- | ||
--></ | --></onlyinclude> | ||
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}} | ||
Latest revision as of 21:43, 16 April 2024
{{:{{{1}}} }}
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