Difference between revisions of "User:Caledor92/Sandbox1/doc"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Caledor92
(Replaced content with "{{User:Caledor92/Sandbox2 |IdLong=10550101 |Id=100010 |Name=Mym |FullName=Gala Mym |NameJP=ムム |Title=Lovestruck Dragon |TitleJP={{Ruby|恋する乙女竜|ラヴィン...")
>Caledor92
Line 1: Line 1:
{{User:Caledor92/Sandbox2
+
{{User:Caledor92/Sandbox3
|IdLong=10550101
+
|Id=40050001
|Id=100010
+
|BaseId=400062
|Name=Mym
+
|Name=Valiant Crown
|FullName=Gala Mym
+
|NameJP=ブレイジング・クラウン
|NameJP=ムム
+
|FeaturedCharacters=[[Euden]]
|Title=Lovestruck Dragon
+
|Obtain=[[Campaign_Quests|Campaign: Normal]], [[Shop#Wyrmprints|Wyrmprints Shop]]
|TitleJP={{Ruby|恋する乙女竜|ラヴィングドラゴン}}
+
|ReleaseDate=Sep 27, 2018
|Obtain=[[Gala Dragalia]] Summon Showcase
+
|Availability=Permanent
|ReleaseDate=May 27, 2019
 
|Availability=Gala
 
|WeaponType=Lance
 
 
|Rarity=5
 
|Rarity=5
|Gender=Female
+
|AmuletType=1
|Race=Dragon
+
|MinHp=26
|ElementalType=Flame
+
|MaxHp=176
|CharaType=Attack
+
|MinAtk=9
|VariationId=4
+
|MaxAtk=65
|MinHp3=44
+
|VariationId=1
|MinHp4=54
+
|Abilities11=110060004
|MinHp5=63
+
|Abilities12=110060005
|MaxHp=448
+
|Abilities13=110060006
|PlusHp0=52
+
|Abilities21=210000603
|PlusHp1=60
+
|Abilities22=210000604
|PlusHp2=72
+
|Abilities23=210000605
|PlusHp3=60
+
|Abilities31=0
|PlusHp4=30
+
|Abilities32=0
|McFullBonusHp5=27
 
|MinAtk3=30
 
|MinAtk4=37
 
|MinAtk5=43
 
|MaxAtk=305
 
|PlusAtk0=35
 
|PlusAtk1=41
 
|PlusAtk2=49
 
|PlusAtk3=41
 
|PlusAtk4=20
 
|McFullBonusAtk5=19
 
|MinDef=10
 
|DefCoef=10
 
|Skill1Name=Dragon Claw
 
|Skill2Name=Flames of Passion
 
|Abilities11=237
 
|Abilities12=238
 
|Abilities13=0
 
|Abilities14=0
 
|Abilities21=233
 
|Abilities22=234
 
|Abilities23=0
 
|Abilities24=0
 
|Abilities31=110010805
 
|Abilities32=110010806
 
 
|Abilities33=0
 
|Abilities33=0
|Abilities34=0
+
|Ability1Event=0
|ExAbilityData1=101010005
+
|Ability2Event=0
|ExAbilityData2=101010006
+
|Ability3Event=0
|ExAbilityData3=101010007
+
|ArtistCV=Akihiko Yoshida (吉田 明彦)
|ExAbilityData4=101010008
+
|FlavorText1=A crisis has befallen the Kingdom of Alberia. The power of its Sacred Shard is fading, and the kingdom is in turmoil. A benevolent prince, seventh heir to the Alberian throne, departs from the capital to save his home.
|ExAbilityData5=101010010
+
|FlavorText2=The prince's mind is filled with the faces of Alberia's people. They want nothing more than to keep living in peace—and that is precisely why he fights.
|ManaCircleName=MC_0502
+
|FlavorText3=As he hurries to meet the dragon, fiends block the prince's path. With his desire to protect his family and country pounding in his veins, he slays them with a single blow.
|JapaneseCV=Aya Endo
+
|FlavorText4=Two faces surface in the prince's mind— Zethia and Notte. Both are important to him, and he silently apologizes for leaving them behind, swearing anew to return safely. Then he takes up his sword once more.
|EnglishCV=Kelly Marie
+
|FlavorText5=He refuses to hesitate, no matter what. Filled with courage, the prince keeps moving relentlessly forward, ready for whatever fate might have in store for him.
|Description=The Flamewyrm Brunhilda, who assumed a human form to be closer to her darling, the prince. Her love knows no bounds, and burns hotter than even her own fierce blazes.
 
 
|IsPlayable=1
 
|IsPlayable=1
|MaxFriendshipPoint=0
+
|SellCoin=5000
 +
|SellDewPoint=3000
 
}}
 
}}

Revision as of 17:43, 14 November 2019

<script type="text/javascript"> // Constants const LB_COUNT = ; const MIN_LEVEL = 1; const MAX_LEVEL = 80; const LB_MAX_LEVEL = 100; const MIN_HP = [,,]; const MAX_HP = ; const MIN_STR = [,,]; const MAX_STR = ; const NAT_RARITY = ;;

// Load modules, init, etc. document.addEventListener("DOMContentLoaded", function(event) {

 init();
 calcStats();

});

