private void GeneratePassiveAbility()
    {
        PassiveAbility ability = null;

        while (ability == null)
        {
            ability = PassiveAbilityGenerator.Generate();
        }
        passiveAbilities.Add(ability);
    }
Пример #2
0
    public static Ability Generate(int level = 1)
    {
        var roll = RNG.Int(0, 300);

        if (roll < 100)
        {
            return(PassiveAbilityGenerator.Generate(level));
        }
        else if (roll < 273)
        {
            return(AttackAbilityGenerator.Generate(level));
        }
        else
        {
            return(UtilityAbilityGenerator.Generate(level));
        }
    }