moved star bottle change
This commit is contained in:
1 parent
3481b42120
commit
4c8b987ce1
2 files changed
+8
-11
No files matched your search
@@ -90,6 +90,14 @@ namespace CalamityMod.Buffs
|
||||
player.Calamity().shine = true;
|
||||
}
|
||||
|
||||
// Star in a Bottle provides Mana Regeneration Potion effect and cancels out the usual effect if you don't have it
|
||||
else if (type == BuffID.StarInBottle && !player.manaRegenBuff)
|
||||
{
|
||||
player.manaRegenBuff = true;
|
||||
player.manaRegenDelayBonus -= 0.5f;
|
||||
player.manaRegenBonus -= 10;
|
||||
}
|
||||
|
||||
// Beetle Shell DR is a full compensation, as the vanilla multiplicative DR is removed entirely.
|
||||
else if (type >= BuffID.BeetleEndurance1 && type <= BuffID.BeetleEndurance3 && player.beetleDefense)
|
||||
{
|
||||
|
||||
@@ -4445,17 +4445,6 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
//Star in a Bottle gives Mana Regeneration instead of it's usual effect when you don't already have Mana Regeneration
|
||||
if (!Player.manaRegenBuff && Player.HasBuff(BuffID.StarInBottle))
|
||||
{
|
||||
//Cancel out Star In A Bottle's normal effect
|
||||
Player.manaRegenDelayBonus -= 0.5f;
|
||||
Player.manaRegenBonus -= 10;
|
||||
//Apply Mana Regen Potion effect
|
||||
Player.manaRegenBuff = true;
|
||||
|
||||
}
|
||||
|
||||
ForceVariousEffects();
|
||||
}
|
||||
#endregion
|
||||
|
||||
Reference in new issue
Block a user