//****************************************************************************************************
// 	Spellcard Database
//	Version 1.0
//
//	Contains all the spell cards defined in vars to be used in Spell Practise mode. 
//	
//
//	Explanation:
//	Arrays are below to hold all spell cards per difficulty. Array = <difficulty>[stage][card] (2D array)
//	Example to read Tenji's THIRD spell from STAGE 2 with LUNATIC mode, you need to call: runaSpellCards[1][3];
//	Normally you would think [1][2] because index starts at 0, but Index 0 = midboss spell (Nue & Kogasa) and therefore Tenji's first card begins at [1].
//	Exception made for Stage 3 where the midbosses take Index 1 and 2 (Rival cards). So DJ's card starts at [2]!
//	Last words are not included yet in this version.
//
//****************************************************************************************************

// Normal spell cards
let stg1Mid02_norm = "script/thdcs/stage/stage01/norm_midbal02.txt";
let stg1Spell01_norm = "script/thdcs/stage/stage01/norm_bal01spell.txt";
let stg1Spell02_norm = "script/thdcs/stage/stage01/norm_bal02spell.txt";
let stg1Spell03_norm = "script/thdcs/stage/stage01/norm_bal03spell.txt";
let stg1Spell04_norm = "script/thdcs/stage/stage01/norm_bal04spell.txt";

let stg2Mid02_norm = "script/thdcs/stage/stage02/norm_midafro02.txt";
let stg2Spell01_norm = "script/thdcs/stage/stage02/norm_afro01spell.txt";
let stg2Spell02_norm = "script/thdcs/stage/stage02/norm_afro02spell.txt";
let stg2Spell03_norm = "script/thdcs/stage/stage02/norm_afro03spell.txt";
let stg2Spell04_norm = "script/thdcs/stage/stage02/norm_afro04spell.txt";
let stg2Spell05_norm = "script/thdcs/stage/stage02/norm_afro05spell.txt";
let stg2Spell06_norm = "script/thdcs/stage/stage02/norm_afro06spell.txt";
let stg2Spell07_norm = "script/thdcs/stage/stage02/norm_afro07spell.txt";

let stg3Mid02A_norm = "script/thdcs/stage/stage03/norm_mid_border_02.txt";
let stg3Mid02B_norm = "script/thdcs/stage/stage03/norm_mid_magic_02.txt";
let stg3Spell01_norm = "script/thdcs/stage/stage03/norm_dj01spell.txt";
let stg3Spell02_norm = "script/thdcs/stage/stage03/norm_dj02spell.txt";
let stg3Spell03_norm = "script/thdcs/stage/stage03/norm_dj03spell.txt";
let stg3Spell04_norm = "script/thdcs/stage/stage03/norm_dj04spell.txt";
let stg3Spell05_norm = "script/thdcs/stage/stage03/norm_dj05spell.txt";
let stg3Spell06_norm = "script/thdcs/stage/stage03/norm_dj06spell.txt";
let stg3Spell07_norm = "script/thdcs/stage/stage03/norm_dj07spell.txt";

// Hard spell cards
let stg1Mid02_hard = "script/thdcs/stage/stage01/hard_midbal02.txt";
let stg1Spell01_hard = "script/thdcs/stage/stage01/hard_bal01spell.txt";
let stg1Spell02_hard = "script/thdcs/stage/stage01/hard_bal02spell.txt";
let stg1Spell03_hard = "script/thdcs/stage/stage01/hard_bal03spell.txt";
let stg1Spell04_hard = "script/thdcs/stage/stage01/hard_bal04spell.txt";

