silva stun and exo freeze affect players
This commit is contained in:
1 parent
3c0959e700
commit
c5630e8975
4 files changed
+23
-1
No files matched your search
@@ -22,5 +22,10 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().eFreeze = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,5 +22,10 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().silvaStun = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -534,6 +534,8 @@ namespace CalamityMod.CalPlayer
|
||||
public bool clamity = false;
|
||||
public bool sulphurPoison = false;
|
||||
public bool nightwither = false;
|
||||
public bool eFreeze = false;
|
||||
public bool silvaStun = false;
|
||||
|
||||
// Buff
|
||||
public bool trinketOfChiBuff = false;
|
||||
@@ -1281,6 +1283,8 @@ namespace CalamityMod.CalPlayer
|
||||
snowmanNoseless = false;
|
||||
sulphurPoison = false;
|
||||
nightwither = false;
|
||||
eFreeze = false;
|
||||
silvaStun = false;
|
||||
|
||||
revivify = false;
|
||||
trinketOfChiBuff = false;
|
||||
@@ -1513,6 +1517,8 @@ namespace CalamityMod.CalPlayer
|
||||
eclipseMirrorCooldown = false;
|
||||
sulphurPoison = false;
|
||||
nightwither = false;
|
||||
eFreeze = false;
|
||||
silvaStun = false;
|
||||
#endregion
|
||||
|
||||
#region Rogue
|
||||
@@ -8063,7 +8069,7 @@ namespace CalamityMod.CalPlayer
|
||||
fullBright = true;
|
||||
}
|
||||
}
|
||||
if (gState || cDepth)
|
||||
if (eFreeze || silvaStun || gState || cDepth)
|
||||
{
|
||||
if (noRogueStealth)
|
||||
{
|
||||
|
||||
@@ -2257,6 +2257,12 @@ namespace CalamityMod.CalPlayer
|
||||
player.velocity.X = 0f;
|
||||
}
|
||||
|
||||
if (modPlayer.eFreeze || modPlayer.silvaStun)
|
||||
{
|
||||
player.velocity.Y = 0f;
|
||||
player.velocity.X = 0f;
|
||||
}
|
||||
|
||||
if (modPlayer.eGravity)
|
||||
{
|
||||
if (player.wingTimeMax < 0)
|
||||
|
||||
Reference in new issue
Block a user