Пример #1
0
        protected override void HandleDamageEffects(Enumerations.DamageEffects damageEffects)
        {
            base.HandleDamageEffects(damageEffects);

            //Check whether any of the flags to flip are here
            if (UtilityGlobals.DamageEffectHasFlag(FlippedOnEffects, damageEffects) == true)
            {
                HandleFlipped();
            }
        }
Пример #2
0
        protected override void HandleDamageEffects(Enumerations.DamageEffects damageEffects)
        {
            base.HandleDamageEffects(damageEffects);

            if (UtilityGlobals.DamageEffectHasFlag(damageEffects, Enumerations.DamageEffects.RemovesWings) == true &&
                EntityProperties.IsVulnerableToDamageEffect(Enumerations.DamageEffects.RemovesWings) == true)
            {
                HandleGrounded();
            }
        }
        private void OnDamageTaken(InteractionHolder damageInfo)
        {
            if (Entity.IsDead == true || damageInfo.Hit == false)
            {
                return;
            }

            //Check if the entity was hit with DamageEffects that remove its wings
            if (UtilityGlobals.DamageEffectHasFlag(GroundedOnEffects, damageInfo.DamageEffect) == true)
            {
                //Handle grounding the entity
                HandleGrounded();
            }
        }
        protected virtual void OnDamageTaken(InteractionHolder damageInfo)
        {
            if (Entity.IsDead == true || damageInfo.Hit == false)
            {
                return;
            }

            //Check if the entity was hit with DamageEffects that flip it
            if (UtilityGlobals.DamageEffectHasFlag(FlippedOnEffects, damageInfo.DamageEffect) == true)
            {
                //Handle flipping the entity
                HandleFlipped();
            }
        }
        protected virtual void OnDamageTaken(InteractionHolder damageInfo)
        {
            if (Entity.IsDead == true || damageInfo.Hit == false)
            {
                return;
            }

            //Check if the entity was hit with DamageEffects that remove a segment
            if (CurSegmentCount > 0 && UtilityGlobals.DamageEffectHasFlag(SegmentRemovedOnEffects, damageInfo.DamageEffect) == true)
            {
                //Remove a segment
                HandleSegmentRemoved(1);
            }
        }
Пример #6
0
 protected override void HandleDamageEffects(Enumerations.DamageEffects damageEffects)
 {
     //Prioritize winged first
     //This allows the Paratroopa to be flipped after landing if hit with two Jump-like moves in one turn
     if (UtilityGlobals.DamageEffectHasFlag(damageEffects, Enumerations.DamageEffects.RemovesWings) == true &&
         EntityProperties.IsVulnerableToDamageEffect(Enumerations.DamageEffects.RemovesWings) == true)
     {
         HandleGrounded();
     }
     else
     {
         base.HandleDamageEffects(damageEffects);
     }
 }