// Initialize the empty divs with content function init() {

 if (NAT_RARITY == 3) {
   document.getElementById("adv-rarity-input-3").innerHTML = '<input type="radio" value=3 name="rarity" oninput="calcStats()"><label for="adv-rarity-input-3">3★</label>';
   document.getElementById("adv-rarity-input-4").innerHTML = '<input type="radio" value=4 name="rarity" oninput="calcStats()"><label for="adv-rarity-input-4">4★</label>';
 } else if (NAT_RARITY == 4) {
   document.getElementById("adv-rarity-input-4").innerHTML = '<input type="radio" value=4 name="rarity" oninput="calcStats()"><label for="adv-rarity-input-4">4★</label>';
 }
 document.getElementById("adv-rarity-input-5").innerHTML = '<input type="radio" value=5 name="rarity" oninput="calcStats()" checked=1><label for="adv-rarity-input-5">5★</label>';
 if (LB_COUNT > 4) {
   document.getElementById("adv-rarity-input-s").innerHTML = '<input type="radio" value=s name="rarity" oninput="calcStats()" checked=1><label for="adv-rarity-input-s">S★</label>';
   document.getElementById("adv-level-input").innerHTML = '<label for="adv-level-input-field" style="font-weight:bold;">Level</label><input type="number" id="adv-level-input-field" value=100 min=1 max=100 style="width:40px; text-align:center; margin-left:5px;" oninput="calcStats()">';
 } else {
   document.getElementById("adv-level-input").innerHTML = '<label for="adv-level-input-field" style="font-weight:bold;">Level</label><input type="number" id="adv-level-input-field" value=80 min=1 max=80 style="width:40px; text-align:center; margin-left:5px;" oninput="calcStats()">';
 }

}

// Calculate the HP and STR stats function calcStats() {

 // Get the level and rarity
 var levelInput = document.getElementById('adv-level-input-field');
 var level = levelInput.value;
 var rarity = document.querySelector('input[name = "rarity"]:checked').value;
 // Manually set the level cap if we're dealing with a lower rarity
 switch (rarity) {
   case "3":
     if (level > 60) {
       level = 60;
       levelInput.value = "60";
     }
     break;
   case "4":
     if (level > 70) {
       level = 70;
       levelInput.value = "70";
     }
     break;
   case "5":
     if (level > MAX_LEVEL) {
       level = MAX_LEVEL;
       levelInput.value = MAX_LEVEL;
     }
     break;
   case "s":
     if (level > LB_MAX_LEVEL) {
       level = LB_MAX_LEVEL;
       levelInput.value = LB_MAX_LEVEL;
     }
 }
 
 // Validate the level and rarity before calculating HP and Str
 if(validateLevel(level) && validateRarity(rarity)) {
   setHP(calculateHP(level, rarity), level)
   setStr(calculateStr(level, rarity), level)
 } else {
   setHP("-");
   setStr("-");
 }

}

// Check if level is a number we can calculate with function validateLevel(value) {

 if(isNaN(value) || value == "") {
   return false;
 }
 return true;

}

// Check if rarity is either 3, 4, or 5 function validateRarity(rarity) {

 if(rarity == 3 || rarity == 4 || rarity == 5 || rarity == "3" || rarity == "4" || rarity == "5" || rarity == "s" || rarity == "S") {
   return true;
 }
 return false;

}

// Set the HP value in the display function setHP(value, level) {

 if (value != "-") {
   document.getElementById("adv-hp-label").innerHTML = "Level " + level + " HP"
 } else {
   document.getElementById("adv-hp-label").innerHTML = "HP"
 }
 document.getElementById("adv-hp").innerHTML = value;

}

// Set the Str value in the display function setStr(value, level) {

 if (value != "-") {
   document.getElementById("adv-str-label").innerHTML = "Level " + level + " Str"
 } else {
   document.getElementById("adv-str-label").innerHTML = "Str"
 }
 document.getElementById("adv-str").innerHTML = value;

}

// Calculate the HP function calculateHP(level, rarity) {

 var levelDiff = MAX_LEVEL - MIN_LEVEL;
 var steps = (MAX_HP - MIN_HP[2]) / levelDiff;
 var statGain = (level-1) * steps;
 return Math.ceil(MIN_HP[rarity-3] + statGain);

}

// Calculate the Str function calculateStr(level, rarity) {

 var levelDiff = MAX_LEVEL - MIN_LEVEL;
 var steps = (MAX_STR - MIN_STR[2]) / levelDiff;
 var statGain = (level-1) * steps;
 return Math.ceil(MIN_STR[rarity-3] + statGain);

} </script>

 <form id="adv-rarity-select" style="display:inline;">
 </form>
Max 5★ HP:
Max 5★ Str: