Esempio n. 1
0
        public Jump()
        {
            Name = "Jump";

            MoveInfo = new MoveActionData(new CroppedTexture2D(AssetManager.Instance.LoadRawTexture2D($"{ContentGlobals.BattleGFX}.png"), new Rectangle(216, 845, 22, 22)),
                                          "Jump and stomp on an enemy.", MoveResourceTypes.FP, 0, CostDisplayTypes.Shown,
                                          MoveAffectionTypes.Other, TargetSelectionMenu.EntitySelectionType.Single, true,
                                          new HeightStates[] { HeightStates.Grounded, HeightStates.Hovering, HeightStates.Airborne }, User.GetOpposingEntityType(), EntityTypes.Neutral);

            //The base damage for Jump is Mario's current Boot level
            //If Mario isn't the one using this move, it defaults to 1
            int        baseDamage = 1;
            MarioStats marioStats = User.BattleStats as MarioStats;

            if (marioStats != null)
            {
                baseDamage = (int)marioStats.BootLevel;
            }

            DamageInfo = new DamageData(baseDamage, Elements.Normal, false, ContactTypes.TopDirect, ContactProperties.None, null,
                                        DamageEffects.FlipsShelled | DamageEffects.RemovesWings);

            JumpSequence jumpSequence = new JumpSequence(this);

            SetMoveSequence(jumpSequence);
            actionCommand = new JumpCommand(MoveSequence, jumpSequence.JumpDuration, (int)(jumpSequence.JumpDuration / 2f));
        }
Esempio n. 2
0
        public Jump()
        {
            Name = "Jump";

            MoveInfo = new MoveActionData(null, "Jump and stomp on an enemy.", MoveResourceTypes.FP, 0, CostDisplayTypes.Shown,
                                          MoveAffectionTypes.Enemy, TargetSelectionMenu.EntitySelectionType.Single, true,
                                          new HeightStates[] { HeightStates.Grounded, HeightStates.Hovering, HeightStates.Airborne });

            //The base damage for Jump is Mario's current Boot level
            //If Mario isn't the one using this move, it defaults to 1
            int        baseDamage = 1;
            MarioStats marioStats = User.BattleStats as MarioStats;

            if (marioStats != null)
            {
                baseDamage = (int)marioStats.BootLevel;
            }

            DamageInfo = new DamageData(baseDamage, Elements.Normal, false, ContactTypes.TopDirect, null,
                                        DamageEffects.FlipsShelled | DamageEffects.RemovesWings);

            JumpSequence jumpSequence = new JumpSequence(this);

            SetMoveSequence(jumpSequence);
            actionCommand = new JumpCommand(MoveSequence, jumpSequence.JumpDuration, (int)(jumpSequence.JumpDuration / 2f));
        }