//---------------------------------------------------------------------------------------------
//
//	Chromatic Wing Mod
//	
//	Boss variable setting
//
//---------------------------------------------------------------------------------------------

	let BossName = "Army Eye";

	let BossSprite = GetCurrentScriptDirectory~".\..\img\boss\ArmyEye_all.png";
// Total animation frame for this boss, size in X and Y
let BSA_total = 3;
let BSR_sizex = 64;
let BSR_sizey = 64;

	let BossCutin = GetCurrentScriptDirectory~".\..\img\boss\ArmyEye_Cutin.png";
let BCR_x1 = 1;
let BCR_x2 = 250;
let BCR_y1 = 1;
let BCR_y2 = 512;


// Frame factor for each motion
	let ng_mframefac = 15;


// Some of BG overhere

	let BossBG1 = GetCurrentScriptDirectory~".\..\img\bg\stage2_midbossbg01.png";

let BossBGangle = 0;
let BossBGfade = 0;
let BossBGscroll = 0;



//---------------------------------------------------------------------------------------------
//	
//	Boss basic variable declare
//	For SFX, keep in mind that  this just mark them as not load, you need to 
//	load them in script file by set to "t"
//	
//---------------------------------------------------------------------------------------------


//----- Boss Relate
	let ng_sframe = 0;			// Boss Start attack frame counter
	let ng_start = 0;			// Boss Start attack trigger
	let ng_bossmframe = 0;		// Boss Movement frame counter
	let ng_mframe = 0;		// Boss Animation Frame

	let ng_spellcard = 0;		// Is boss declare spellcard?
	let ng_hitcountflag = 0;		// Set Hit Count flag

	let ng_timeframe = 0;		// Timer frame counter
	let ng_timeset = 0;			// Set boss attack time in second

	let ng_spellbonus = 0;		// Set spell bonus counter

//----- SFX

	// Shot
	let sfx01 = "f";
	let sfx02 = "f";
	let sfx03 = "f";

	// Laser
	let sfx04 = "f";
	let sfx05 = "f";
	let sfx06 = "f";

	// Misc
	let sfx11 = "f";
	let sfx12 = "f";
	let sfx13 = "f";
	let sfx14 = "f";
	let sfx15 = "f";
	let sfx16 = "f";
	let sfx17 = "f";
	let sfx18 = "f";
	let sfx19 = "f";
	let sfx20 = "f";

	let sfx21 = "f";
	let sfx22 = "f";
	let sfx23 = "f";
	let sfx24 = "f";
	let sfx25 = "f";
	let sfx26 = "f";
	let sfx27 = "f";
	let sfx28 = "f";
	let sfx29 = "f";
	let sfx30 = "f";

	let sfx41 = "f";
	let sfx42 = "f";
	let sfx43 = "f";
	let sfx44 = "f";
	let sfx45 = "f";
	let sfx46 = "f";
	let sfx47 = "f";
	let sfx48 = "f";
	let sfx49 = "f";

	// Timer
	let sfx50 = "f";
	let sfx51 = "f";
	let sfx52 = "f";



//----- Sub Function

	sub SFU_GloBossCounter
	{

	//Add fever score when hit boss every 10 frame - reduce greatly adventage of rapid bullet cha-type
	if ((GetHitCount >= 1) && (ng_hitcountflag != 1))
		{
		ng_hitcountflag = 1;
		SetCommonData("CD_Feverscore", GetCommonDataDefault("CD_Feverscore",0) + 1000);
		}
	if (ng_timeframe%10 == 0)
		{
		ng_hitcountflag = 0;
		}

	if (ng_spellcard == 0)	{	SetDamageRate(70+(6*GetCommonDataDefault("CD_PowerUse",0)),14+(1.2*GetCommonDataDefault("CD_PowerUse",0)));	}
	if (ng_spellcard == 1)	{	SetDamageRate(7+(0.6*GetCommonDataDefault("CD_PowerUse",0)),1.4+(0.12*GetCommonDataDefault("CD_PowerUse",0)));	}


	ng_timeframe++;
	ng_sframe++;
	ng_bossmframe++;
	ng_mframe++;

	ng_spellbonus = GetSpellCardBonusScore;
	}
