<?xml version="1.0" encoding="shift-jis"?>
<exbulletml>

<!-- **************************************************************************** -->
<!-- *** TwinsMagic 発動時に呼ばれるアクション ********************************** -->
<!-- **************************************************************************** -->
<action label="bomb_top">
	<addRank><num>$__magic_rank_down</num></addRank>

	<targetRevenge label="bomb_bullet_1"/>
	<targetRevenge label="bomb_bullet_2"/>
	<!-- *** 共通演出 *** -->

	<targetRevenge label="bomb_full"></targetRevenge>		
	<targetRevenge label="bomb_str"></targetRevenge>		
	<createRef label="magic_bg_create"/>
	<soundtrack><file type="ogg">ttc1</file></soundtrack>	
	<wait>1</wait>
	<createRef label="twins_tension_str"/>
	<createRef label="bomb_circle"/>

	<!-- *** キャラ０の演出 *** -->
	<repeat><times>$_player_type-eq0</times><action>

		<!-- *** キャラ切り替え可能な場合 *** -->
		<repeat><times>$_playerswitchable-eq1</times>

			<actionRef label="asa_bomb_action"/>

			<createRef label="bomb_asa_full_solo"><param>5</param><param>230</param><param>0</param></createRef>
			<createRef label="bomb_shizuka_full_solo"><param>3</param><param>170</param><param>180</param></createRef>
		</repeat>

		<!-- *** キャラ切り替え不可能な場合 *** -->
		<repeat><times>$_playerswitchable-eq0</times>
			<createRef label="bomb_asa_full_solo"><param>5</param><param>230</param><param>0</param></createRef>
		</repeat>
	</action></repeat>


	<!-- *** キャラ１の演出 *** -->
	<repeat><times>$_player_type-eq1</times><action>

		<!-- *** キャラ切り替え可能な場合 *** -->
		<repeat><times>$_playerswitchable-eq1</times>

			<actionRef label="shizuka_bomb_action"/>

			<createRef label="bomb_asa_full_solo"><param>3</param><param>170</param><param>180</param></createRef>
			<createRef label="bomb_shizuka_full_solo"><param>5</param><param>210</param><param>0</param></createRef>
		</repeat>

		<!-- *** キャラ切り替え不可能な場合 *** -->
		<repeat><times>$_playerswitchable-eq0</times>
			<createRef label="bomb_shizuka_full_solo"><param>5</param><param>210</param><param>0</param></createRef>
		</repeat>
	</action></repeat>
</action>


<!-- **************************************************************************** -->
<!-- *** AutoMagic 発動時に呼ばれるアクション ********************************** -->
<!-- **************************************************************************** -->
<action label="bomb2_top">

	<targetRevenge label="bomb_bullet_1"/>
	<targetRevenge label="bomb_bullet_2"/>
	<!-- *** 共通演出 *** -->

	<targetRevenge label="bomb_full"></targetRevenge>		
	<targetRevenge label="bomb_str"></targetRevenge>		
	<createRef label="magic_bg_create"/>
	<soundtrack><file type="ogg">ttc1</file></soundtrack>	
	<wait>1</wait>
	<createRef label="auto_tension_str"/>
	<createRef label="bomb_circle"/>


	<!-- *** キャラ０の演出 *** -->
	<repeat><times>$_player_type-eq0</times><action>

		<!-- キャラ切り替え可能な場合 -->
		<repeat><times>$_playerswitchable-eq1</times>
			<actionRef label="asa_bomb_action"/>
		</repeat>

		<!-- キャラ切り替え不可能な場合 -->
		<repeat><times>$_playerswitchable-eq0</times>
		</repeat>
	</action></repeat>


	<!-- *** キャラ１の演出 *** -->
	<repeat><times>$_player_type-eq1</times><action>

		<!-- キャラ切り替え可能な場合 -->
		<repeat><times>$_playerswitchable-eq1</times>
			<actionRef label="shizuka_bomb_action"/>
		</repeat>

		<!-- キャラ切り替え不可能な場合 -->
		<repeat><times>$_playerswitchable-eq0</times>
		</repeat>
	</action></repeat>
</action>

<!-- *** Circle ******************************************************** -->
<create label="bomb_circle">
	<direction type="absolute">0</direction>
	<speed type="absolute">0</speed>
	<cx>$_player_cx</cx><cy>$_player_cy+6</cy>
	<child>1</child>

	<object label="bomb_full">
		<img type="add">
			<file type="dds">explode12</file>
			<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
			<width>100</width><height>100</height>
			<alpha>60</alpha><red>128</red><green>128</green><blue>128</blue>
		</img>
		<setDrawLevel><num>9</num></setDrawLevel>

		<rotateImg><direction>-8</direction><term>-1</term></rotateImg>
		<definedAction type="synctoplayerx"></definedAction>
		<definedAction type="synctoplayery"></definedAction>

		<changeImgSize>
			<width>5</width><height>5</height><term>300*$_magic_rate/100</term>
		</changeImgSize>
		<wait>300*$_magic_rate/100</wait>
		<vanish/>
	</object>

