コード例 #1
0
        public override float RecalculateUtilityCooldown(float baseValue, CharacterBody character)
        {
            float CoolDownMultiplier = 1f;

            CoolDownMultiplier += ModItemManager.GetBonusForStat(character, StatIndex.CoolDownSpecial);

            CoolDownMultiplier *= ModItemManager.GetMultiplierForStatCD(character, StatIndex.CoolDownSpecial);
            return(CoolDownMultiplier);
        }
コード例 #2
0
        public override float RecalculateGeneralCooldown(float baseValue, CharacterBody character)
        {
            float CoolDownMultiplier = 1f;

            CoolDownMultiplier += ModItemManager.GetBonusForStat(character, StatIndex.GlobalCoolDown);

            CoolDownMultiplier *= ModItemManager.GetMultiplierForStatCD(character, StatIndex.GlobalCoolDown);

            if (character.HasBuff(BuffIndex.GoldEmpowered))
            {
                CoolDownMultiplier *= 0.25f;
            }
            if (character.HasBuff(BuffIndex.NoCooldowns))
            {
                CoolDownMultiplier = 0.0f;
            }


            return(CoolDownMultiplier);
        }