Exemple #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);
        }
 public float getDuration(ICharacterStatModifier target)
 {
     return(CharacterStatModifierUtil.ApplyFrenzyDurationBonuses(target, App.Binder.ConfigMeta.FRENZY_TIMER_MAX_SECONDS));
 }
Exemple #3
0
 public static List <KeyValuePair <PerkInstance, BuffSource> > GetPerkInstancesOfType(ICharacterStatModifier source, PerkType perkType)
 {
     sm_perkInstances.Clear();
     source.getPerkInstancesOfType(perkType, null, ref sm_perkInstances);
     return(sm_perkInstances);
 }
Exemple #4
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);
 }
Exemple #5
0
        public static double ApplySkillTypeDamageBonuses(ICharacterStatModifier source, SkillType skillType, double baseAmount)
        {
            float num = source.getSkillDamageModifier(skillType);

            return(baseAmount + (baseAmount * num));
        }
Exemple #6
0
 public static float ApplyFrenzyDurationBonuses(ICharacterStatModifier source, float baseDuration)
 {
     baseDuration += baseDuration * source.getGenericModifierForPerkType(PerkType.CoreBonusFrenzyDuration);
     return(baseDuration + (baseDuration * 0f));
 }
Exemple #7
0
        public static double ApplyDustBonuses(ICharacterStatModifier source, double baseAmount)
        {
            float num = source.getGenericModifierForPerkType(PerkType.DustBonusUniversal);

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