public ElectroDashAction() { Name = "Electro Dash"; MoveInfo = new MoveActionData(new CroppedTexture2D(AssetManager.Instance.LoadRawTexture2D($"{ContentGlobals.BattleGFX}.png"), new Rectangle(216, 845, 22, 22)), "Pierce enemy defense, dealing 5 damage.", MoveResourceTypes.FP, 0, CostDisplayTypes.Shown, MoveAffectionTypes.Other, TargetSelectionMenu.EntitySelectionType.Single, true, null, new EntityTypes[] { User.GetOpposingEntityType() }); DamageInfo = new DamageData(5, Elements.Electric, true, ContactTypes.SideDirect, ContactProperties.None, null, DamageEffects.None); ElectroDashSequence electroDashSequence = new ElectroDashSequence(this); SetMoveSequence(electroDashSequence); actionCommand = new GulpCommand(MoveSequence, electroDashSequence.CommandDur, 500d, 1d, Microsoft.Xna.Framework.Input.Keys.Z); }
public ElectroDashAction(BattleEntity user) : base(user) { Name = "Electro Dash"; MoveInfo = new MoveActionData(new CroppedTexture2D(AssetManager.Instance.LoadRawTexture2D($"{ContentGlobals.BattleGFX}.png"), new Rectangle(216, 845, 22, 22)), "Pierce enemy defense, dealing 5 damage.", MoveResourceTypes.FP, 0, CostDisplayTypes.Shown, MoveAffectionTypes.Other, Enumerations.EntitySelectionType.Single, true, null, new EntityTypes[] { User.GetOpposingEntityType() }); DamageInfo = new DamageData(3, Elements.Electric, true, ContactTypes.SideDirect, ContactProperties.None, null, DamageEffects.None); //If a Partner (Watt) is using this move, the base damage is increased by 1 per Partner rank above Normal PartnerStats partnerStats = User.BattleStats as PartnerStats; if (partnerStats != null) { DamageInfo.Damage += ((int)partnerStats.PartnerRank - 1); } ElectroDashSequence electroDashSequence = new ElectroDashSequence(this); SetMoveSequence(electroDashSequence); actionCommand = new GulpCommand(MoveSequence, electroDashSequence.CommandDur, 500d, 1d, Microsoft.Xna.Framework.Input.Keys.Z); }