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

<!-- **************************************************************************** -->
<!-- *** TwinsMagic 発動時に呼ばれるアクション ********************************** -->
<!-- **************************************************************************** -->
<action label="bomb_top">
	<!-- *** 共通演出 *** -->
	<addRank><num>$__magic_rank_down</num></addRank>
	<targetRevenge label="bomb_full"></targetRevenge>		
	<targetRevenge label="bomb_str"></targetRevenge>	
	<targetRevenge label="bomb_object"></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-eq1</times><action>

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

			<actionRef label="mizuki_bomb_action"><p>$_player_cx</p><p>$_player_cy</p></actionRef>

			<createRef label="bomb_mizuki_full_solo"><param>5</param><param>210</param></createRef>
			<createRef label="bomb_narumi_full_solo"><param>3</param><param>170</param></createRef>
		</repeat>

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


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

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

			<actionRef label="narumi_bomb_action"></actionRef>

			<createRef label="bomb_mizuki_full_solo"><param>3</param><param>180</param></createRef>
			<createRef label="bomb_narumi_full_solo"><param>5</param><param>180</param></createRef>
		</repeat>

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


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

	<!-- *** 共通演出 *** -->
	<targetRevenge label="bomb_full"></targetRevenge>		
	<targetRevenge label="bomb_str"></targetRevenge>		
	<targetRevenge label="bomb_object"></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-eq1</times><action>

		<!-- キャラ切り替え可能な場合 -->
		<repeat><times>$_playerswitchable-eq1</times>
			<actionRef label="mizuki_bomb_action"><p>$_player_cx</p><p>$_player_cy</p></actionRef>
			<createRef label="bomb_mizuki_full_solo"><param>5</param><param>210</param></createRef>
			<createRef label="bomb_narumi_full_solo"><param>3</param><param>170</param></createRef>
		</repeat>

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


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

		<!-- キャラ切り替え可能な場合 -->
		<repeat><times>$_playerswitchable-eq1</times>
			<actionRef label="narumi_bomb_action"></actionRef>
			<createRef label="bomb_mizuki_full_solo"><param>3</param><param>180</param></createRef>
			<createRef label="bomb_narumi_full_solo"><param>5</param><param>180</param></createRef>
		</repeat>

		<!-- キャラ切り替え不可能な場合 -->
		<repeat><times>$_playerswitchable-eq0</times>
			<createRef label="bomb_narumi_full_solo"><param>5</param><param>180</param></createRef>
		</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>255</red><green>25</green><blue>25</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_mizuki_full_solo">
	<direction type="absolute">-90</direction>
	<speed type="absolute">0.8</speed>
	<cx>320-50</cx><cy>300</cy>
	<child>1</child>

	<object label="bomb_full">
		<img type="normal">
			<file type="dds">mizuki_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>30</term>
			</changeColor>
			<wait>25</wait>

			<changeSpeed>
				<speed type="absolute">0.3</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_narumi_full_solo">
	<direction type="absolute">90</direction>
	<speed type="absolute">0.8</speed>
	<cx>320+50</cx><cy>300</cy>
	<child>1</child>

	<object label="bomb_full">
		<img type="normal">
			<file type="dds">narumi_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>30</term>
			</changeColor>
			<wait>25</wait>
			<changeSpeed>
				<speed type="absolute">0.3</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="mizuki_bomb_action">
	<createRef label="bomb_object_miz"><p>$1</p><p>$2</p></createRef>
</action>

<create label="bomb_object_miz">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_player_cx</cx><cy>$_player_cy</cy>
	<object>
		<img type="normal">
			<file type="dds">magic_cs_r</file>
			<left>0</left><top>0</top><right>128</right><bottom>128</bottom>
			<width>128</width><height>128</height>
			<alpha>10</alpha><red>255</red><green>255</green><blue>255</blue>
		</img>
		<action>
			<changeImgSize>
				<width>32</width><height>32</height><term>30</term>
			</changeImgSize>
			<changeColor>
				<alpha>130</alpha><red>255</red><green>255</green><blue>255</blue><term>30</term>
			</changeColor>
			<rotateImg><direction>1</direction><term>-1</term></rotateImg>
			<wait>30</wait>
			<eval name="wait_time">41</eval>
			<createRef label="bomb_create_1"><p>6</p><p>-80</p><p>$1</p><p>$2</p><p>$wait_time</p></createRef>
			<repeat><times>3</times>
				<createRef label="bomb_create_1_ss"><p>-1.5</p><p>0</p><p>$1</p><p>$2</p><p>$wait_time</p></createRef>
			</repeat>
			<repeat><times>40</times>
			<evaladd name="wait_time">-1</evaladd>
			<wait>1</wait>
			<createRef label="bomb_create_1_s"><p>6</p><p>4</p><p>$1</p><p>$2</p><p>$wait_time</p></createRef>
			<repeat><times>3</times>
				<createRef label="bomb_create_1_ss"><p>-1.5</p><p>0</p><p>$1</p><p>$2</p><p>$wait_time</p></createRef>
			</repeat>
			</repeat>
			<vanish/>
		</action>
	</object>
</create>

<create label="bomb_create_1">
	<speed>$1</speed>
	<direction type="absolute">$2</direction>
	<cx>$3</cx><cy>$4-12</cy>
	<vital>13-$_weapontype</vital><flag>1</flag>
	<shotRef label="bomb_bullet_1"><p>$5</p></shotRef>
