alcohols make you look drunk
...and apparently better at fishing
This commit is contained in:
1 parent
6049dd0399
commit
aefd3a4046
3 files changed
+18
-9
No files matched your search
@@ -48,6 +48,12 @@ namespace CalamityMod.Buffs
|
||||
{
|
||||
player.moveSpeed -= 0.1f;
|
||||
}
|
||||
else if (type == BuffID.Tipsy)
|
||||
{
|
||||
player.statDefense += 4;
|
||||
player.GetCritChance<MeleeDamageClass>() -= 2;
|
||||
player.GetAttackSpeed<MeleeDamageClass>() -= 0.1f;
|
||||
}
|
||||
else if (type == BuffID.WellFed)
|
||||
{
|
||||
player.moveSpeed -= 0.15f;
|
||||
|
||||
@@ -216,6 +216,17 @@ namespace CalamityMod.CalPlayer
|
||||
if (evergreenGin)
|
||||
totalNegativeLifeRegen += EvergreenGin.RegenLoss;
|
||||
|
||||
// Blanket effect for all alcohols
|
||||
if (alcoholPoisonLevel > 0)
|
||||
{
|
||||
// This applies the tipsy eyes effect
|
||||
Player.tipsy = true;
|
||||
|
||||
// This one is checked through a buff so we have to counter that
|
||||
if (!Player.HasBuff(BuffID.Tipsy))
|
||||
Player.fishingSkill += 5;
|
||||
|
||||
}
|
||||
if (alcoholPoisonLevel > (cirrusDress ? 5 : 3))
|
||||
{
|
||||
// Independently of Calamity's nerfs to Nebula life regen, it is disabled entirely by alcohol poisoning.
|
||||
|
||||
@@ -3133,14 +3133,6 @@ namespace CalamityMod.CalPlayer
|
||||
if (whiteWine)
|
||||
Player.GetDamage<MagicDamageClass>() += WhiteWine.MagicDamageBoost;
|
||||
|
||||
// Adjustment to the Tipsy debuff
|
||||
if (Player.tipsy)
|
||||
{
|
||||
Player.statDefense += 4;
|
||||
Player.GetCritChance<MeleeDamageClass>() -= 2;
|
||||
Player.GetAttackSpeed<MeleeDamageClass>() -= 0.1f;
|
||||
}
|
||||
|
||||
if (giantPearl)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
@@ -4413,7 +4405,7 @@ namespace CalamityMod.CalPlayer
|
||||
Player.statDefense -= (int)(Player.statDefense * WhiteWine.DefenseLossPercent);
|
||||
}
|
||||
|
||||
if (Player.tipsy)
|
||||
if (Player.HasBuff(BuffID.Tipsy))
|
||||
{
|
||||
if (Player.statDefense > 0)
|
||||
Player.statDefense -= (int)(Player.statDefense * 0.05);
|
||||
|
||||
Reference in new issue
Block a user