Widget:SummonSimulator

 Descendance Gacha? Increases the overall rate of 3★ characters and 3★ mirrors, and adds characters exclusive to the Descendance Gacha.

 Rate Up 3★ Character?

% Rate Up 3★ Character Chance Simulates an unspecified rate up character in the gacha. Note that the chance of rolling individual 3★ characters will be slightly inaccurate if the rate up character exists in the standard pool (overestimated for the rate up character, and underestimated for others.)

 Rate Up 3★ Mirror?

% Rate Up 3★ Mirror Chance Simulates an unspecified rate up mirror in the gacha.



 var total_yen = 0; var total_3star_chara = 0; var total_3star_mirror = 0;

function dscToggle { if (document.getElementById("descendanceGacha").checked) { document.getElementById("rateUpCharacterPct").value = "0.9"; document.getElementById("rateUpMirrorPct").value = "1.2"; } else { document.getElementById("rateUpCharacterPct").value = "0.6"; document.getElementById("rateUpMirrorPct").value = "0.8"; } }

function rollGacha { var chara_dsc = ["Eruruu", "Kuon", "Mutsumi"]; var chara_3 = ["Anju", "Aruruu", "Atuy", "Benawi", "Camyu", "Fumirul", "Genjimaru", "Karulau", "Kurou", "Mikazuchi", "Munechika", "Nekone", "Nosuri", "Oboro", "Rulutieh", "Touka", "Ulthury", "Uruuru & Saraana"]; var chara_2 = ["Jachdwalt", "Kiwru", "Ougi", "Shis", "Ukon", "Vurai"]; var chara_1 = ["Derihourai", "Itak", "Kamuchataal", "Maroro", "Nuwangi", "Shichirya", "Suwonkas", "Teoro", "Tokifusa"];

var html = " Your Results "; var rateUpCharacterPct = 0; if (document.getElementById("rateUpCharacter").checked) { var x = parseFloat(document.getElementById("rateUpCharacterPct").value); if (isNaN(x) || x < 0 || x > 100) { alert("Rate Up Character Percent is invalid!"); return; } else { rateUpCharacterPct = x;		} }	var rateUpMirrorPct = 0; if (document.getElementById("rateUpMirror").checked) { var x = parseFloat(document.getElementById("rateUpMirrorPct").value); if (isNaN(x) || x < 0 || x > 100) { alert("Rate Up Mirror Percent is invalid!"); return; } else { rateUpMirrorPct = x;		} }	var rate_3star_chara = 2; var rate_3star_mirror = 3; if (document.getElementById("descendanceGacha").checked) { chara_3 = chara_3.concat(chara_dsc); console.log(chara_3); rate_3star_chara = 3; rate_3star_mirror = 4; }

var i;	for (i = 0; i < 10; i++) { let butterfly = Math.random * 100; if (document.getElementById("rateUpCharacter").checked && butterfly <= rateUpCharacterPct) { html += "★★★ Rate Up Character "; total_3star_chara += 1; } else if (butterfly <= rate_3star_chara) { // 3-star character, 2% chance let char = chara_3[Math.floor(Math.random * chara_3.length)]; html += " ★★★ " + char + " "; total_3star_chara += 1; } else if (butterfly <= 10) { // 2-star character, 8% chance let char = chara_2[Math.floor(Math.random * chara_2.length)]; html += " ★★ " + char + " "; } else if (butterfly <= 40) { // 1-star character, 30% chance let char = chara_1[Math.floor(Math.random * chara_1.length)]; html += "★ " + char + " "; } else if (document.getElementById("rateUpMirror").checked && butterfly <= (40 + rateUpMirrorPct)) { html += "★★★ Rate Up Mirror "; total_3star_mirror += 1; } else if (butterfly <= (40 + rate_3star_mirror)) { // 3-star mirror, 3% chance html += " ★★★ Mirror "; total_3star_mirror += 1; } else if (butterfly <= 55) { // 2-star mirror, 12% chance html += " ★★ Mirror "; } else { // 1-star mirror, 45% chance html += "★ Mirror "; }	}	total_yen += 2500;

var myElement = document.getElementById('summon-simulator-output'); myElement.innerHTML = html; var html2 = "Total Yen Spent: ¥" + total_yen + " (about $" + total_yen/100 + " USD) 3★ Characters: " + total_3star_chara + " 3★ Mirrors: " + total_3star_mirror; var myElement2 = document.getElementById('summon-simulator-totals'); myElement2.innerHTML = html2; }

document.getElementById("clickMe").onclick = rollGacha; document.getElementById("descendanceGacha").onclick = dscToggle;