</create>

<!-- *** 朝朔ボム絵 ******************************************************** -->
<!-- 全身絵 -->
<create label="bomb_asa_full_solo">
	<direction type="absolute">$3</direction>
	<speed type="absolute">0.4</speed>
	<cx>320-100</cx><cy>300</cy>
	<child>1</child>

	<object label="bomb_full">
		<img type="normal">
			<file type="dds">asa_bom</file>
			<left>0</left><top>0</top><right>512</right><bottom>512</bottom>
			<width>320</width><height>320</height>
			<alpha>16</alpha><red>255</red><green>255</green><blue>255</blue>
		</img>
		<setDrawLevel><num>$1</num></setDrawLevel>

		<action>
			<changeColor>
				<alpha>$2</alpha><red>255</red><green>255</green><blue>255</blue><term>10</term>
			</changeColor>
			<wait>20</wait>

			<changeColor>
				<alpha>$2/2</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
			</changeColor>

			<wait>25</wait>

			<changeSpeed>
				<speed type="absolute">0.1</speed><term>10</term>
			</changeSpeed>
			<wait>50</wait>
			<changeColor>
				<alpha>$2/4</alpha><red>255</red><green>255</green><blue>255</blue><term>30</term>
			</changeColor>
			<changeSpeed>
				<speed type="absolute">3.2</speed><term>20</term>
			</changeSpeed>
			<wait>60</wait>
			<changeColor>
				<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
			</changeColor>
			<wait>60</wait>
			<vanish/>	
		</action>
	</object>
</create>

<!-- *** 朝朔ボム絵 ******************************************************** -->
<!-- 全身絵 -->
<create label="bomb_shizuka_full_solo">
	<direction type="absolute">$3</direction>
	<speed type="absolute">0.4</speed>
	<cx>320+100</cx><cy>300</cy>
	<child>1</child>

	<object label="bomb_full">
		<img type="normal">
			<file type="dds">shizuka_bom</file>
			<left>0</left><top>0</top><right>512</right><bottom>512</bottom>
			<width>320</width><height>320</height>
			<alpha>16</alpha><red>255</red><green>255</green><blue>255</blue>
		</img>
		<setDrawLevel><num>$1</num></setDrawLevel>

		<action>
			<changeColor>
				<alpha>$2</alpha><red>255</red><green>255</green><blue>255</blue><term>10</term>
			</changeColor>
			<wait>20</wait>

			<changeColor>
				<alpha>$2/2</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
			</changeColor>

			<wait>25</wait>

			<changeSpeed>
				<speed type="absolute">0.1</speed><term>10</term>
			</changeSpeed>
			<wait>50</wait>
			<changeColor>
				<alpha>$2/4</alpha><red>255</red><green>255</green><blue>255</blue><term>30</term>
			</changeColor>
			<changeSpeed>
				<speed type="absolute">3.2</speed><term>20</term>
			</changeSpeed>
			<wait>60</wait>
			<changeColor>
				<alpha>0</alpha><red>255</red><green>255</green><blue>255</blue><term>60</term>
			</changeColor>
			<wait>60</wait>
			<vanish/>	
		</action>
	</object>
</create>


<!-- *** 朝朔ボム（シズカ支援） ******************************************************** -->
<action label="asa_bomb_action">
	<createRef label="bomb_create_1"><p>0</p></createRef>
	<createRef label="bomb_create_1"><p>72</p></createRef>
	<createRef label="bomb_create_1"><p>72*2</p></createRef>
	<createRef label="bomb_create_1"><p>72*3</p></createRef>
	<createRef label="bomb_create_1"><p>72*4</p></createRef>

</action>

<create label="bomb_create_1">
	<speed>1</speed>
	<direction type="absolute">$1</direction>
	<cx>$_player_cx</cx><cy>$_player_cy</cy>
	<vital>4.5-$_weapontype*0.5</vital><flag>1</flag>
	<shotRef label="bomb_bullet_1"></shotRef>
</create>

