@LabelIndex 115047
@StringIndex 0
class 0 boostup_fish_spawn : warrior_basic {
parameter:
	int	fish_spawn_probability = 0;
	int	ItemA = 13032;
	int	ItemB = 13033;

handler:
	EventHandler CREATED() {
		myself.i_ai0 = 1;
		myself::SetVisible(0);
		myself::AddTimerEx(1000,1000);
	}

	EventHandler TIMER_FIRED_EX(timer_id,i0) {
		if( timer_id == 1000 ) {
			i0 = ( gg::Rand(3) + 1 );
			myself::AddTimerEx(2000,( ( ( 1 + gg::Rand(i0) ) * 60 ) * 1000 ));
		}
		if( timer_id == 2000 ) {
			if( myself.i_ai0 == 0 ) {
				myself::SetVisible(1);
				myself.i_ai0 = 1;
			} else {
				myself::SetVisible(0);
				myself.i_ai0 = 0;
			}
			myself::AddTimerEx(1000,5000);
		}
	}

	EventHandler MY_DYING() {
		if( gg::Rand(2) < 1 ) {
			myself::DropItem1(myself.sm,ItemA,( gg::Rand(7) + 1 ));
		} else {
			myself::DropItem1(myself.sm,ItemB,( gg::Rand(7) + 1 ));
		}
	}

}
