Example #1
0
    public override void SetRandomValues(int level)
    {
        base.SetRandomValues(level);

        attackClass = InventoryManager.GetRandomEnum <EAttackClass>();

        damageMultiplier = 1f + level * 0.1f;
    }
Example #2
0
    public static bool CheckIfDamageApplies(EAttackType attackType, EAttackClass eAttackClass)
    {
        switch (eAttackClass)
        {
        case EAttackClass.Tilts:
        {
            if (attackType == EAttackType.DTilt || attackType == EAttackType.UTilt || attackType == EAttackType.FTilt ||
                attackType == EAttackType.Jab1 || attackType == EAttackType.DashAtk)
            {
                return(true);
            }
            break;
        }

        case EAttackClass.Aerials:
        {
            if (attackType == EAttackType.NAir || attackType == EAttackType.DAir || attackType == EAttackType.UAir ||
                attackType == EAttackType.FAir || attackType == EAttackType.BAir)
            {
                return(true);
            }
            break;
        }

        case EAttackClass.Strongs:
        {
            if (attackType == EAttackType.USoul || attackType == EAttackType.DSoul || attackType == EAttackType.FSoul)
            {
                return(true);
            }
            break;
        }

        case EAttackClass.Specials:
        {
            if (attackType == EAttackType.NSpec || attackType == EAttackType.FSpec || attackType == EAttackType.DSpec || attackType == EAttackType.USpec)
            {
                return(true);
            }
            break;
        }

        default: break;
        }

        return(false);
    }