Minor Hive Mind edit
This commit is contained in:
1 parent
47fe35f192
commit
665c67b0be
1 file changed
+15
-15
+15
-15
@@ -917,14 +917,10 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
NPC.netSpam = 0;
|
||||
if (NPC.alpha > 0)
|
||||
{
|
||||
NPC.alpha -= lungeFade;
|
||||
if (NPC.alpha < 0)
|
||||
NPC.alpha = 0;
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
NPC.Center = player.Center + new Vector2(teleportRadius, 0).RotatedBy(rotation);
|
||||
|
||||
if (NPC.alpha == 255 - lungeFade)
|
||||
if (NPC.alpha == 255)
|
||||
{
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
@@ -939,6 +935,10 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
|
||||
rotation += rotationIncrement * rotationDirection;
|
||||
phase2timer = lungeDelay;
|
||||
|
||||
NPC.alpha -= lungeFade;
|
||||
if (NPC.alpha < 0)
|
||||
NPC.alpha = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -991,17 +991,13 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
|
||||
if (NPC.alpha > 0)
|
||||
{
|
||||
NPC.alpha -= masterMode ? 10 : 5;
|
||||
if (NPC.alpha < 0)
|
||||
NPC.alpha = 0;
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
NPC.Center = player.Center;
|
||||
NPC.position.Y += teleportRadius;
|
||||
}
|
||||
|
||||
if (NPC.alpha == 255 - (masterMode ? 10 : 5))
|
||||
if (NPC.alpha == 255)
|
||||
{
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
@@ -1014,6 +1010,10 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
}
|
||||
}
|
||||
|
||||
NPC.alpha -= masterMode ? 10 : 5;
|
||||
if (NPC.alpha < 0)
|
||||
NPC.alpha = 0;
|
||||
|
||||
NPC.netUpdate = true;
|
||||
NPC.netSpam = 0;
|
||||
}
|
||||
@@ -1076,10 +1076,6 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
|
||||
if (NPC.alpha > 0)
|
||||
{
|
||||
NPC.alpha -= masterMode ? 10 : 5;
|
||||
if (NPC.alpha < 0)
|
||||
NPC.alpha = 0;
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
NPC.Center = player.Center;
|
||||
@@ -1087,7 +1083,7 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
NPC.position.X += teleportRadius * rotationDirection;
|
||||
}
|
||||
|
||||
if (NPC.alpha == 255 - (masterMode ? 10 : 5))
|
||||
if (NPC.alpha == 255)
|
||||
{
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
@@ -1100,6 +1096,10 @@ namespace CalamityMod.NPCs.HiveMind
|
||||
}
|
||||
}
|
||||
|
||||
NPC.alpha -= masterMode ? 10 : 5;
|
||||
if (NPC.alpha < 0)
|
||||
NPC.alpha = 0;
|
||||
|
||||
NPC.netUpdate = true;
|
||||
NPC.netSpam = 0;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user