Fix Laudanum exponentially exploding buff timers
This commit is contained in:
1 parent
f2019b1997
commit
46e7ebf06c
1 file changed
+2
-1
@@ -1252,8 +1252,9 @@ namespace CalamityMod.CalPlayer
|
||||
hasBuff == BuffID.Ichor || hasBuff == BuffID.Chilled || hasBuff == BuffID.BrokenArmor || hasBuff == BuffID.Weak ||
|
||||
hasBuff == BuffID.Slow || hasBuff == BuffID.Confused || hasBuff == BuffID.Blackout || hasBuff == BuffID.Darkness)
|
||||
{
|
||||
// Every other frame, increase the buff timer by one frame. Thus, the buff lasts twice as long.
|
||||
if (player.miscCounter % 2 == 0)
|
||||
player.buffTime[l] *= 2;
|
||||
player.buffTime[l] += 1;
|
||||
}
|
||||
|
||||
switch (hasBuff)
|
||||
|
||||
Reference in new issue
Block a user