1 - Fixed some issues with my last commit.
This commit is contained in:
1 parent
7ef0ca977f
commit
d40e3c0096
3 files changed
+6
-10
No files matched your search
@@ -11,12 +11,11 @@ namespace CalamityMod.Buffs
|
||||
{
|
||||
public override void Update(int type, Player player, ref int buffIndex)
|
||||
{
|
||||
/*if (type == BuffID.HornetMinion || type == BuffID.ImpMinion || type == BuffID.SpiderMinion || type == BuffID.TwinEyesMinion ||
|
||||
type == BuffID.PirateMinion || type == BuffID.SharknadoMinion || type == BuffID.UFOMinion || type == BuffID.StardustMinion ||
|
||||
type == BuffID.StardustGuardianMinion || type == BuffID.StardustDragonMinion)
|
||||
Main.persistentBuff[type] = true;*/
|
||||
|
||||
if (type == BuffID.SugarRush)
|
||||
if (type == BuffID.Panic)
|
||||
{
|
||||
player.moveSpeed -= 0.5f;
|
||||
}
|
||||
else if (type == BuffID.SugarRush)
|
||||
{
|
||||
player.moveSpeed -= 0.1f;
|
||||
}
|
||||
|
||||
@@ -2927,9 +2927,6 @@ namespace CalamityMod.CalPlayer
|
||||
player.calmed = true;
|
||||
}
|
||||
|
||||
if (player.HasBuff(BuffID.Panic))
|
||||
player.moveSpeed -= 0.5f;
|
||||
|
||||
if (player.wellFed)
|
||||
player.moveSpeed -= 0.1f;
|
||||
|
||||
|
||||
@@ -238,7 +238,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
npc.rotation = npc.rotation.AngleTowards(rotation, rateOfRotation);
|
||||
|
||||
// Direction
|
||||
int direction = Math.Sign(player.Center.X - npc.Center.X);
|
||||
int direction = Math.Sign((AIState == (int)Phase.Deathray && !horizontalLaserSweep ? lookAt.X : player.Center.X) - npc.Center.X);
|
||||
if (direction != 0)
|
||||
{
|
||||
npc.direction = direction;
|
||||
|
||||
Reference in new issue
Block a user