<?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_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="ririka_bomb_action"/>

			<createRef label="bomb_ririka_full_solo"><param>5</param><param>210</param></createRef>
			<createRef label="bomb_rurika_full_solo"><param>3</param><param>170</param></createRef>
		</repeat>

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


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

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

			<actionRef label="rurika_bomb_action"/>

			<createRef label="bomb_ririka_full_solo"><param>3</param><param>170</param></createRef>
			<createRef label="bomb_rurika_full_solo"><param>5</param><param>210</param></createRef>
		</repeat>

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


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

	<targetRevenge label="bomb_bullet_1"/>

	<!-- *** 共通演出 *** -->
	<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="ririka_bomb_action"/>
			<createRef label="bomb_ririka_full_solo"><param>5</param><param>210</param></createRef>
			<createRef label="bomb_rurika_full_solo"><param>3</param><param>170</param></createRef>
		</repeat>

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


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

		<!-- キャラ切り替え可能な場合 -->
		<repeat><times>$_playerswitchable-eq1</times>
			<actionRef label="rurika_bomb_action"/>
			<createRef label="bomb_ririka_full_solo"><param>3</param><param>170</param></createRef>
			<createRef label="bomb_rurika_full_solo"><param>5</param><param>210</param></createRef>
		</repeat>

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

	<object label="bomb_full">
		<img type="normal">
			<file type="dds">ririka_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>
		<rotateImg><direction>0.4</direction><term>-1</term></rotateImg>

		<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.2</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_rurika_full_solo">
	<direction type="absolute">90</direction>
	<speed type="absolute">0.4</speed>
	<cx>320+50</cx><cy>240</cy>
	<child>1</child>

	<object label="bomb_full">
		<img type="normal">
			<file type="dds">rurika_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>
		<rotateImg><direction>-0.4</direction><term>-1</term></rotateImg>

		<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.2</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="ririka_bomb_action">
	<eval name="bomb_dir">(1-2*($_player_cx-gt240))*(45+($_player_cy-lt100)*90)</eval>



	<createRef label="bomb_create_1"><p>$bomb_dir+5</p></createRef>
	<createRef label="bomb_create_1"><p>$bomb_dir-5</p></createRef>
	<createRef label="bomb_create_1"><p>$bomb_dir+25</p></createRef>
	<createRef label="bomb_create_1"><p>$bomb_dir-25</p></createRef>

</action>

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

<shot label="bomb_bullet_1">
	<revengeRef label="bomb_revenge_1"></revengeRef>
	<damageRef label="bomb_damage_1"></damageRef>
	<collision type="circle"><cx>-1</cx><cy>-1</cy><radius>40</radius></collision>	
	<repeat><times>$__shot_color-eq0</times>
		<imgRef l="rur64"/>
	</repeat>
	<repeat><times>1-($__shot_color-eq0)</times>
		<imgRef l="rur64b"/>
	</repeat>
	<setDrawLevel><num>8</num></setDrawLevel>
	<setReflect>
		<flag>15</flag><num>6</num>
	</setReflect>
	<setBreakable><num>1</num></setBreakable>
	<rotateImg><direction>3</direction><term>-1</term></rotateImg>
</shot>


<img l="rur64" type="normal">
	<file type="dds">rur_bul64</file>
	<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
	<width>64</width><height>64</height>
	<alpha>150</alpha><red>250</red><green>250</green><blue>250</blue>
</img>
<img l="rur64b" type="normal">
	<file type="dds">rur_bul64b</file>
	<left>0</left><top>0</top><right>64</right><bottom>64</bottom>
	<width>64</width><height>64</height>
	<alpha>150</alpha><red>250</red><green>250</green><blue>250</blue>
</img>

<!-- *** 瑠璃香ボム（梨々香支援） ******************************************************** -->
<action label="rurika_bomb_action">
	<soundtrack><file type="ogg">sword</file></soundtrack>
	<createRef label="bomb_create_20"></createRef>
</action>

<create label="bomb_create_20">
	<speed>12</speed>
	<direction type="absolute">0</direction>
	<cx>$_player_cx</cx><cy>$_player_cy-10</cy>
	<vital>135-$_weapontype*10</vital><flag>1</flag>
	<shotRef label="bomb_bullet_20"></shotRef>
</create>

<create label="bomb_create_20_2">
	<speed>0.8</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>70-$_weapontype*8</vital>
	<shotRef label="bomb_bullet_20"></shotRef>
</create>

<shot label="bomb_bullet_20">
	<collision type="rect"><left>-10</left><top>-48</top><right>10</right><bottom>48</bottom></collision>	
	<revengeRef label="bomb_revenge_20"/>
	<repeat><times>$__shot_color-eq0</times>
		<imgRef l="rir128"/>
	</repeat>
	<repeat><times>1-($__shot_color-eq0)</times>
		<imgRef l="rir128b"/>
	</repeat>
	<action>
		<wait>2</wait>
		<changeSpeed>
			<speed type="absolute">12</speed><term>1</term>
		</changeSpeed>
	</action>
</shot>

<img l="rir128" type="maskadd">
	<file type="dds">rir_bul128</file>
	<left>0</left><top>0</top><right>128</right><bottom>128</bottom>
	<width>24</width><height>96</height>
	<alpha>150</alpha><red>20</red><green>20</green><blue>120</blue>
</img>
<img l="rir128b" type="maskadd">
	<file type="dds">rir_bul128b</file>
	<left>0</left><top>0</top><right>128</right><bottom>128</bottom>
	<width>24</width><height>96</height>
	<alpha>150</alpha><red>20</red><green>20</green><blue>20</blue>
</img>

<revenge label="bomb_revenge_20">
	<createRef label="bomb_create_2"></createRef>
	<vanish/>
</revenge>

<create label="bomb_create_2">
	<speed>0.8</speed>
	<direction type="absolute">0</direction>
	<cx>$_self_cx</cx><cy>$_self_cy</cy>
	<vital>44-$_weapontype*4</vital><flag>1</flag>
	<shotRef label="bomb_bullet_2"></shotRef>
</create>

<shot label="bomb_bullet_2">
	<damageRef label="bomb_damage_2"/>
	<collision type="rect"><left>-10</left><top>-48</top><right>10</right><bottom>48</bottom></collision>	
	<repeat><times>$__shot_color-eq0</times>
		<imgRef l="rir128"/>
	</repeat>
	<repeat><times>1-($__shot_color-eq0)</times>
		<imgRef l="rir128b"/>
	</repeat>
	<setBreakable><num>1</num></setBreakable>
	<action>
		<wait>30</wait>
		<createRef label="bomb_create_20_2"></createRef>
		<vanish/>
	</action>
</shot>

<!-- ********************************************************************* -->
<damage label="bomb_damage_1">

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

<damage label="bomb_damage_2">

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

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



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