<shot label="bomb_bullet_1">
	<revengeRef label="bomb_revenge_1"></revengeRef>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>30</radius></collision>	
	<img type="normal">
		<file type="dds">siz_bomb128</file>
		<left>0</left><top>0</top><right>128</right><bottom>128</bottom>
		<width>56</width><height>56</height>
		<alpha>200</alpha><red>200</red><green>200</green><blue>200</blue>
	</img>
	<setBreakable><num>1</num></setBreakable>
	<rotateImg><direction>0.3</direction><term>-1</term></rotateImg>
	<action>
		<createRef label="bomb_create_image_1"></createRef>
		<changeSpeed>
			<speed type="absolute">0.5</speed><term>120</term>
		</changeSpeed>
		<wait>80</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>100</term>
		</changeSpeed>
		<wait>100</wait>
		<changeColor>
			<alpha>30</alpha><red>150</red><green>150</green><blue>150</blue><term>60</term>
		</changeColor>
		<wait>60</wait>
		<vanish/>
	</action>
</shot>

<create label="bomb_create_image_1">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_player_cx</cx><cy>$_player_cy</cy>
	<vital>2.2-$_weapontype*0.2</vital><flag>1</flag>
	<shotRef label="bomb_bullet_image_1"></shotRef>
</create>

<shot label="bomb_bullet_image_1">
	<revengeRef label="bomb_revenge_1"></revengeRef>
	<damageRef label="bomb_damage_1"></damageRef>
	<child>1</child>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>30</radius></collision>	
	<img type="normal">
		<file type="dds">asa_bomb128</file>
		<left>0</left><top>0</top><right>128</right><bottom>128</bottom>
		<width>56</width><height>56</height>
		<alpha>150</alpha><red>200</red><green>200</green><blue>200</blue>
	</img>
	<setBreakable><num>1</num></setBreakable>
	<definedAction type="synctoparentx"></definedAction>
	<definedAction type="synctoparenty"></definedAction>
	<rotateImg><direction>0.3</direction><term>-1</term></rotateImg>

	<action>
		<w>2</w>
		<changeImgSize>
			<width>170</width><height>170</height><term>120</term>				
		</changeImgSize>

		<changeColor>
			<alpha>15</alpha><red>150</red><green>150</green><blue>150</blue><term>240</term>
		</changeColor>

		<eval name="rad">0</eval>
		<repeat><times>60</times>
			<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>30+$rad</radius></collision>	
			<evaladd name="rad">1</evaladd>
			<w>2</w>
		</repeat>
		<w>118</w>
		<vanish/>
	</action>	
</shot>

<revenge label="bomb_revenge_1">
	<changeSpeed>
		<speed>0</speed><term>5</term>
	</changeSpeed>
	<changeColor>
		<alpha>15</alpha><red>190</red><green>190</green><blue>190</blue><term>30</term>
	</changeColor>
	<wait>30</wait>
	<vanish/>
</revenge>

<damage label="bomb_damage_1">

	<soundtrack><file type="ogg">laser_effect</file></soundtrack>
	
</damage>
<!--
<action label="asa_bomb_action">
	<createRef label="bomb_create_ob1"><p>10</p></createRef>
	<createRef label="bomb_create_ob1"><p>-10</p></createRef>
</action>

<create label="bomb_create_ob1">
	<speed>1</speed>
	<direction type="absolute">$1</direction>
	<cx>$_player_cx</cx><cy>$_player_cy</cy>
	<object label="bomb_object_1">
	<img type="add">
		<file type="dds">circlewhite</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>32</width><height>32</height>
		<alpha>140</alpha><red>120</red><green>80</green><blue>185</blue>
	</img>
	<action>
		<wait>2+($1/10)</wait>
		<createRef label="bomb_create_1"><p>0</p><p>0+22*($1/10)</p></createRef>
		<createRef label="bomb_create_1s"><p>1</p><p>90</p></createRef>
		<createRef label="bomb_create_1s"><p>2</p><p>90</p></createRef>
		<createRef label="bomb_create_1s"><p>3</p><p>90</p></createRef>
		<wait>7</wait>
		<repeat><times>24</times>
			<createRef label="bomb_create_1s"><p>0</p><p>97</p></createRef>
			<createRef label="bomb_create_1s"><p>1</p><p>90</p></createRef>
			<createRef label="bomb_create_1s"><p>2</p><p>90</p></createRef>
			<createRef label="bomb_create_1s"><p>3</p><p>90</p></createRef>
			<wait>7</wait>
		</repeat>
		<changeColor>
			<alpha>10</alpha><red>120</red><green>80</green><blue>185</blue><term>30</term>
		</changeColor>
		<wait>30</wait>
		<vanish/>
	</action>
	</object>
</create>

<create label="bomb_create_1">
	<speed>8</speed><direction type="absolute">$2</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<shotRef label="bomb_bullet_2_1"><p>$1</p></shotRef>
</create>
<create label="bomb_create_1s">
	<speed>8</speed><direction type="sequence">$2</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>1</vital>
	<shotRef label="bomb_bullet_2_1"><p>$1</p></shotRef>
</create>


