Widget:Summon Simulator/20170317

<!doctype html> FFBE Gacha Simulator - exviuswiki.com     /**		 * FFBE Gacha Simulator v2.0 *		 * https://exviuswiki.com */

var banner_rate = [ // offbanner - 74.75% ['3', 60],           ['4', 14.25],            ['5', 0.5],

// featured - 25.25% ['3_ft', 20], ['4_ft', 4.75], ['5_ft', 0.5] ];

var guarantee_rate = [ // offbanner - 48.75% ['4', 47.5],           ['5', 1.25],

// featured - 51.25% ['4_ft', 47.5], ['5_ft', 3.75] ];

var units = [ { name: 'Queen',				base: 5, featured: false }, { name: 'Olive',				base: 5, featured: false }, { name: 'Emperor',				base: 5, featured: false }, { name: 'Marie',				base: 5, featured: false }, { name: 'Ace',					base: 5, featured: false }, { name: 'Dark Fina',			base: 5, featured: false }, { name: 'Noctis',				base: 5, featured: true }, { name: 'Gilgamesh',			base: 5, featured: true }, { name: 'Luneth',				base: 5, featured: false }, { name: 'Dark Knight Cecil',	base: 5, featured: false }, { name: 'Delita',				base: 5, featured: false }, { name: 'Ramza',				base: 5, featured: false }, { name: 'Lightning',			base: 5, featured: false }, { name: 'Nine',				base: 4, featured: false }, { name: 'Shine',				base: 4, featured: false }, { name: 'Leon',					base: 4, featured: false }, { name: 'Rosa',					base: 4, featured: false }, { name: 'Hope',					base: 4, featured: false }, { name: 'Vanille',				base: 4, featured: false }, { name: 'Gaffgarion',			base: 4, featured: false }, { name: 'Agrias',				base: 4, featured: false }, { name: 'Garnet',				base: 4, featured: false }, { name: 'Chizuru',				base: 4, featured: true }, { name: 'Warrior of Light',		base: 4, featured: false }, { name: 'Luka',					base: 4, featured: false }, { name: 'Mercedes',				base: 4, featured: false }, { name: 'Refia',				base: 4, featured: true }, { name: 'Seven',				base: 4, featured: false }, { name: 'Snow',					base: 4, featured: false }, { name: 'Eight',				base: 3, featured: false }, { name: 'Cinque',				base: 3, featured: false }, { name: 'Shera',				base: 3, featured: false }, { name: 'Kefka',				base: 3, featured: false }, { name: 'Terra',				base: 3, featured: false }, { name: 'Guy',					base: 3, featured: false }, { name: 'Elle',					base: 3, featured: false }, { name: 'Faris',				base: 3, featured: false }, { name: 'Ingus',				base: 3, featured: false }, { name: 'Arc',					base: 3, featured: false }, { name: 'Jack',					base: 3, featured: false }, { name: 'Trey',					base: 3, featured: false }, { name: 'Edge',					base: 3, featured: false }, { name: 'Fang',					base: 3, featured: false }, { name: 'Sazh',					base: 3, featured: false }, { name: 'Mustadio',				base: 3, featured: false }, { name: 'Alma',					base: 3, featured: false }, { name: 'Ludmille',				base: 3, featured: false }, { name: 'Charlotte',			base: 3, featured: false }, { name: 'Amarant',				base: 3, featured: false }, { name: 'Freya',				base: 3, featured: false }, { name: 'Hayate',				base: 3, featured: false }, { name: 'Rakshasa',				base: 3, featured: false }, { name: 'Tellah',				base: 3, featured: false }, { name: 'Lenna',				base: 3, featured: false }, { name: 'Celes',				base: 3, featured: false }, { name: 'Gilbert',				base: 3, featured: false }, { name: 'Leo',					base: 3, featured: false }, { name: 'Locke',				base: 3, featured: false }, { name: 'Artemios',				base: 3, featured: false }, { name: 'Xiao',					base: 3, featured: false }, { name: 'Golbez',				base: 3, featured: false }, { name: 'Miyuki',				base: 3, featured: false }, { name: 'Medius',				base: 3, featured: false }, { name: 'Roselia',				base: 3, featured: false }, { name: 'Cerius',				base: 3, featured: false }, { name: 'Duane',				base: 3, featured: false }, { name: 'Vaan',					base: 3, featured: false }, { name: 'Zidane',				base: 3, featured: true }, { name: 'Firion',				base: 3, featured: false }, { name: 'Bartz',				base: 3, featured: false }, { name: 'Cecil',				base: 3, featured: true }, { name: 'Cloud of Darkness',	base: 3, featured: false }, { name: 'Kuja',					base: 3, featured: false }, { name: 'Exdeath',				base: 3, featured: false }, { name: 'Garland',				base: 3, featured: false }, { name: 'Lani',					base: 3, featured: false }, { name: 'Galuf',				base: 3, featured: false }, { name: 'Russell',				base: 3, featured: false }, { name: 'Bedile',				base: 3, featured: false }, { name: 'Luna',					base: 3, featured: false }, { name: 'Anzelm',				base: 3, featured: false }, { name: 'Clyne',				base: 3, featured: false }, { name: 'Cyan',					base: 3, featured: false }, { name: 'Rydia',				base: 3, featured: false }, { name: 'Shantotto',			base: 3, featured: false }, { name: 'Fran',					base: 3, featured: false }, { name: 'Edgar',				base: 3, featured: false }, { name: 'Kain',					base: 3, featured: false }, { name: 'Krile',				base: 3, featured: false }, { name: 'Shadow',				base: 3, featured: false }, { name: 'Sabin',				base: 3, featured: false }, { name: 'Maria',				base: 3, featured: false }, { name: 'Penelo',				base: 3, featured: false }, { name: 'Vivi',					base: 3, featured: false } ];

function arrayColumn(arr, n) { return arr.map(x=> x[n]); }

function summon(num) { $('.gacha-result').text("");

$('.loading img').attr("src", "").attr("src", $('.loading img').data("src")); $('.loading').show;

var wikitext = ' ';

$.ajax({				url: "//exvius.gamepedia.com/api.php?action=parse&format=json&prop=text&contentmodel=wikitext&text=" + wikitext,				dataType: "json"			}) .done(function( data ) {				result = data.parse.text["*"];				result = result.replace(/3_star/g, " &#9733;&#9733;&#9733;  ");				result = result.replace(/4_star/g, "  &#9733;&#9733;&#9733;&#9733;  ");				result = result.replace(/5_star/g, "  &#9733; &#9733; &#9733; &#9733; &#9733;  ");				$('.gacha-result').html(result);

$('.loading img').attr("src", ""); $('.loading').hide; });		}		Summon (1) 		Summon (3) 		Summon (10+1) 				Loading...