Пример #1
0
        public static double ApplyCoinBonuses(ICharacterStatModifier source, CharacterType characterType, double baseAmount, bool includePassiveBonuses)
        {
            baseAmount += baseAmount * source.getGenericModifierForPerkType(PerkType.CoreBonusCoins);
            float num = source.getCharacterTypeCoinModifier(characterType) + source.getGenericModifierForPerkType(PerkType.CoinBonusActive);

            if (includePassiveBonuses)
            {
                num += source.getGenericModifierForPerkType(PerkType.CoinBonusPassive);
            }
            return((baseAmount + (baseAmount * num)) * App.Binder.ConfigMeta.COIN_GAIN_CONTROLLER);
        }
Пример #2
0
 public static double ApplyTokenBonuses(ICharacterStatModifier source, double baseAmount)
 {
     baseAmount += baseAmount * source.getGenericModifierForPerkType(PerkType.CoreBonusTokens);
     return((baseAmount + (baseAmount * 0.0)) * App.Binder.ConfigMeta.TOKEN_REWARD_CONTROLLER);
 }
Пример #3
0
 public static float ApplyFrenzyDurationBonuses(ICharacterStatModifier source, float baseDuration)
 {
     baseDuration += baseDuration * source.getGenericModifierForPerkType(PerkType.CoreBonusFrenzyDuration);
     return(baseDuration + (baseDuration * 0f));
 }
Пример #4
0
        public static double ApplyDustBonuses(ICharacterStatModifier source, double baseAmount)
        {
            float num = source.getGenericModifierForPerkType(PerkType.DustBonusUniversal);

            return(baseAmount + (baseAmount * num));
        }