function EnemyFinalize
{
	SetShotDirectionType(ABSOLUTE);
	let score=GetCommonData("Score");
	let rate=GetCommonData("Rate");
	if(!BeVanished)
	{
		let mlt=floor(GetCommonData("ItemPoint")/20);
		if(rate==1){score+=(point*mlt);}
		else{score+=(point*mlt)*(rate*rate);}
		
		SetCommonData("Score",score);
		SetCommonData("EnemyDelFlg",1);
		if(pflg){SetCommonData("EnemyShotDelFlg",1);}
		
		
		loop(floor(point/10))
		{
			let rd=point/10;
			let x=GetX+rand(-10-rd,10+rd);
			let y=GetY+rand(-10-rd,10+rd);
			
			SetItem(x,y,ITEM_POINT);
		}
	}
}


function FinalizeShot(let type)
{
}