bugfixes
This commit is contained in:
1 parent
2ce9ca1594
commit
247f03e278
3 files changed
+5
-4
No files matched your search
@@ -166,14 +166,14 @@ namespace CalamityMod.Items
|
||||
//Replace Crit Chance with Crit Damage on applicable tooltips
|
||||
if (CalamityItemSets.ShowScalingCritDamageTooltip[item.type])
|
||||
{
|
||||
float cdmg = 2f + Main.LocalPlayer.Calamity().critDamage + Main.LocalPlayer.GetTotalCritChance(TrueMeleeNoSpeedDamageClass.Instance) * 0.02f;
|
||||
float cdmg = 2f + Main.LocalPlayer.Calamity().critDamage + Main.LocalPlayer.GetTotalCritChance(item.DamageType) * 0.02f;
|
||||
tooltips.FirstOrDefault(x => x.Name == "CritChance")!.Text = CalamityUtils.GetText("Common.CritDamageTootip").Format(cdmg.ToPercent());
|
||||
}
|
||||
|
||||
//Add "Uses X Minion Slots right above "Uses X Mana"
|
||||
if (ItemID.Sets.StaffMinionSlotsRequired[item.type] > 0)
|
||||
if (ItemID.Sets.StaffMinionSlotsRequired[item.type] > 1 || ContentSamples.ProjectilesByType[item.shoot].minionSlots > 0)
|
||||
{
|
||||
tooltips.Insert(tooltips.FindIndex(0, (x) => x.Name == "Knockback") + 1, new(Mod, "Minions", CalamityUtils.GetText("Common.MinionSlotCost").Format(ItemID.Sets.StaffMinionSlotsRequired[item.type])));
|
||||
tooltips.Insert(tooltips.FindIndex(0, (x) => x.Name == "Knockback") + 1, new(Mod, "Minions", CalamityUtils.GetText(ItemID.Sets.StaffMinionSlotsRequired[item.type] > 1 ? "Common.MinionSlotCost" : "Common.MinionSlotCostSingle").Format(ItemID.Sets.StaffMinionSlotsRequired[item.type])));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ ArmorSetBonusKey: Press {0}
|
||||
DoubleTapDown: Double tap {0}
|
||||
// Miscellaneous stats/info
|
||||
MinionSlotCost: Uses {0} minion slots
|
||||
MinionSlotCostSingle: Uses {0} minion slot
|
||||
AggroBoost: Enemies are more likely to target you
|
||||
AggroReduction: Enemies are less likely to target you
|
||||
KnockbackImmunity: Grants immunity to knockback
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Utilities
|
||||
{
|
||||
internal static class HitModiferUtils
|
||||
{
|
||||
extension(NPC.HitModifiers modifiers)
|
||||
extension(ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
internal void ApplyScalingForcedCrit(Projectile Projectile)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user