let stg2Mid02_hard = "script/thdcs/stage/stage02/hard_midafro02.txt";
let stg2Spell01_hard = "script/thdcs/stage/stage02/hard_afro01spell.txt";
let stg2Spell02_hard = "script/thdcs/stage/stage02/hard_afro02spell.txt";
let stg2Spell03_hard = "script/thdcs/stage/stage02/hard_afro03spell.txt";
let stg2Spell04_hard = "script/thdcs/stage/stage02/hard_afro04spell.txt";
let stg2Spell05_hard = "script/thdcs/stage/stage02/hard_afro05spell.txt";
let stg2Spell06_hard = "script/thdcs/stage/stage02/hard_afro06spell.txt";
let stg2Spell07_hard = "script/thdcs/stage/stage02/hard_afro07spell.txt";

let stg3Mid02A_hard = "script/thdcs/stage/stage03/hard_mid_border_02.txt";
let stg3Mid02B_hard = "script/thdcs/stage/stage03/hard_mid_magic_02.txt";
let stg3Spell01_hard = "script/thdcs/stage/stage03/hard_dj01spell.txt";
let stg3Spell02_hard = "script/thdcs/stage/stage03/hard_dj02spell.txt";
let stg3Spell03_hard = "script/thdcs/stage/stage03/hard_dj03spell.txt";
let stg3Spell04_hard = "script/thdcs/stage/stage03/hard_dj04spell.txt";
let stg3Spell05_hard = "script/thdcs/stage/stage03/hard_dj05spell.txt";
let stg3Spell06_hard = "script/thdcs/stage/stage03/hard_dj06spell.txt";
let stg3Spell07_hard = "script/thdcs/stage/stage03/hard_dj07spell.txt";

// Lunatic spell cards
let stg1Mid02_runa = "script/thdcs/stage/stage01/runa_midbal02.txt";
let stg1Spell01_runa = "script/thdcs/stage/stage01/runa_bal01spell.txt";
let stg1Spell02_runa = "script/thdcs/stage/stage01/runa_bal02spell.txt";
let stg1Spell03_runa = "script/thdcs/stage/stage01/runa_bal03spell.txt";
let stg1Spell04_runa = "script/thdcs/stage/stage01/runa_bal04spell.txt";

let stg2Mid02_runa = "script/thdcs/stage/stage02/runa_midafro02.txt";
let stg2Spell01_runa = "script/thdcs/stage/stage02/runa_afro01spell.txt";
let stg2Spell02_runa = "script/thdcs/stage/stage02/runa_afro02spell.txt";
let stg2Spell03_runa = "script/thdcs/stage/stage02/runa_afro03spell.txt";
let stg2Spell04_runa = "script/thdcs/stage/stage02/runa_afro04spell.txt";
let stg2Spell05_runa = "script/thdcs/stage/stage02/runa_afro05spell.txt";
let stg2Spell06_runa = "script/thdcs/stage/stage02/runa_afro06spell.txt";
let stg2Spell07_runa = "script/thdcs/stage/stage02/runa_afro07spell.txt";

let stg3Mid02A_runa = "script/thdcs/stage/stage03/runa_mid_border_02.txt";
let stg3Mid02B_runa = "script/thdcs/stage/stage03/runa_mid_magic_02.txt";
let stg3Spell01_runa = "script/thdcs/stage/stage03/runa_dj01spell.txt";
let stg3Spell02_runa = "script/thdcs/stage/stage03/runa_dj02spell.txt";
let stg3Spell03_runa = "script/thdcs/stage/stage03/runa_dj03spell.txt";
let stg3Spell04_runa = "script/thdcs/stage/stage03/runa_dj04spell.txt";
let stg3Spell05_runa = "script/thdcs/stage/stage03/runa_dj05spell.txt";
let stg3Spell06_runa = "script/thdcs/stage/stage03/runa_dj06spell.txt";
let stg3Spell07_runa = "script/thdcs/stage/stage03/runa_dj07spell.txt";

