Exemple #1
0
    void ultimate(PrayerUltimateTypes type)
    {
        switch (type)
        {
        case PrayerUltimateTypes.Chivalry:
            player.defence.prayer = 1.15f;
            break;

        case PrayerUltimateTypes.Piety:
            player.defence.prayer = 1.25f;
            break;

        case PrayerUltimateTypes.Rigour:
            player.rangedAtkBonus = 1.20f;
            player.rangedStrBonus = 1.23f;
            player.defence.prayer = 1.25f;
            break;

        case PrayerUltimateTypes.Augury:
            player.magic.prayer   = 1.25f;
            player.defence.prayer = 1.25f;
            break;
        }

        if (type == PrayerUltimateTypes.Rigour)
        {
            OnPrayerChangedRigour.Invoke();
        }
        else
        {
            OnPrayerChanged.Invoke();
        }
    }
Exemple #2
0
    void disableUltimate(PrayerUltimateTypes type)
    {
        switch (type)
        {
        case PrayerUltimateTypes.Chivalry:
            player.defence.prayer = 1;
            break;

        case PrayerUltimateTypes.Piety:
            player.defence.prayer = 1;
            break;

        case PrayerUltimateTypes.Rigour:
            player.rangedAtkBonus = 1;
            player.rangedStrBonus = 1;
            player.defence.prayer = 1;
            break;

        case PrayerUltimateTypes.Augury:
            player.magic.prayer   = 1;
            player.defence.prayer = 1;
            break;
        }

        OnPrayerChanged.Invoke();
    }
Exemple #3
0
    void statAugment(PrayerAugmentTypes type, int percentage)
    {
        switch (type)
        {
        case PrayerAugmentTypes.Defence:
            player.defence.prayer = (percentage / 100f) + 1;
            break;

        case PrayerAugmentTypes.Magic:
            player.magic.prayer = (percentage / 100f) + 1;
            break;

        case PrayerAugmentTypes.Range:
            player.ranged.prayer = (percentage / 100f) + 1;
            break;
        }

        OnPrayerChanged.Invoke();
    }