|
@@ -262,7 +262,7 @@ public class PowerHandler
|
|
|
{
|
|
|
Bullet bullet = BulletFactory.CreateBullet<Bullet>(power.GetGraphicEffect());
|
|
|
bullet.Init(battleController.GetMap(), power.GetOwner().position, battleObj, power);
|
|
|
- bullet.damage = (power.GetValue()/power.GetNumBullets()) * power.GetOwner().GetPowerManager().GetDamage();
|
|
|
+ bullet.damage = power.GetEffectValue() / power.GetNumBullets();
|
|
|
bulletList.Add(bullet);
|
|
|
}
|
|
|
|
|
@@ -284,7 +284,7 @@ public class PowerHandler
|
|
|
NovaBullet novaBullet = BulletFactory.CreateBullet<NovaBullet>(power.GetGraphicEffect());
|
|
|
novaBullet.Init(battleController.GetMap(), power.GetOwner().position, null, power);
|
|
|
novaBullet.targetIds = arr;
|
|
|
- novaBullet.damage = power.GetValue();
|
|
|
+ novaBullet.damage = power.GetEffectValue();
|
|
|
}
|
|
|
|
|
|
private void ParseMelee(Power power, ISFSObject data, BattleController battleController)
|
|
@@ -306,7 +306,7 @@ public class PowerHandler
|
|
|
{
|
|
|
Bullet bullet = BulletFactory.CreateBullet<Melee>(power.GetGraphicEffect());
|
|
|
bullet.Init(battleController.GetMap(), power.GetOwner().position, battleObj, power);
|
|
|
- bullet.damage = (power.GetValue()/power.GetNumBullets()) * power.GetOwner().GetPowerManager().GetDamage();
|
|
|
+ bullet.damage = power.GetEffectValue() / power.GetNumBullets();
|
|
|
bulletList.Add(bullet);
|
|
|
}
|
|
|
|
|
@@ -338,7 +338,7 @@ public class PowerHandler
|
|
|
{
|
|
|
Melee bullet = BulletFactory.CreateBullet<Melee>(power.GetGraphicEffect());
|
|
|
bullet.Init(battleController.GetMap(), power.GetOwner().position, battleObj, power);
|
|
|
- bullet.damage = power.GetValue() * power.GetOwner().GetPowerManager().GetDamage();
|
|
|
+ bullet.damage = power.GetEffectValue();
|
|
|
bullet.delayEffect = 0;
|
|
|
}
|
|
|
}
|
|
@@ -355,7 +355,7 @@ public class PowerHandler
|
|
|
{
|
|
|
ChainBullet bullet = BulletFactory.CreateBullet<ChainBullet>(power.GetGraphicEffect());
|
|
|
bullet.origin = originTarget;
|
|
|
- bullet.damage = power.GetValue() * power.GetOwner().GetPowerManager().GetDamage();
|
|
|
+ bullet.damage = power.GetEffectValue();
|
|
|
bullet.delayEffect += i*0.1f;
|
|
|
bullet.Init(battleController.GetMap(), originTarget.position, battleObj, power);
|
|
|
originTarget = battleObj;
|
|
@@ -386,7 +386,7 @@ public class PowerHandler
|
|
|
|
|
|
Melee bullet = BulletFactory.CreateBullet<Melee>(power.GetGraphicEffect());
|
|
|
bullet.Init(battleController.GetMap(), power.GetOwner().position, battleObj, power);
|
|
|
- bullet.damage = power.GetValue() * power.GetOwner().GetPowerManager().GetDamage();
|
|
|
+ bullet.damage = power.GetEffectValue();
|
|
|
}
|
|
|
}
|
|
|
else
|
|
@@ -418,7 +418,11 @@ public class PowerHandler
|
|
|
AStarNode node = map.FindNearestEmptyAstarNode(Map.XToColumn(owner.position.x), Map.ZToRow(owner.position.z));
|
|
|
craftData.position = new Vector3(Map.GetCenterX(node.X), 0, Map.GetCenterZ(node.Y));
|
|
|
craftData.isHero = false;
|
|
|
- battleController.CreateCraft(craftData);
|
|
|
+
|
|
|
+ CraftEquipModify equipModify = new CraftEquipModify ();
|
|
|
+ equipModify.SetByData (data);
|
|
|
+
|
|
|
+ battleController.CreateCraft(craftData, equipModify);
|
|
|
}
|
|
|
|
|
|
private void ParseSector(Power power, ISFSObject data, BattleController battleController)
|
|
@@ -430,7 +434,7 @@ public class PowerHandler
|
|
|
SectorBullet bullet = BulletFactory.CreateBullet<SectorBullet>(power.GetGraphicEffect());
|
|
|
bullet.Init(battleController.GetMap(), originPos, posTarget, power);
|
|
|
bullet.targetIds = arr;
|
|
|
- bullet.damage = power.GetValue() * power.GetOwner().GetPowerManager().GetDamage();
|
|
|
+ bullet.damage = power.GetEffectValue();
|
|
|
}
|
|
|
|
|
|
private void ParseDash(Power power, ISFSObject data, BattleController battleController)
|