// Last Words
let lastSpell1 = "script/thdcs/stage/lastword/lastSpell1.txt";
let lastSpell2 = "script/thdcs/stage/lastword/lastSpell2.txt";
let lastSpell3 = "script/thdcs/stage/lastword/lastSpell3.txt";
let lastSpell4 = "script/thdcs/stage/lastword/lastSpell4.txt";
let lastSpell5 = "script/thdcs/stage/lastword/lastSpell5.txt";
let lastSpell6 = "script/thdcs/stage/lastword/lastSpell6.txt";
let lastSpell7 = "script/thdcs/stage/lastword/lastSpell7.txt";
let lastSpell8 = "script/thdcs/stage/lastword/lastSpell8.txt";
let lastSpell9 = "script/thdcs/stage/lastword/lastSpell9.txt";
let lastSpell10 = "script/thdcs/stage/lastword/lastSpell10.txt";
let lastSpell11 = "script/thdcs/stage/lastword/lastSpell11.txt";
let lastSpell12 = "script/thdcs/stage/lastword/lastSpell12.txt";
let lastSpell13 = "script/thdcs/stage/lastword/lastSpell13.txt";
let lastSpell14 = "script/thdcs/stage/lastword/lastSpell14.txt";
let lastSpell15 = "script/thdcs/stage/lastword/lastSpell15.txt";
let lastSpell16 = "script/thdcs/stage/lastword/lastSpell16.txt";
let lastSpell17 = "script/thdcs/stage/lastword/lastSpell17.txt";
let lastSpell18 = "script/thdcs/stage/lastword/lastSpell18.txt";
let lastSpell19 = "script/thdcs/stage/lastword/lastSpell19.txt";
let lastSpell20 = "script/thdcs/stage/lastword/lastSpell20.txt";

let stage1SpellCards = [
	[
	    ["1", stg1Mid02_norm],
	    ["4", stg1Spell01_norm],
	    ["7", stg1Spell02_norm],
	    ["10", stg1Spell03_norm],
	    ["13", stg1Spell04_norm]
    ],
	[
	    ["2", stg1Mid02_hard],
	    ["5", stg1Spell01_hard],
	    ["8", stg1Spell02_hard],
	    ["11", stg1Spell03_hard],
	    ["14", stg1Spell04_hard]
    ],
	[
	    ["3", stg1Mid02_runa],
	    ["6", stg1Spell01_runa],
	    ["9", stg1Spell02_runa],
	    ["12", stg1Spell03_runa],
	    ["15", stg1Spell04_runa]
    ]
];

let stage2SpellCards = [
	[
	    ["16", stg2Mid02_norm],
	    ["19", stg2Spell01_norm],
	    ["22", stg2Spell02_norm],
	    ["25", stg2Spell03_norm],
	    ["28", stg2Spell04_norm],
	    ["31", stg2Spell05_norm],
	    ["34", stg2Spell06_norm],
	    ["37", stg2Spell07_norm]
    ],
	[
	    ["17", stg2Mid02_hard],
	    ["20", stg2Spell01_hard],
	    ["23", stg2Spell02_hard],
	    ["26", stg2Spell03_hard],
	    ["29", stg2Spell04_hard],
	    ["32", stg2Spell05_hard],
	    ["35", stg2Spell06_hard],
	    ["38", stg2Spell07_hard]
    ],
	[
	    ["18", stg2Mid02_runa],
	    ["21", stg2Spell01_runa],
	    ["24", stg2Spell02_runa],
	    ["27", stg2Spell03_runa],
	    ["30", stg2Spell04_runa],
	    ["33", stg2Spell05_runa],
	    ["36", stg2Spell06_runa],
        ["39", stg2Spell07_runa]
    ]
];

