Difference between pages "The Molten Master" and "MediaWiki:Common.js"

From Dungeon Defenders 2 Wiki
(Difference between pages)
Jump to: navigation, search
(Wielding the Scorched Tome of Molten Brimstone image still missing)
 
(Undo revision 22210 by Sab (talk))
 
Line 1: Line 1:
{{Costume Infobox
+
/* Any JavaScript here will be loaded for all users on every page load. */
|image =
 
<tabber>
 
Wallpaper=
 
[[File:Molten_Master_Wallpaper.jpg|300px]]Artwork by Michael Drake
 
|-|
 
In-Game=
 
[[|300px]]
 
|-|
 
</tabber>
 
|cosmetic_type = Costume
 
|accessories = 4 in total
 
|rarity = <span style="color:#FF00FF"> [[File:Mythical_Icon.png|18px]] Mythical </span><br>
 
|price = [[File:Gem_Icon.png|23px]] 800
 
|availability = Available
 
|hero = [[File:AbyssLord_icon_trans.png|30px|Abyss Lord|link=http://wiki.dungeondefenders2.com/wiki/Abyss_Lord]]
 
}}
 
  
'''''Embody the burning fury of the underworld as the Molten Master.'''''
+
/* Replaces currency keywords (Gold, Gems, Defender Medals) with their icon in elements which include currency costs */
 +
const currencyIcons = {
 +
    "gem": '<a href="/wiki/Gems" class="image"><img alt="Gem Icon.png" src="/images/8/8d/Gem_Icon.png" width="18"></a>',
 +
    "gold": '<a href="/wiki/Gold" class="image"><img alt="Gold Icon.png" src="/images/2/26/Gold_Icon.png" width="18"></a>',
 +
    "defender medal": '<a href="/wiki/Defender_Medals" class="image"><img alt="Defender Medal Icon.png" src="/images/a/a7/Defender_Medal_Icon.png" width="18"></a>'
 +
}
  
The Molten Master is a Mythical costume for the Abyss Lord. The fourth in-line to the throne of fiery firey costumes. It's purchasable for 800 gems from the Seamstress or in the cosmetic interface.
+
Array.from(document.getElementsByClassName('currency-included')).forEach(function (element) {
 +
    if (!element.innerHTML.match(/Gem|Gold|Defender Medal/i)) return
 +
    const currencyRegex = /(Gem|Gold|Defender Medal)s? (\d.*?)(?= |$|\n)|(\d.*?) (Gem|Gold|Defender Medal)s?/gi
 +
    const phrases = element.innerHTML.match(currencyRegex)
 +
    phrases.forEach(function (phrase){
 +
        const currency = phrase.match(/Gem|Gold|Defender Medal/i).toString().toLowerCase()
 +
        const replacement = phrase.replace(currencyRegex, currencyIcons[currency] + " $2$3")
 +
        element.innerHTML = element.innerHTML.replace(phrase, replacement)
 +
    })
 +
})
  
== Accessories ==
+
/* Replaces the XP keyword with the Ascension XP icon in elements which include Ascension XP numbers */
 +
Array.from(document.getElementsByClassName('ascension-xp')).forEach(function (element) {
 +
    element.innerHTML = element.innerHTML.replace(/XP (\d.*?)(?= |$|\n)|(\d.*?) XP/gi, '<a href="/wiki/Experience" class="image"><img alt="Ascension XP Icon.png" src="/images/c/cf/Ascension_XP_Icon.png" width="18"></a> $1$2')
 +
})
  
{| class="wikitable" style="width:70%; style="text-align:center;"
+
/* Replaces the XP keyword with the Defender Pass XP icon in elements which include Defender Pass XP numbers */
|-
+
Array.from(document.getElementsByClassName('pass-xp')).forEach(function (element) {
! Accessory !! Rarity !! Piece !! Flavor Text
+
    element.innerHTML = element.innerHTML.replace(/XP (\d.*?)(?= |$|\n)|(\d.*?) XP/gi, '<a class="image"><img alt="Defender Pass XP Icon.png" src="/images/2/23/Defender_Pass_XP_Icon.png" width="18"></a> $1$2')
|-
+
})
| [[File:Cowl_of_Burning_Visions_Icon.png|50px]]
 
  
'''Cowl of Burning Visions'''  
+
/* Replaces the rarity keywords like "Worn, "Sturdy", "Powerful", "Epic", "Mythical", "Legendary", and "Godly" to have their icon on the left of the name  */
|| <span style="color:#3366ff"> [[File:Epic_Icon.png|18px]] Epic </span> || '''Head''' || ''The eyes of the Molten Master glow like burning embers beneath this ornate cowl.''
+
Array.from(document.getElementsByClassName('rarity')).forEach(function (element) {
|-
+
    element.innerHTML = element.innerHTML.replace(/Worn/gi, '<a class="image"> <img alt="Worn Icon.png" src="/images/3/34/Worn_Icon.png" width="18"> <span style="color: #808080;">Worn</span> </a>');
| [[File:Ember_Fury_Robes_Icon.png|50px]]
+
    element.innerHTML = element.innerHTML.replace(/Sturdy/gi, '<a class="image"> <img alt="Sturdy Icon.png" src="/images/c/cf/Sturdy_Icon.png" width="18"> <span style="color: #808000;">Sturdy</span> </a>');
 
+
    element.innerHTML = element.innerHTML.replace(/Powerful/gi, '<a class="image"> <img alt="Powerful Icon.png" src="/images/2/29/Powerful_Icon.png" width="18"> <span style="color: #008000;">Powerful</span> </a>');
'''Ember Fury Robes'''
+
    element.innerHTML = element.innerHTML.replace(/Epic/gi, '<a class="image"> <img alt="Epic Icon.png" src="/images/f/fc/Epic_Icon.png" width="18"> <span style="color: #3366FF;">Epic</span> </a>');
|| <span style="color:#FF00FF"> [[File:Mythical_Icon.png|18px]] Mythical </span><br> || '''Robes''' || ''Conjured from pure flame and the finest emberweave.''
+
    element.innerHTML = element.innerHTML.replace(/Mythical/gi, '<a class="image"> <img alt="Mythical Icon.png" src="/images/1/18/Mythical_Icon.png" width="18"> <span style="color: #FF00FF;">Mythical</span> </a>');
|-
+
    element.innerHTML = element.innerHTML.replace(/Legendary/gi, '<a class="image"> <img alt="Legendary Icon.png" src="/images/1/11/Legendary_Icon.png" width="18"> <span style="color: #FF9900;">Legendary</span> </a>');
| [[File:Foci_of_Molten_Fury_Icon.png|50px]]
+
    element.innerHTML = element.innerHTML.replace(/Godly/gi, '<a class="image"> <img alt="Godly Icon.png" src="/images/d/d0/Godly_Icon.png" width="18"> <span style="color: #00FFFF;">Godly</span> </a>');
 
+
})
'''Foci of Molten Fury'''
 
|| <span style="color:#3366ff"> [[File:Epic_Icon.png|18px]] Epic </span> || '''Stones''' || ''Arcane ember magic crystal spheres hone and focus the Molten Master's power to devastating effect.''
 
|-
 
| [[File:Blazing_Guardians_Pauldrons_Icon.png|50px]]
 
 
 
'''Blazing Guardian Pauldrons'''
 
|| <span style="color:#FF00FF"> [[File:Mythical_Icon.png|18px]] Mythical </span><br> || '''Pauldrons''' || ''These pauldrons were forged in the visage of terrifying flame beasts of the underworld.''
 
|}
 
 
 
== Notes and Trivia ==
 
[[File:Mummy_Headed_Molten_Master.png|Mummy-faced.|250px|thumb]]
 
* Interestingly, in the preview trailer for the Abyss Lord, the Molten Master Costume appeared with his head wrapped in mummy cloth. This is probably some concept leftovers.
 
 
 
* The Molten Master is the first of three heroes to have their first alternate costume be fire themed - the second would be the Lavamancer's [[Molten Juggernaut]] and the third would be the Adept's [[Doomfire Regalia]].
 
 
 
* The [[File:Molten_Battleaxe_Icon.png|35px]] Molten Battleaxe's design is most likely based on the Molten Master costume. Of course due to the weapon being an axe, the Molten Master won't be able to wield it.
 
 
 
* The wallpaper shows the Molten Master wielding the [[File:Molten Tome Icon.png|35px]] Scorched Tome of Molten Brimstone.
 
 
 
* The Molten Master was once included (among other stuff) in a DLC called the Heartwarming Bundle as a celebration for Valentine's Day 2018. Sadly, there no heart-shaped eyes for the actual costume like the DLC's wallpaper depicted.
 
 
 
== Gallery ==
 
{| class="wikitable"
 
|-
 
|
 
<gallery>
 
File:DD2_Heartwarming_Bundle_Wallpaper.jpg|The Heartwarming Bundle DLC Wallpaper
 
</gallery>
 
||
 
<gallery>
 
Example.jpg|Wielding the Scorched Tome of Molten Brimstone
 
</gallery>
 
||
 
<gallery>
 
File:Fire_Costume_Greetings.jpg|Fire Costumes Entourage
 
</gallery>
 
|}
 
 
 
== History ==
 
* '''[Early Access] 11.0''' : Introduced.
 

Revision as of 04:45, 25 July 2024

/* Any JavaScript here will be loaded for all users on every page load. */

/* Replaces currency keywords (Gold, Gems, Defender Medals) with their icon in elements which include currency costs */
const currencyIcons = {
    "gem": '<a href="/wiki/Gems" class="image"><img alt="Gem Icon.png" src="/images/8/8d/Gem_Icon.png" width="18"></a>',
    "gold": '<a href="/wiki/Gold" class="image"><img alt="Gold Icon.png" src="/images/2/26/Gold_Icon.png" width="18"></a>',
    "defender medal": '<a href="/wiki/Defender_Medals" class="image"><img alt="Defender Medal Icon.png" src="/images/a/a7/Defender_Medal_Icon.png" width="18"></a>'
}

Array.from(document.getElementsByClassName('currency-included')).forEach(function (element) {
    if (!element.innerHTML.match(/Gem|Gold|Defender Medal/i)) return
    const currencyRegex = /(Gem|Gold|Defender Medal)s? (\d.*?)(?= |$|\n)|(\d.*?) (Gem|Gold|Defender Medal)s?/gi
    const phrases = element.innerHTML.match(currencyRegex)
    phrases.forEach(function (phrase){
        const currency = phrase.match(/Gem|Gold|Defender Medal/i).toString().toLowerCase()
        const replacement = phrase.replace(currencyRegex, currencyIcons[currency] + " $2$3")
        element.innerHTML = element.innerHTML.replace(phrase, replacement)
    })
})

/* Replaces the XP keyword with the Ascension XP icon in elements which include Ascension XP numbers */
Array.from(document.getElementsByClassName('ascension-xp')).forEach(function (element) {
    element.innerHTML = element.innerHTML.replace(/XP (\d.*?)(?= |$|\n)|(\d.*?) XP/gi, '<a href="/wiki/Experience" class="image"><img alt="Ascension XP Icon.png" src="/images/c/cf/Ascension_XP_Icon.png" width="18"></a> $1$2')
})

/* Replaces the XP keyword with the Defender Pass XP icon in elements which include Defender Pass XP numbers */
Array.from(document.getElementsByClassName('pass-xp')).forEach(function (element) {
    element.innerHTML = element.innerHTML.replace(/XP (\d.*?)(?= |$|\n)|(\d.*?) XP/gi, '<a class="image"><img alt="Defender Pass XP Icon.png" src="/images/2/23/Defender_Pass_XP_Icon.png" width="18"></a> $1$2')
})

/* Replaces the rarity keywords like "Worn, "Sturdy", "Powerful", "Epic", "Mythical", "Legendary", and "Godly" to have their icon on the left of the name  */
Array.from(document.getElementsByClassName('rarity')).forEach(function (element) {
    element.innerHTML = element.innerHTML.replace(/Worn/gi, '<a class="image"> <img alt="Worn Icon.png" src="/images/3/34/Worn_Icon.png" width="18"> <span style="color: #808080;">Worn</span> </a>');
    element.innerHTML = element.innerHTML.replace(/Sturdy/gi, '<a class="image"> <img alt="Sturdy Icon.png" src="/images/c/cf/Sturdy_Icon.png" width="18"> <span style="color: #808000;">Sturdy</span> </a>');
    element.innerHTML = element.innerHTML.replace(/Powerful/gi, '<a class="image"> <img alt="Powerful Icon.png" src="/images/2/29/Powerful_Icon.png" width="18"> <span style="color: #008000;">Powerful</span> </a>');
    element.innerHTML = element.innerHTML.replace(/Epic/gi, '<a class="image"> <img alt="Epic Icon.png" src="/images/f/fc/Epic_Icon.png" width="18"> <span style="color: #3366FF;">Epic</span> </a>');
    element.innerHTML = element.innerHTML.replace(/Mythical/gi, '<a class="image"> <img alt="Mythical Icon.png" src="/images/1/18/Mythical_Icon.png" width="18"> <span style="color: #FF00FF;">Mythical</span> </a>');
    element.innerHTML = element.innerHTML.replace(/Legendary/gi, '<a class="image"> <img alt="Legendary Icon.png" src="/images/1/11/Legendary_Icon.png" width="18"> <span style="color: #FF9900;">Legendary</span> </a>');
    element.innerHTML = element.innerHTML.replace(/Godly/gi, '<a class="image"> <img alt="Godly Icon.png" src="/images/d/d0/Godly_Icon.png" width="18"> <span style="color: #00FFFF;">Godly</span> </a>');
})