1 - Archery Potion arrow damage bonus is nerfed directly in UpdateBuffs instead of ModifyWeaponDamage.
This commit is contained in:
1 parent
c7c2eaeb22
commit
f96da8cf3f
3 files changed
+7
-9
No files matched your search
@@ -10,7 +10,11 @@ namespace CalamityMod.Buffs
|
||||
{
|
||||
public override void Update(int type, Player player, ref int buffIndex)
|
||||
{
|
||||
if (type == BuffID.Endurance)
|
||||
if (type == BuffID.Archery)
|
||||
{
|
||||
player.arrowDamage *= 0.875f;
|
||||
}
|
||||
else if (type == BuffID.Endurance)
|
||||
{
|
||||
player.endurance -= 0.05f;
|
||||
}
|
||||
@@ -94,8 +98,6 @@ namespace CalamityMod.Buffs
|
||||
|
||||
public override void ModifyBuffTip(int type, ref string tip, ref int rare)
|
||||
{
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
|
||||
// Vanilla buffs
|
||||
switch (type)
|
||||
{
|
||||
@@ -108,7 +110,7 @@ namespace CalamityMod.Buffs
|
||||
break;
|
||||
|
||||
case BuffID.Archery:
|
||||
tip = "20% increased arrow speed and 1.05x arrow damage";
|
||||
tip = "20% increased arrow speed and 5% increased arrow damage";
|
||||
break;
|
||||
|
||||
case BuffID.Swiftness:
|
||||
|
||||
@@ -886,10 +886,6 @@ namespace CalamityMod.Items
|
||||
if (player.yoyoGlove && ItemID.Sets.Yoyo[item.type])
|
||||
damage *= 0.66f;
|
||||
|
||||
// Nerf archery potion damage buff from 1.2x to 1.05x.
|
||||
if (item.useAmmo == AmmoID.Arrow && player.archery)
|
||||
damage *= 0.875f;
|
||||
|
||||
if (item.type < ItemID.Count)
|
||||
return;
|
||||
|
||||
|
||||
@@ -291,7 +291,7 @@ namespace CalamityMod.Items
|
||||
|
||||
// Nerfed Archery Potion tooltip
|
||||
if (item.type == ItemID.ArcheryPotion)
|
||||
EditTooltipByNum(0, (line) => line.Text = "20% increased arrow speed and 1.05x arrow damage");
|
||||
EditTooltipByNum(0, (line) => line.Text = "20% increased arrow speed and 5% increased arrow damage");
|
||||
|
||||
// Nerfed Swiftness Potion tooltip
|
||||
if (item.type == ItemID.SwiftnessPotion)
|
||||
|
||||
Reference in new issue
Block a user