let stage3SpellCards = [
	[
	    ["40", stg3Mid02A_norm],
	    ["43", stg3Mid02B_norm],
	    ["46", stg3Spell01_norm],
	    ["49", stg3Spell02_norm],
	    ["52", stg3Spell03_norm],
	    ["55", stg3Spell04_norm],
	    ["58", stg3Spell05_norm],
	    ["61", stg3Spell06_norm],
	    ["64", stg3Spell07_norm]
    ],
	[
	    ["41", stg3Mid02A_hard],
	    ["44", stg3Mid02B_hard],
	    ["47", stg3Spell01_hard],
	    ["50", stg3Spell02_hard],
	    ["53", stg3Spell03_hard],
	    ["56", stg3Spell04_hard],
	    ["59", stg3Spell05_hard],
	    ["62", stg3Spell06_hard],
	    ["65", stg3Spell07_hard]
    ],
	[
	    ["42", stg3Mid02A_runa],
	    ["45", stg3Mid02B_runa],
	    ["48", stg3Spell01_runa],
	    ["51", stg3Spell02_runa],
	    ["54", stg3Spell03_runa],
	    ["57", stg3Spell04_runa],
	    ["60", stg3Spell05_runa],
	    ["63", stg3Spell06_runa],
	    ["66", stg3Spell07_runa]
    ]
];

let lastSpellCards = [
    [
        ["67", lastSpell1],
        ["68", lastSpell2],
        ["69", lastSpell3],
        ["70", lastSpell4],
        ["71", lastSpell5],
        ["72", lastSpell6],
        ["73", lastSpell7],
        ["74", lastSpell8],
        ["75", lastSpell9],
        ["76", lastSpell10],
        ["77", lastSpell11],
        ["78", lastSpell12],
        ["79", lastSpell13],
        ["80", lastSpell14],
        ["81", lastSpell15],
        ["82", lastSpell16],
        ["83", lastSpell17],
        ["84", lastSpell18],
        ["85", lastSpell19],
        ["86", lastSpell20]
    ]
];

// Array up names
let allNameSpellCards = [
	[
	    "fifi01",
	    "pierre01",
	    "pierre02",
	    "pierre03",
	    "pierre04"
    ],
	[
	    "nue01",
	    "tenji01",
	    "tenji02",
	    "tenji03",
	    "tenji04",
	    "tenji05",
	    "tenji06",
	    "tenji07"
    ],
	[
	    "border01",
	    "magic01",
	    "dj01",
	    "dj02",
	    "dj03",
	    "dj04",
	    "dj05",
	    "dj06",
	    "dj07"
    ],
	[
	    "last1",
	    "last2",
	    "last3",
	    "last4",
	    "last5",
	    "last6",
	    "last7",
	    "last8",
	    "last9",
	    "last10",
	    "last11",
	    "last12",
	    "last13",
	    "last14",
	    "last15",
	    "last16",
	    "last17",
	    "last18",
	    "last19",
	    "last20"
    ]
];

// Stage 01 Spell card name + comment JP & EN
let allSpellCardInf01JP = [
	["J u~ǂȓv",""],
	["b\ uPEQER v",""],
	["sGbguFv",""],
	["lǔ΁v",""],
	["lu̕v",""]
];

let allSpellCardInf01EN = [
	["Peaceful day uInnocent Animalv","Why would you shoot an innocent animal?"],
	["Lesson u1-2-3 step by stepv","You won't immediately become as elegant as Pierre, however, eventually [r]you'll get there! Follow the basics!"],
	["Pirouette uEastern Tornadov","Pierre fiercely speeds up his pirouette, although doesn't seem to lose his sense of direction."],
	["Elegant being uSwan Lakev","According to a story: An evil sorcerer's curse turned the princess into a swan. [r]Doesn't Pierre look elegant?"],
	["Elegant being uMirror Dancev","Hina has showed up due to all the ruckus. You're in big trouble now! [r]Or in for a lot of missfortune`"]
];

// Stage 02 Spell card name + comment JP & EN
let allSpellCardInf02JP = [
	["|| uI.F.Gv",""],
	["tB[o[ ufBXR O[v",""],
	["o[e_[Z uōv",""],
	["tB[o[ uῂ̃[[XP[gv",""],
	["xXUuXs^X̑́v",""],
	["o[eZ uт炩v",""],
	[" u~[{[v",""],
	["uŏI肾I ddtv",""]
];

