- All items that need minion slots list their minion slot cost directly above "Uses X Mana" tooltip line - Adjusted logic for setting crit that scales dmg with crit chance to scale crit dmg stat, made into one extension that is used everywhere scaling force crit is used - Items that always use scaling force crit on all attacks now replace crit chance with crit dmg in tooltip - Omega Blue Tentacles now scaling force crit - Thread of Eradication now scaling force crits, rebalance to match
24 lines
627 B
C#
24 lines
627 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Terraria;
|
|
using Terraria.WorldBuilding;
|
|
|
|
namespace CalamityMod.Utilities
|
|
{
|
|
internal static class HitModiferUtils
|
|
{
|
|
extension(NPC.HitModifiers modifiers)
|
|
{
|
|
internal void ApplyScalingForcedCrit(Projectile Projectile)
|
|
{
|
|
modifiers.SetCrit();
|
|
float critDamage = Main.player[Projectile.owner].GetTotalCritChance(Projectile.DamageType) * 0.02f;
|
|
modifiers.CritDamage += critDamage;
|
|
}
|
|
}
|
|
}
|
|
}
|