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)); }
public static List <KeyValuePair <PerkInstance, BuffSource> > GetPerkInstancesOfType(ICharacterStatModifier source, PerkType perkType) { sm_perkInstances.Clear(); source.getPerkInstancesOfType(perkType, null, ref sm_perkInstances); return(sm_perkInstances); }
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); }
public static double ApplySkillTypeDamageBonuses(ICharacterStatModifier source, SkillType skillType, double baseAmount) { float num = source.getSkillDamageModifier(skillType); return(baseAmount + (baseAmount * num)); }
public static float ApplyFrenzyDurationBonuses(ICharacterStatModifier source, float baseDuration) { baseDuration += baseDuration * source.getGenericModifierForPerkType(PerkType.CoreBonusFrenzyDuration); return(baseDuration + (baseDuration * 0f)); }
public static double ApplyDustBonuses(ICharacterStatModifier source, double baseAmount) { float num = source.getGenericModifierForPerkType(PerkType.DustBonusUniversal); return(baseAmount + (baseAmount * num)); }