let allSpellCardInf02EN = [
	["Scary uI.F.Gv", "People think something unidentified is scary. What if you identify it [r]and it happens to be really scary? *shivers*"],
	["Fever uDisco Groovesv", "Before grabbing a drink, you need to earn respect by showing your moves on [r]the dance floor."],
	["Bartender skill uPunch Mixv", "A skilled bartender knows how to mix a strong drink in a flashy way. [r]Careful not to drop the shaker, people will laugh."],
	["Fever uBlazing Roller Skatesv", "Tenji signals the dance floor and wild things start to happen. [r]This used to be really popular back in the days, you know."],
	["96% uGreat Galaxy of Spiritusv", "Only Tenji can prepare the strongest drink on the house [r]*hic*, Asa*hic* can dri *hic* it with ease *hic*"],
	["Bartender skill uShow offv", "A beautiful world is being revealed. Come closer to see, but not too close!"],
	["Light Sign uGreat Mirror Ballv", "A brilliant mirror ball, sparkles and brightens the night. Tenji is using heavenly [r]skills and becomes immune to danmaku. Is this a form of Musou Tensei?"],
	["uThis is it! Electric duov", "Foo! Tenji and Iku have maximized their fever and they aren't shy to show it."]
];

// Stage 03 Spell card name + comment JP & EN
let allSpellCardInf03JP = [
	["zV uR̃`[gv", ""],
	["ā@uˋl`v", ""],
	["@unk̔qv", ""],
	["rj[˕Ԃ", ""],
	["@uTEh`FbNv", ""],
	["Zʁ@ut]āv", ""],
	["rj[@uv", ""],
	["ւƖ_@u[U@Bv", ""],
	["e̔ėx", ""]
];

let allSpellCardInf03EN = [
	["Musou Tensei uNatural cheatv", "Cunning pair, aren't they? Reimu doesn't seems to be caring much about [r]fair play at this point."],
	["Flight uAerial Doll Bombingv", "Marisa offers Alice the experience of extreme speeds. [r]Alice has to firmly hold her skirt down."],
	["Tuning uSeismic Beatv", "The booming bass vibrates through your body, distorting your senses."],
	["Bouncing Vinyl", "As a part of the show, he tosses his vinyl records into the audience. [r]Please return them afterwards as they are precious. (So why is he tossing them??)"],
	["Tuning uSound Checkv", "Shouldn't a DJ do this before he starts performing?"],
	["Skill uReverse timev", "You're forced to move around greatly and sometimes it feels as if you're [r]looking into the past."],
	["Vinyl uExplosive theatrev", "For some reason, the records aren't breaking when they explode? [r]Good, because some records are difficult to find."],
	["Pride and Honour uLaser Machinev", "DJ Akira is nearing the end of his performance, a final grand light show thrown [r]at our girls with tricky danmaku!"],
	["Dance of flying rabbits", "I think we've either become very tired or very drunk, as we're seeing little [r]earthling rabbits soaring through the sky on vinyl records. Ha ha h...huh!?"]
];

// Last word spell card name + comments JP & EN
let allSpellCardInfLastJP = [
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""],
    ["", ""]
];

let allSpellCardInfLastEN = [
    ["Last 1", "Reimu"],
    ["Last 2", "Yukari"],
    ["Last 3", "Marisa"],
    ["Last 4", "Alice"],
    ["Last 5", "Fifi-chan"],
    ["Last 6", "Pierre"],
    ["Last 7", "Hina"],
    ["Last 8", "UFO"],
    ["Last 9", "Kogasa"],
    ["Last 10", "Nue"],
    ["Last 11", "Tenji"],
    ["Last 12", "Iku"],
    ["Last 13", "Dj"],
    ["Last 14", "Tewi"],
    ["Last 15", "Border Team"],
    ["Last 16", "Magic Team"],
    ["Last 17", "Surprise Duo"],
    ["Last 18", "Ballerina Duo"],
    ["Last 19", "Fever Duo"],
    ["Last 20", "Trickster Duo"]
];