<shot label="bomb_bullet_2_1">
	<revengeRef label="shot_revenge_2"></revengeRef>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>9</radius></collision>	
	<img type="add">
		<file type="dds">circlewhite</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>16</width><height>16</height>
		<alpha>120</alpha><red>100</red><green>100</green><blue>255</blue>
	</img>
	<wait>8</wait>
	<autoTarget><num>$1</num></autoTarget>
</shot>
-->
<!-- *** シズカボム（朝朔支援） ******************************************************** -->
<action label="shizuka_bomb_action">
	<createRef label="bomb_create_2"></createRef>
</action>

<create label="bomb_create_2">
	<speed>3</speed>
	<direction type="absolute">0</direction>
	<cx>$_player_cx</cx><cy>$_player_cy</cy>
	<vital>13-$_weapontype</vital><flag>1</flag>
	<shotRef label="bomb_bullet_2"></shotRef>
</create>

<shot label="bomb_bullet_2">
	<revengeRef label="bomb_revenge_2"></revengeRef>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>70</radius></collision>	
	<img type="normal">
		<file type="dds">asa_bomb128</file>
		<left>0</left><top>0</top><right>128</right><bottom>128</bottom>
		<width>100</width><height>100</height>
		<alpha>200</alpha><red>250</red><green>250</green><blue>255</blue>
	</img>
	<setBreakable><num>1</num></setBreakable>
	<rotateImg><direction>0.3</direction><term>-1</term></rotateImg>
	<action>
		<createRef label="bomb_create_image_2"></createRef>
		<changeSpeed>
			<speed type="absolute">1.5</speed><term>80</term>
		</changeSpeed>
		<wait>80</wait>
		<changeSpeed>
			<speed type="absolute">0</speed><term>100</term>
		</changeSpeed>
		<wait>100</wait>
		<changeColor>
			<alpha>30</alpha><red>250</red><green>250</green><blue>255</blue><term>60</term>
		</changeColor>
		<wait>60</wait>
		<vanish/>
	</action>
</shot>

<create label="bomb_create_image_2">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_player_cx</cx><cy>$_player_cy</cy>
	<vital>6.5-$_weapontype*0.5</vital><flag>1</flag>
	<shotRef label="bomb_bullet_image_2"></shotRef>
</create>

<shot label="bomb_bullet_image_2">
	<revengeRef label="bomb_revenge_2"></revengeRef>
	<damageRef label="bomb_damage_2"></damageRef>
	<child>1</child>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>70</radius></collision>	
	<img type="normal">
		<file type="dds">asa_bomb128</file>
		<left>0</left><top>0</top><right>128</right><bottom>128</bottom>
		<width>128</width><height>128</height>
		<alpha>90</alpha><red>250</red><green>250</green><blue>255</blue>
	</img>
	<setBreakable><num>1</num></setBreakable>
	<definedAction type="synctoparenty"></definedAction>
	<rotateImg><direction>0.3</direction><term>-1</term></rotateImg>

	<action>
		<w>2</w>
		<changeImgSize>
			<width>256</width><height>256</height><term>120</term>				
		</changeImgSize>

		<changeColor>
			<alpha>5</alpha><red>250</red><green>250</green><blue>255</blue><term>240</term>
		</changeColor>

		<eval name="rad">0</eval>
		<repeat><times>60</times>
			<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>70+$rad</radius></collision>	
			<evaladd name="rad">1</evaladd>
			<w>2</w>
		</repeat>
		<w>118</w>
		<vanish/>
	</action>	
</shot>




<revenge label="bomb_revenge_2">
	<changeSpeed>
		<speed>0</speed><term>5</term>
	</changeSpeed>
	<changeColor>
		<alpha>15</alpha><red>190</red><green>190</green><blue>190</blue><term>30</term>
	</changeColor>
	<wait>30</wait>
	<vanish/>
</revenge>

<damage label="bomb_damage_2">

	<soundtrack><file type="ogg">laser_effect</file></soundtrack>
	
</damage>


<!-- *** ボムの例 ******************************************************** -->
<bomb label="bomb_bomb_1">
	<img type="normal">
		<file type="dds">rectwhite</file>
		<left>0</left><top>0</top><right>16</right><bottom>16</bottom>
		<width>80</width><height>16</height>
		<alpha>128</alpha><red>164</red><green>128</green><blue>255</blue>
	</img>
	<collision type="rect">
		<left>-40</left><top>-8</top><right>40</right><bottom>8</bottom>
	</collision>
</bomb>

<!-- *** プレイヤーミス時に発動されるボム ******************************** -->
<bomb label="bomb_clearbomb">
	<collision type="rect">
		<left>-212</left><top>-242</top><right>212</right><bottom>242</bottom>
	</collision>
	<wait>1</wait>
	<vanish></vanish>
</bomb>

</exbulletml>