</create>
<create label="bomb_create_1_s">
	<speed>$1</speed>
	<direction type="sequence">$2</direction>
	<cx>$3</cx><cy>$4-12</cy>
	<vital>13-$_weapontype</vital><flag>1</flag>
	<shotRef label="bomb_bullet_1"><p>$5</p></shotRef>
</create>
<create label="bomb_create_1_ss">
	<speed type="sequence">$1</speed>
	<direction type="sequence">$2</direction>
	<cx>$3</cx><cy>$4-12</cy>
	<vital>13-$_weapontype</vital><flag>1</flag>
	<shotRef label="bomb_bullet_1"><p>$5</p></shotRef>
</create>


<shot label="bomb_bullet_1">
	<revengeRef label="shot_revenge_2"></revengeRef>
	<collision type="rect"><left>-8</left><top>-8</top><right>8</right><bottom>8</bottom></collision>	
	<img type="add">
		<file type="dds">fireshot</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>24</width><height>56</height>
		<alpha>100</alpha><red>255-$__shot_color*75</red><green>155-$__shot_color*95</green><blue>155+$__shot_color*25</blue>
	</img>
	<imgDirection type="sync">180</imgDirection>
	<action>
		<changeSpeed>
			<speed type="absolute">0</speed><term>35</term>
		</changeSpeed>
		<wait>5+$1</wait>
		<changeSpeed>
			<speed type="absolute">5</speed><term>30</term>
		</changeSpeed>
		
	</action>
</shot>

<!-- *** 成実ボム（瑞希支援） ******************************************************** -->
<action label="narumi_bomb_action">
	<createRef label="bomb_object"/>
</action>

<create label="bomb_object">
	<speed>0</speed>
	<direction type="absolute">0</direction>
	<cx>$_player_cx</cx><cy>480-16</cy>
	<object>
		<img type="normal">
			<file type="dds">magic_cs_r</file>
			<left>0</left><top>0</top><right>128</right><bottom>128</bottom>
			<width>128</width><height>128</height>
			<alpha>10</alpha><red>255</red><green>255</green><blue>255</blue>
		</img>
		<action>
			<changeImgSize>
				<width>32</width><height>32</height><term>30</term>
			</changeImgSize>
			<changeColor>
				<alpha>130</alpha><red>255</red><green>255</green><blue>255</blue><term>30</term>
			</changeColor>
			<rotateImg><direction>1</direction><term>-1</term></rotateImg>
			<wait>30</wait>

			<repeat><times>35-$_weapontype*5</times>
				<createRef label="bomb_create_2"><p>0</p><p>-8</p></createRef>
				<w>3</w>
				<createRef label="bomb_create_2"><p>9</p><p>0</p></createRef>
				<createRef label="bomb_create_2"><p>-9</p><p>0</p></createRef>
				<w>3</w>
			</repeat>
			<vanish/>
		</action>
	</object>

</create>


<create label="bomb_create_2">
	<speed>9</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx+$1</cx><cy>$_self_cy+$2</cy>
	<vital>34-$_weapontype*3</vital><flag>1</flag>
	<shotRef label="bomb_bullet_2"></shotRef>
</create>

<shot label="bomb_bullet_2">
	<revengeRef label="bomb_bul_revenge"></revengeRef>
	<collision type="rect"><left>-8</left><top>-28</top><right>8</right><bottom>28</bottom></collision>	
	<img type="normal">
		<file type="dds">fireshot</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>48</width><height>56</height>
		<alpha>100</alpha><red>155+$__shot_color*15</red><green>155-$__shot_color*125</green><blue>155+$__shot_color*15</blue>
	</img>
	<setDrawLevel><num>9</num></setDrawLevel>
	<imgDirection type="sync">180</imgDirection>
	<create>
		<speed>$_self_speed</speed><direction type="absolute">$_self_direction</direction>
		<cx>$_self_cx</cx><cy>$_self_cy-2</cy>
		<child>1</child>
		<objectRef label="object_bomb_shadow_bullet_1"></objectRef>
	</create>
</shot>
<object label="object_bomb_shadow_bullet_1">
	<img type="add">
		<file type="dds">fireshot</file>
		<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
		<width>56</width><height>56</height>
		<alpha>60</alpha><red>255-$__shot_color*65</red><green>64</green><blue>32</blue>
	</img>
	<setDrawLevel><num>12</num></setDrawLevel>
	<imgDirection type="sync">180</imgDirection>
</object>


<revenge label="bomb_bul_revenge">
	<soundtrack><file type="ogg">shot_break</file></soundtrack>	

	<createRef label="bomb_bul_break"></createRef>

	<vanish></vanish>
</revenge>

<create label="bomb_bul_break">
	<speed>1</speed>
	<direction type="relative">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy-8</cy>
	<vital>0.4</vital>
	<shot>
		<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>16</radius></collision>	
		<img type="add">
			<file type="dds">fireshot</file>
			<left>0</left><top>0</top><right>32</right><bottom>32</bottom>
			<width>24</width><height>56</height>
			<alpha>200</alpha><red>255</red><green>255-$__shot_color*125</green><blue>255</blue>
		</img>
		<setBreakable><num>1</num></setBreakable>

		<changeColor>
			<alpha>30</alpha><red>255</red><green>5</green><blue>10</blue><term>25</term>	
		</changeColor>
		<changeImgSize>
			<width>32</width><height>32</height><term>25</term>	
		</changeImgSize>

		<wait>5</wait>
		<changeSpeed>
			<speed type="absolute">0.2</speed><term>25</term>
		</changeSpeed>
		<wait>20</wait>
		<vanish></vanish>
	</shot>
</create>


<!-- *** ボムの例 ******************************************************** -->
<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>