script_enemy_main {
	#include_function ".\includeKoishi.txt"
	task TMain {
		SetDamageRate(175, 75);
		SetMovePosition03(GetCenterX-50, GetCenterY-75, 10, 9);
		SetInvincibility(120); wait(60);
		TCharge(GetCenterX-50, GetCenterY-75);
		PlaySE2("charge");
		wait(60);
		attack1;
	}
	task attack1 {
		let a = -50;
		loop {
			let n = [7,9,11,13][GetDifficulty];
			ascent(i in 0..7) {
				PlaySE2("lazer00");
				ascent(j in 0..n) {
					CreateLaser01(GetX, GetY, 3+i/5, a+i*1+j*360/n, 50+i*10, 15, 143, 10);
				}
				wait(3);
			}
			wait(8);
			a+=17; a%=360;
		}
	}
}