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);
        }
Exemple #2
0
        public Gulp()
        {
            Name = "Gulp";

            MoveInfo = new MoveActionData(null, string.Empty, Enumerations.MoveResourceTypes.FP, 4, Enumerations.CostDisplayTypes.Shown,
                                          Enumerations.MoveAffectionTypes.Enemy, TargetSelectionMenu.EntitySelectionType.First, true,
                                          new Enumerations.HeightStates[] { Enumerations.HeightStates.Grounded, Enumerations.HeightStates.Hovering });

            DamageInfo = new DamageData(4, Enumerations.Elements.Normal, true, Enumerations.ContactTypes.Approach, null,
                                        Enumerations.DamageEffects.None);

            GulpSequence gulpSequence = new GulpSequence(this);

            SetMoveSequence(gulpSequence);
            actionCommand = new GulpCommand(MoveSequence, gulpSequence.WalkDuration / 2f, 500f, 1f);
        }
        public Gulp()
        {
            Name = "Gulp";

            MoveInfo = new MoveActionData(new CroppedTexture2D(AssetManager.Instance.LoadRawTexture2D($"{ContentGlobals.BattleGFX}.png"), new Rectangle(874, 14, 22, 22)),
                                          string.Empty, Enumerations.MoveResourceTypes.FP, 4, Enumerations.CostDisplayTypes.Shown,
                                          Enumerations.MoveAffectionTypes.Other, TargetSelectionMenu.EntitySelectionType.First, true,
                                          new Enumerations.HeightStates[] { Enumerations.HeightStates.Grounded, Enumerations.HeightStates.Hovering }, User.GetOpposingEntityType());

            DamageInfo = new DamageData(4, Enumerations.Elements.Normal, true, Enumerations.ContactTypes.SideDirect, Enumerations.ContactProperties.WeaponDirect, null,
                                        Enumerations.DamageEffects.None);

            GulpSequence gulpSequence = new GulpSequence(this);

            SetMoveSequence(gulpSequence);
            actionCommand = new GulpCommand(MoveSequence, gulpSequence.WalkDuration / 2f, 500f, 1f, Microsoft.Xna.Framework.Input.Keys.R);
        }
        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);
        }