Initialize local project and fix ranch growth synchronization
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
|
||||
public class AttackType1 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType1()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.JUMP_HIT;
|
||||
movie_hit = "mov.hit1";
|
||||
super();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,22 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Back;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
|
||||
public class AttackType10 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType10()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW;
|
||||
movie_hit = "mov.hit5";
|
||||
movie_bullet = "mov.bullet4";
|
||||
super();
|
||||
ease = Back.easeIn;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType100 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType100()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit50";
|
||||
movie_bullet = "mov.bullet100";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 20;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.5;
|
||||
hitmv.rotation = Angler.getP2P(target.centerX,target.centerY,hitter.centerX,hitter.centerY) + Random.integer(-20,20);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
|
||||
public class AttackType101 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType101()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW;
|
||||
movie_hit = "mov.hit4";
|
||||
movie_bullet = "mov.bullet101";
|
||||
super();
|
||||
spd_bullet = 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,38 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType103 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType103()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit103";
|
||||
movie_bullet = "mov.bullet103";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 10;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.5;
|
||||
hitmv.rotation = Angler.getP2P(target.centerX,target.centerY,hitter.centerX,hitter.centerY) + Random.integer(-20,20);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType104 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType104()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.HORIZON_HIT;
|
||||
type_rocket = RocketType.ROTATE;
|
||||
movie_hit = "mov.hit4";
|
||||
movie_bullet = "mov.bullet104";
|
||||
super();
|
||||
spd_bullet = 12;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 30;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType105 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType105()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.X_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit105";
|
||||
movie_bullet = "mov.bullet105";
|
||||
super();
|
||||
spd_bullet = 23;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 60 + Random.integer(-10,10);
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 40 + Random.integer(10,15);
|
||||
}
|
||||
|
||||
override public function get targetFloatX() : int
|
||||
{
|
||||
return Random.integer(-10,10);
|
||||
}
|
||||
|
||||
override public function get targetFloatY() : int
|
||||
{
|
||||
return Random.integer(-10,10);
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.4;
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
|
||||
public class AttackType106 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType106()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit106";
|
||||
movie_bullet = "mov.bullet106";
|
||||
super();
|
||||
spd_bullet = 12;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2;
|
||||
hitmv.scaleX = hitmv.scaleY = 1;
|
||||
hitmv.rotation = Angler.getP2P(hitter.x,hitter.y,target.x,target.y) + 180;
|
||||
return hitmv;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 60;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType107 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType107()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.DOWN_HIT;
|
||||
type_rocket = RocketType.THROW;
|
||||
movie_hit = "mov.hit107";
|
||||
movie_bullet = "mov.bullet107";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 4;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType108 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType108()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.NONE;
|
||||
type_rocket = RocketType.THROW;
|
||||
movie_hit = "mov.hit108";
|
||||
movie_bullet = "mov.bullet108";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 4;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.setScale(0.9);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType109 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType109()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW2;
|
||||
movie_hit = "mov.hit5";
|
||||
movie_bullet = "mov.bullet109";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 10;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return -100 - Random.integer(0,40);
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return -150 - Random.integer(-100,150);
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.5;
|
||||
hitmv.rotation = Angler.getP2P(target.centerX,target.centerY,hitter.centerX,hitter.centerY) + Random.integer(-20,20);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
|
||||
public class AttackType11 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType11()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW;
|
||||
movie_hit = "mov.hit1";
|
||||
movie_bullet = "mov.bullet5";
|
||||
super();
|
||||
spd_bullet = 5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType110 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType110()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW;
|
||||
movie_hit = "mov.hit52";
|
||||
movie_bullet = "mov.bullet110";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 11;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,20);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.3;
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType111 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType111()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.bullet111";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
if(target.x < hitter.x)
|
||||
{
|
||||
hitmv.scaleX *= -1;
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType112 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType112()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.hit112";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function addStartAttackMov(mon:BattleMon, targetmon:BattleMon) : void
|
||||
{
|
||||
var rot:Number = Angler.getP2P(mon.x,mon.centerY - 80,targetmon.centerX,targetmon.centerY);
|
||||
if(mon.x < targetmon.x)
|
||||
{
|
||||
mon.addMovByClass("mov.hit112b",0,1.5,1.5,16,rot,90,-40);
|
||||
}
|
||||
else
|
||||
{
|
||||
mon.addMovByClass("mov.hit112b",0,1.5,1.5,16,rot,-90,-40);
|
||||
}
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.5;
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Angler.getP2P(hitter.x,hitter.y,target.x,target.y) + 180;
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType113 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType113()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit98";
|
||||
movie_bullet = "mov.bullet113";
|
||||
super();
|
||||
spd_bullet = 25;
|
||||
ease = Linear.easeIn;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Angler.getP2P(target.x,target.y,hitter.x,hitter.y) + Random.integer(-20,20);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-10,-20);
|
||||
hitmv.scaleX = 1.3;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(10,20);
|
||||
hitmv.scaleX = -1.3;
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType114 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType114()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit11b";
|
||||
movie_bullet = "mov.bullet7b";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 10;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 5;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 60;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.setScale(1.4);
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-10,-10);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(10,10);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType115 extends BaseAttack
|
||||
{
|
||||
|
||||
public var left:Boolean = false;
|
||||
|
||||
public function AttackType115()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.hit113";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(20,30);
|
||||
hitmv.rotation = Angler.getP2P(hitter.centerX,hitter.centerY,target.centerX,target.centerY) + Random.integer(-10,10);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(10,20);
|
||||
hitmv.scaleX = -1.4;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.scaleX = -1.4;
|
||||
hitmv.x = Random.integer(-10,-20);
|
||||
}
|
||||
if(left)
|
||||
{
|
||||
left = false;
|
||||
hitmv.scaleY = 1.4;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.scaleY = -1.4;
|
||||
left = true;
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType116 extends BaseAttack
|
||||
{
|
||||
|
||||
public var left:Boolean = false;
|
||||
|
||||
public function AttackType116()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.hit114";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(20,30);
|
||||
hitmv.rotation = Angler.getP2P(hitter.centerX,hitter.centerY,target.centerX,target.centerY) + Random.integer(-10,10);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(10,20);
|
||||
hitmv.scaleX = -1.45;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.scaleX = -1.45;
|
||||
hitmv.x = Random.integer(-10,-20);
|
||||
}
|
||||
if(left)
|
||||
{
|
||||
left = false;
|
||||
hitmv.scaleY = 1.45;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.scaleY = -1.45;
|
||||
left = true;
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,55 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType117 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType117()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.X_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit16";
|
||||
movie_bullet = "mov.bullet117";
|
||||
super();
|
||||
spd_bullet = 23;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 60 + Random.integer(-10,10);
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 40 + Random.integer(10,15);
|
||||
}
|
||||
|
||||
override public function get targetFloatX() : int
|
||||
{
|
||||
return Random.integer(-10,10);
|
||||
}
|
||||
|
||||
override public function get targetFloatY() : int
|
||||
{
|
||||
return Random.integer(-10,10);
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.4;
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType118 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType118()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit118";
|
||||
movie_bullet = "mov.bullet118";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 11;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 53;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 26;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.setScale(1.4);
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-10,-10);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(10,10);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType119 extends BaseAttack
|
||||
{
|
||||
|
||||
public var left:Boolean = true;
|
||||
|
||||
public function AttackType119()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.HORIZON_HIT_QUICK;
|
||||
movie_hit = "mov.hit119";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.setScale(1.7);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
if(left)
|
||||
{
|
||||
hitmv.rotation = Random.number(-70,-40);
|
||||
left = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.rotation = Random.number(20,40);
|
||||
left = true;
|
||||
}
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType12 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType12()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.HORIZON_HIT;
|
||||
movie_hit = "mov.hit8";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Angler.getP2P(hitter.x,hitter.y,target.x,target.y) + Random.integer(-20,20);
|
||||
hitmv.scaleX = hitmv.scaleY = -1.3;
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType120 extends BaseAttack
|
||||
{
|
||||
|
||||
public var left:Boolean = true;
|
||||
|
||||
public function AttackType120()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.HORIZON_HIT_QUICK;
|
||||
movie_hit = "mov.hit120";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,32);
|
||||
hitmv.setScale(1.6);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
if(left)
|
||||
{
|
||||
hitmv.scaleY = Math.abs(hitmv.scaleY);
|
||||
left = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.scaleY = -Math.abs(hitmv.scaleY);
|
||||
left = true;
|
||||
}
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.scaleX = Math.abs(hitmv.scaleX);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.scaleX = -Math.abs(hitmv.scaleX);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType121 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType121()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.bullet111b";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
if(target.x < hitter.x)
|
||||
{
|
||||
hitmv.scaleX *= -1;
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Expo;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType122 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType122()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW;
|
||||
movie_hit = "mov.hit18b";
|
||||
movie_bullet = "mov.bullet25";
|
||||
super();
|
||||
ease = Expo.easeInOut;
|
||||
spd_bullet = 8;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.2;
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Cubic;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType123 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType123()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_RANDOM;
|
||||
movie_hit = "mov.hit18b";
|
||||
movie_bullet = "mov.bullet26";
|
||||
super();
|
||||
ease = Cubic.easeIn;
|
||||
spd_bullet = 7;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return Random.integer(-100,100);
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return Random.integer(1,70);
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.7;
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType124 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType124()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit124";
|
||||
movie_bullet = "mov.bullet124";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 11;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 53;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 26;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.setScale(1.4);
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-10,-10);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(10,10);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType125 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType125()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mon.skill133Hit";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
if(target.x < hitter.x)
|
||||
{
|
||||
hitmv.scaleX *= -1;
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType126 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType126()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit126";
|
||||
movie_bullet = "mov.bullet126";
|
||||
super();
|
||||
spd_bullet = 18;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2;
|
||||
hitmv.scaleX = hitmv.scaleY = 1.3;
|
||||
hitmv.rotation = Random.integer(0,180);
|
||||
return hitmv;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 60;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,51 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType127 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType127()
|
||||
{
|
||||
shotter = true;
|
||||
bulletScale = 1.8;
|
||||
type_action = HitActionType.X_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit43b";
|
||||
movie_bullet = "mov.bullet61b";
|
||||
super();
|
||||
spd_bullet = 14;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 45;
|
||||
}
|
||||
|
||||
override public function get targetFloatX() : int
|
||||
{
|
||||
return Random.integer(-10,10);
|
||||
}
|
||||
|
||||
override public function get targetFloatY() : int
|
||||
{
|
||||
return Random.integer(-10,10);
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.5;
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
hitmv.x = Random.integer(-10,10);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType129 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType129()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.NONE;
|
||||
type_rocket = RocketType.THROW;
|
||||
movie_hit = "mov.hit128";
|
||||
movie_bullet = "mov.bullet128";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 4;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.setScale(0.9);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType13 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType13()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW;
|
||||
movie_hit = "mov.hit9";
|
||||
movie_bullet = "mov.bullet6";
|
||||
super();
|
||||
spd_bullet = 8;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType130 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType130()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW2;
|
||||
movie_hit = "mov.hit87";
|
||||
movie_bullet = "mov.bullet130";
|
||||
super();
|
||||
spd_bullet = 25;
|
||||
ease = Linear.easeIn;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 22;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.scaleX = hitmv.scaleY = 1;
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Back;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType131 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType131()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW;
|
||||
movie_hit = "mov.hit120C";
|
||||
movie_bullet = "mov.bullet131";
|
||||
spd_bullet = 4;
|
||||
super();
|
||||
ease = Back.easeIn;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.8;
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-10,-20);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(10,20);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType132 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType132()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW2;
|
||||
movie_hit = "mov.hit87";
|
||||
movie_bullet = "mov.bullet130b";
|
||||
super();
|
||||
spd_bullet = 25;
|
||||
ease = Linear.easeIn;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 22;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.scaleX = hitmv.scaleY = 1;
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType133 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType133()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.hit120C";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.setScale(1.5);
|
||||
hitmv.rotation = Random.integer(1,360);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType134 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType134()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.hit134";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.8;
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 - Random.number(-5,5);
|
||||
hitmv.rotation = Angler.getP2P(target.x,target.containerY,hitter.x,hitter.containerY) + Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType135 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType135()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.hit135";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.8;
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 - Random.number(-5,5);
|
||||
hitmv.rotation = Angler.getP2P(target.x,target.containerY,hitter.x,hitter.containerY) + Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType136 extends BaseAttack
|
||||
{
|
||||
|
||||
public var hwfx:int = -1;
|
||||
|
||||
public function AttackType136()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.DOWN_HIT;
|
||||
movie_hit = "mov.hit136";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Angler.getP2P(hitter.x,hitter.y,target.x,target.y) + Random.integer(-10,10);
|
||||
if(hwfx == -1)
|
||||
{
|
||||
hwfx = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
hwfx = -1;
|
||||
}
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.scaleX = -1.5;
|
||||
hitmv.scaleY = -1.3 * hwfx;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.scaleX = -1.5;
|
||||
hitmv.scaleY = -1.3 * hwfx;
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType137 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType137()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit137";
|
||||
movie_bullet = "mov.bullet137";
|
||||
super();
|
||||
spd_bullet = 18;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2;
|
||||
hitmv.scaleX = hitmv.scaleY = 1.3;
|
||||
hitmv.rotation = Random.integer(0,180);
|
||||
return hitmv;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 60;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType138 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType138()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW2;
|
||||
movie_hit = "mov.hit1";
|
||||
movie_bullet = "mov.bullet5";
|
||||
super();
|
||||
spd_bullet = 19;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 40;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.setScale(1.5);
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType139 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType139()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.hit139";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function addStartAttackMov(mon:BattleMon, targetmon:BattleMon) : void
|
||||
{
|
||||
if(mon.x < targetmon.x)
|
||||
{
|
||||
mon.addMovByClass("mov.hit139Start",0,1,1,50,Random.integer(1,350),40,-10,null,null);
|
||||
}
|
||||
else
|
||||
{
|
||||
mon.addMovByClass("mov.hit139Start",0,1,1,50,Random.integer(1,350),-40,-10,null,null);
|
||||
}
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.8;
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 - Random.number(-5,5);
|
||||
hitmv.rotation = Angler.getP2P(target.x,target.containerY,hitter.x,hitter.containerY) + Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType14 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType14()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.HORIZON_HIT;
|
||||
movie_hit = "mov.hit10";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.integer(-40,40);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.scaleX = 1.3;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.scaleX = -1.3;
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType140 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType140()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.HORIZON_HIT;
|
||||
movie_hit = "mov.hit17";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.number(-20,20);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,46 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Cubic;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType141 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType141()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW2;
|
||||
movie_hit = "mov.hit18";
|
||||
movie_bullet = "mov.bullet109BB";
|
||||
super();
|
||||
ease = Cubic.easeIn;
|
||||
spd_bullet = 12;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return Random.integer(-55,55);
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return Random.integer(1,22);
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.7;
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType142 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType142()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit142";
|
||||
movie_bullet = "mov.bullet142";
|
||||
super();
|
||||
bulletScale = 0.7;
|
||||
spd_bullet = 18;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-5,5);
|
||||
hitmv.rotation = 0;
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.scaleX = -1;
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.scaleX = 1;
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,47 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType143 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType143()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit21";
|
||||
movie_bullet = "mov.bullet143";
|
||||
super();
|
||||
spd_bullet = 17;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 50 + Math.random() * 20;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.2;
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType144 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType144()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW;
|
||||
movie_hit = "mov.hit9";
|
||||
movie_bullet = "mov.bullet144";
|
||||
super();
|
||||
spd_bullet = 8;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType145 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType145()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit145";
|
||||
movie_bullet = "mov.bullet145";
|
||||
super();
|
||||
bulletScale = 0.7;
|
||||
spd_bullet = 18;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-5,5);
|
||||
hitmv.rotation = 0;
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.scaleX = -1;
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.scaleX = 1;
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
|
||||
public class AttackType146 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType146()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.hit167";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = 0;
|
||||
hitmv.setScale(1.3);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
|
||||
public class AttackType147 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType147()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.ROTATE;
|
||||
movie_hit = "mov.hit48";
|
||||
movie_bullet = "mov.bullet147";
|
||||
spd_bullet = 4;
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 30;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return -50;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.setScale(1.6);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2;
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Circ;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
|
||||
public class AttackType148 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType148()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL_NO_ROTATION;
|
||||
movie_hit = "mov.hit34";
|
||||
movie_bullet = "mov.bullet148";
|
||||
super();
|
||||
spd_bullet = 12;
|
||||
ease = Circ.easeIn;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 40;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.setScale(1.3);
|
||||
hitmv.y = -target.cacheHeight / 2;
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,48 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType149 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType149()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW2;
|
||||
movie_hit = "mov.hit168";
|
||||
movie_bullet = "mov.bullet149";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 14;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return -100 - Random.integer(0,40);
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return -150 - Random.integer(-100,150);
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 2;
|
||||
hitmv.rotation = Angler.getP2P(target.centerX,target.centerY,hitter.centerX,hitter.centerY) + Random.integer(-20,20);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType15 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType15()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit11";
|
||||
movie_bullet = "mov.bullet7";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 10;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return -80;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.setScale(1.3);
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType150 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType150()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.HORIZON_HIT;
|
||||
movie_hit = "mov.hit150";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Angler.getP2P(hitter.x,hitter.y,target.x + target.container.y,target.y + target.container.y) + 180;
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType151 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType151()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit48C";
|
||||
movie_bullet = "mov.bullet75";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 16;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.2;
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType152 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType152()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit169";
|
||||
movie_bullet = "mov.bullet152";
|
||||
super();
|
||||
bulletScale = 1;
|
||||
spd_bullet = 15;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-5,5);
|
||||
hitmv.rotation = 0;
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.scaleX = -1;
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.scaleX = 1;
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
|
||||
public class AttackType153 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType153()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW;
|
||||
movie_hit = "mov.hit4";
|
||||
movie_bullet = "mov.bullet153";
|
||||
super();
|
||||
spd_bullet = 12;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
|
||||
public class AttackType154 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType154()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL_NO_ROTATION;
|
||||
movie_hit = "mov.hit170";
|
||||
movie_bullet = "mov.bullet154";
|
||||
super();
|
||||
spd_bullet = 9;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 140;
|
||||
}
|
||||
|
||||
override public function get targetFloatY() : int
|
||||
{
|
||||
return 40;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.setScale(1.5);
|
||||
hitmv.y = target.container.y;
|
||||
hitmv.rotation = 0;
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType155 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType155()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW;
|
||||
movie_hit = "mov.hit171";
|
||||
movie_bullet = "mov.bullet155";
|
||||
super();
|
||||
spd_bullet = 8;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = 0;
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
if(target.x > hitter.x)
|
||||
{
|
||||
hitmv.scaleX *= -1;
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType156 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType156()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.hit172";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function addStartAttackMov(mon:BattleMon, targetmon:BattleMon) : void
|
||||
{
|
||||
if(mon.x < targetmon.x)
|
||||
{
|
||||
mon.addMovByClass("mov.hit172Start",0,1,1,50,Random.integer(1,350),40,-10,null,null);
|
||||
}
|
||||
else
|
||||
{
|
||||
mon.addMovByClass("mov.hit172Start",0,1,1,50,Random.integer(1,350),-40,-10,null,null);
|
||||
}
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.scaleX = hitmv.scaleY = 2;
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 - Random.number(-5,5);
|
||||
hitmv.rotation = Angler.getP2P(target.x,target.containerY,hitter.x,hitter.containerY) + Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType157 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType157()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.HORIZON_HIT;
|
||||
movie_hit = "mov.hit10b";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.integer(-40,40);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.scaleX = 1.3;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.scaleX = -1.3;
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
|
||||
public class AttackType159 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType159()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit5";
|
||||
movie_bullet = "mov.bullet159";
|
||||
super();
|
||||
spd_bullet = 14;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
|
||||
public class AttackType16 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType16()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.HORIZON_HIT;
|
||||
type_rocket = RocketType.THROW_LOW;
|
||||
movie_hit = "mov.hit4";
|
||||
movie_bullet = "mov.bullet8";
|
||||
super();
|
||||
spd_bullet = 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType161 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType161()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.hit34B";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function addStartAttackMov(mon:BattleMon, targetmon:BattleMon) : void
|
||||
{
|
||||
var rot:Number = 180 + Angler.getP2P(mon.x,mon.centerY - 80,targetmon.centerX,targetmon.centerY);
|
||||
if(mon.x < targetmon.x)
|
||||
{
|
||||
mon.addMovByClass("mov.hit37",0,1,1,30,rot,30,-80);
|
||||
}
|
||||
else
|
||||
{
|
||||
mon.addMovByClass("mov.hit37",0,1,1,30,rot,-30,-80);
|
||||
}
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,45);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.7;
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.integer(0,360);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
|
||||
public class AttackType162 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType162()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW;
|
||||
movie_hit = "mov.hit4";
|
||||
movie_bullet = "mov.bullet162";
|
||||
super();
|
||||
spd_bullet = 7;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType163 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType163()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit203";
|
||||
movie_bullet = "mov.bullet77";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 20;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.2;
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,37 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType164 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType164()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit47";
|
||||
movie_bullet = "mov.bullet164";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 16;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.4;
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,53 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType165 extends BaseAttack
|
||||
{
|
||||
|
||||
public var left:Boolean = true;
|
||||
|
||||
public function AttackType165()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.HORIZON_HIT_QUICK;
|
||||
movie_hit = "mov.hit173";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.setScale(1);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
if(left)
|
||||
{
|
||||
hitmv.rotation = Random.number(-70,-40);
|
||||
left = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.rotation = Random.number(20,40);
|
||||
left = true;
|
||||
}
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
if(target != null)
|
||||
{
|
||||
target.addMovByClass("mov.hit173Ground",3,1.2,1.2,18,0,0,0,null,null,false);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType166 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType166()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit204";
|
||||
movie_bullet = "mov.bullet166";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 11;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 53;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 10;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.setScale(1.3);
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-10,-10);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(10,10);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType167 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType167()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.hit205";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.2;
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 - Random.number(-5,5);
|
||||
hitmv.rotation = Angler.getP2P(target.x,target.containerY,hitter.x,hitter.containerY) + Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,31 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType168 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType168()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.hit206";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.2;
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 - Random.number(-5,5);
|
||||
hitmv.rotation = Angler.getP2P(target.x,target.containerY,hitter.x,hitter.containerY) + Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType169 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType169()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.ROTATE;
|
||||
movie_hit = "mov.hit208";
|
||||
movie_bullet = "mov.bullet169";
|
||||
super();
|
||||
spd_bullet = 15;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.scaleX = hitmv.scaleY = 1.4;
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType17 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType17()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.hit12";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Angler.getP2P(hitter.centerX,hitter.centerY,target.centerX,target.centerY) + Random.integer(-5,5);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(10,20);
|
||||
hitmv.scaleX = -1.2;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.scaleX = -1.2;
|
||||
hitmv.x = Random.integer(-10,-20);
|
||||
}
|
||||
hitmv.scaleY = 1.2;
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
|
||||
public class AttackType170 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType170()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.hit167Blue";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = 0;
|
||||
hitmv.setScale(1);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType171 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType171()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW2;
|
||||
movie_hit = "mov.hit209";
|
||||
movie_bullet = "mov.bullet130c";
|
||||
super();
|
||||
spd_bullet = 25;
|
||||
ease = Linear.easeIn;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 22;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.scaleX = hitmv.scaleY = 1;
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType172 extends BaseAttack
|
||||
{
|
||||
|
||||
public var hwfx:int = -1;
|
||||
|
||||
public function AttackType172()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
movie_hit = "mov.hit26B";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = 0;
|
||||
hitmv.scaleX = hitmv.scaleY = 1.3;
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.element.snd.GameSound;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType173 extends BaseAttack
|
||||
{
|
||||
|
||||
public var ce:int = 0;
|
||||
|
||||
public function AttackType173()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit13B";
|
||||
movie_bullet = "mov.bullet10B";
|
||||
super();
|
||||
spd_bullet = 23;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
ce++;
|
||||
if(ce % 2 == 0)
|
||||
{
|
||||
return 70 * BattleMon.OSCALE;
|
||||
}
|
||||
return -10 * BattleMon.OSCALE;
|
||||
}
|
||||
|
||||
override public function get shadowScale() : Number
|
||||
{
|
||||
return 0.3;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 55;
|
||||
}
|
||||
|
||||
override public function get sound_hit_snd() : String
|
||||
{
|
||||
switch(Random.integer(1,3) - 1)
|
||||
{
|
||||
case 0:
|
||||
return GameSound.effect_hit_bullet1;
|
||||
case 1:
|
||||
return GameSound.effect_hit_bullet2;
|
||||
case 2:
|
||||
return GameSound.effect_hit_bullet3;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-5,5);
|
||||
hitmv.rotation = Random.rotation();
|
||||
hitmv.scaleX = 2;
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType174 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType174()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW;
|
||||
movie_hit = "mov.hit47B";
|
||||
movie_bullet = "mov.bullet174";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 8;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType175 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType175()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit10b";
|
||||
movie_bullet = "mov.bullet175";
|
||||
super();
|
||||
spd_bullet = 13;
|
||||
ease = Linear.easeIn;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 22;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 20;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.scaleX = hitmv.scaleY = 1;
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
|
||||
public class AttackType176 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType176()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit20";
|
||||
movie_bullet = "mov.bullet176";
|
||||
super();
|
||||
spd_bullet = 22;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Back;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType177 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType177()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.THROW_LOW;
|
||||
movie_hit = "mov.hit18";
|
||||
movie_bullet = "mov.bullet177";
|
||||
super();
|
||||
ease = Back.easeIn;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.scaleX = hitmv.scaleY = 2;
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.rotation();
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,56 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType178 extends BaseAttack
|
||||
{
|
||||
|
||||
public var ce:int = 0;
|
||||
|
||||
public function AttackType178()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit204b";
|
||||
movie_bullet = "mov.bullet178";
|
||||
super();
|
||||
spd_bullet = 20;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
ce++;
|
||||
if(ce % 2 == 0)
|
||||
{
|
||||
return 70 * BattleMon.OSCALE;
|
||||
}
|
||||
return -10 * BattleMon.OSCALE;
|
||||
}
|
||||
|
||||
override public function get shadowScale() : Number
|
||||
{
|
||||
return 0.3;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 55;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,12);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-5,5);
|
||||
hitmv.rotation = Random.rotation();
|
||||
hitmv.scaleX = 1.5;
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType179 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType179()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.HORIZON_HIT;
|
||||
movie_hit = "mov.hit210";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,18);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-5,5);
|
||||
hitmv.rotation = Random.rotation();
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType18 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType18()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.HORIZON_HIT;
|
||||
type_rocket = RocketType.ROTATE;
|
||||
movie_hit = "mov.hit4";
|
||||
movie_bullet = "mov.bullet9";
|
||||
super();
|
||||
spd_bullet = 12;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType180 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType180()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.HORIZON_HIT;
|
||||
type_rocket = RocketType.ROTATE;
|
||||
movie_hit = "mov.hit4";
|
||||
movie_bullet = "mov.bullet9c";
|
||||
super();
|
||||
spd_bullet = 12;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType181 extends BaseAttack
|
||||
{
|
||||
|
||||
public var left:Boolean = true;
|
||||
|
||||
public function AttackType181()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.HORIZON_HIT_QUICK;
|
||||
movie_hit = "mov.hit212";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.setScale(1.2);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
if(left)
|
||||
{
|
||||
hitmv.rotation = Random.number(-70,-40);
|
||||
left = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.rotation = Random.number(20,40);
|
||||
left = true;
|
||||
}
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,34 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType182 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType182()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit13B_2";
|
||||
movie_bullet = "mov.bullet182";
|
||||
super();
|
||||
spd_bullet = 22;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.setScale(1.5);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.rotation();
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType183 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType183()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit213";
|
||||
movie_bullet = "mov.bullet183";
|
||||
super();
|
||||
spd_bullet = 50;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 80 * BattleMon.OSCALE;
|
||||
}
|
||||
|
||||
override public function addStartAttackMov(mon:BattleMon, target:BattleMon) : void
|
||||
{
|
||||
mon.addMovByClass("mov.bullet183Smoke",0,1.6,1.6,24,-3,-mon.curFaceto() * 70,-10);
|
||||
}
|
||||
|
||||
override public function get shadowScale() : Number
|
||||
{
|
||||
return 0.3;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 55;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.setScale(0.8);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.rotation();
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType184 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType184()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit213Blue";
|
||||
movie_bullet = "mov.bullet183Blue";
|
||||
super();
|
||||
spd_bullet = 50;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 80 * BattleMon.OSCALE;
|
||||
}
|
||||
|
||||
override public function addStartAttackMov(mon:BattleMon, target:BattleMon) : void
|
||||
{
|
||||
mon.addMovByClass("mov.bullet183SmokeBlue",0,1.6,1.6,24,-3,-mon.curFaceto() * 70,-10);
|
||||
}
|
||||
|
||||
override public function get shadowScale() : Number
|
||||
{
|
||||
return 0.3;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 55;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.setScale(0.8);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.rotation();
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType185 extends BaseAttack
|
||||
{
|
||||
|
||||
public var left:Boolean = true;
|
||||
|
||||
public function AttackType185()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.HORIZON_HIT_QUICK;
|
||||
movie_hit = "mov.hit212";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.setScale(1.2);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
if(left)
|
||||
{
|
||||
hitmv.rotation = Random.number(-70,-40);
|
||||
left = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.rotation = Random.number(20,40);
|
||||
left = true;
|
||||
}
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-20,-30);
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(20,30);
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType186 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType186()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.DOWN_HIT;
|
||||
type_rocket = RocketType.THROW;
|
||||
movie_hit = "mov.skill1";
|
||||
movie_bullet = "bullet33_yugan";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 4;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType187 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType187()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.DOWN_HIT;
|
||||
type_rocket = RocketType.THROW;
|
||||
movie_hit = "mov.hit1";
|
||||
movie_bullet = "bullet33_shitou";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 4;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import com.greensock.easing.Linear;
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType188 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType188()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.DOWN_HIT;
|
||||
type_rocket = RocketType.THROW;
|
||||
movie_hit = "mov.hit1";
|
||||
movie_bullet = "bullet33_shitou2";
|
||||
super();
|
||||
ease = Linear.easeIn;
|
||||
spd_bullet = 4;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.number(0,360);
|
||||
hitmv.x = Random.integer(-20,20);
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType189 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType189()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit215";
|
||||
movie_bullet = "mov.bullet189";
|
||||
super();
|
||||
spd_bullet = 30;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 80 * BattleMon.OSCALE;
|
||||
}
|
||||
|
||||
override public function addStartAttackMov(mon:BattleMon, target:BattleMon) : void
|
||||
{
|
||||
mon.addMovByClass("mov.hit3",0,-mon.curFaceto() * 1.6,1.6,24,0,-mon.curFaceto() * 70,-10);
|
||||
}
|
||||
|
||||
override public function get shadowScale() : Number
|
||||
{
|
||||
return 0.3;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 55;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.setScale(1.5);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.rotation();
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,82 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.element.snd.GameSound;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType19 extends BaseAttack
|
||||
{
|
||||
|
||||
public var ce:int = 0;
|
||||
|
||||
public function AttackType19()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit13";
|
||||
movie_bullet = "mov.bullet10";
|
||||
super();
|
||||
spd_bullet = 23;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
ce++;
|
||||
if(ce % 2 == 0)
|
||||
{
|
||||
return 70 * BattleMon.OSCALE;
|
||||
}
|
||||
return -10 * BattleMon.OSCALE;
|
||||
}
|
||||
|
||||
override public function get shadowScale() : Number
|
||||
{
|
||||
return 0.3;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return 55;
|
||||
}
|
||||
|
||||
override public function get sound_hit_snd() : String
|
||||
{
|
||||
switch(Random.integer(1,3) - 1)
|
||||
{
|
||||
case 0:
|
||||
return GameSound.effect_hit_bullet1;
|
||||
case 1:
|
||||
return GameSound.effect_hit_bullet2;
|
||||
case 2:
|
||||
return GameSound.effect_hit_bullet3;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,40);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Angler.getP2P(hitter.x,hitter.y,target.x,target.y) + Random.integer(-20,20);
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.x = Random.integer(-10,-20);
|
||||
hitmv.scaleX = 1.7;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.x = Random.integer(10,20);
|
||||
hitmv.scaleX = -1.7;
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType190 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType190()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit47B";
|
||||
movie_bullet = "mov.bullet190";
|
||||
super();
|
||||
spd_bullet = 10;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 100 * BattleMon.OSCALE;
|
||||
}
|
||||
|
||||
override public function get shadowScale() : Number
|
||||
{
|
||||
return 0.5;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return -455;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.setScale(1.5);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.rotation();
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Angler;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType191 extends BaseAttack
|
||||
{
|
||||
|
||||
public var hwfx:int = -1;
|
||||
|
||||
public function AttackType191()
|
||||
{
|
||||
shotter = false;
|
||||
type_action = HitActionType.JUMP_HIT2;
|
||||
movie_hit = "mov.hit217";
|
||||
super();
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,24);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Angler.getP2P(hitter.x,hitter.y,target.x,target.y) + Random.integer(-10,10);
|
||||
if(hwfx == -1)
|
||||
{
|
||||
hwfx = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
hwfx = -1;
|
||||
}
|
||||
if(hitter.x < target.x)
|
||||
{
|
||||
hitmv.scaleX = -1.5;
|
||||
hitmv.scaleY = -1.3 * hwfx;
|
||||
}
|
||||
else
|
||||
{
|
||||
hitmv.scaleX = -1.5;
|
||||
hitmv.scaleY = -1.3 * hwfx;
|
||||
}
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
package net.pixvi.myr.view.attack
|
||||
{
|
||||
import net.pixvi.common.view.FF;
|
||||
import net.pixvi.myr.battle.view.BattleMon;
|
||||
import net.pixvi.myr.view.attack.action.type.HitActionType;
|
||||
import net.pixvi.myr.view.attack.rocket.type.RocketType;
|
||||
import net.pixvi.pfw.display.BitMovieClip;
|
||||
import net.pixvi.pfw.utils.Random;
|
||||
|
||||
public class AttackType192 extends BaseAttack
|
||||
{
|
||||
|
||||
public function AttackType192()
|
||||
{
|
||||
shotter = true;
|
||||
type_action = HitActionType.Y_SCALE_SHOOT;
|
||||
type_rocket = RocketType.NORMAL;
|
||||
movie_hit = "mov.hit34";
|
||||
movie_bullet = "mov.bullet192";
|
||||
super();
|
||||
spd_bullet = 10;
|
||||
}
|
||||
|
||||
override public function get shooterFloatX() : int
|
||||
{
|
||||
return 100 * BattleMon.OSCALE;
|
||||
}
|
||||
|
||||
override public function get shadowScale() : Number
|
||||
{
|
||||
return 0.5;
|
||||
}
|
||||
|
||||
override public function get shooterFloatY() : int
|
||||
{
|
||||
return -455;
|
||||
}
|
||||
|
||||
override public function getHitMv(target:BattleMon, hitter:BattleMon) : BitMovieClip
|
||||
{
|
||||
var hitmv:BitMovieClip = FF.getBMC(this.movie_hit,30);
|
||||
hitmv.setScale(1.5);
|
||||
hitmv.y = target.container.y - target.cacheHeight / 2 + Random.number(-10,10);
|
||||
hitmv.rotation = Random.rotation();
|
||||
return hitmv;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user