Another Deus fix.
This commit is contained in:
1 parent
77ee1ec737
commit
fea07707aa
2 files changed
+9
-8
No files matched your search
@@ -864,8 +864,15 @@ namespace CalamityMod.NPCs.CalamityAIs.CalamityBossAIs
|
||||
}
|
||||
}
|
||||
|
||||
// Play spawn sound on Deus on the first frame because otherwise the sound wouldn't play properly in multiplayer
|
||||
if (calamityGlobalNPC.newAI[1] == 0f && !doubleWormPhase)
|
||||
{
|
||||
SoundEngine.PlaySound(AstrumDeusHead.SpawnSound, npc.Center);
|
||||
calamityGlobalNPC.newAI[1] = 1f;
|
||||
}
|
||||
|
||||
// 5 seconds of resistance in phase 2, 10 seconds in phase 1, to prevent spawn killing
|
||||
if (calamityGlobalNPC.newAI[1] < resistanceTime && ((npc.position - npc.oldPosition).Length() > 2f || calamityGlobalNPC.newAI[1] > 0f))
|
||||
if (calamityGlobalNPC.newAI[1] < resistanceTime && ((npc.position - npc.oldPosition).Length() > 2f || calamityGlobalNPC.newAI[1] > 1f))
|
||||
calamityGlobalNPC.newAI[1] += 1f;
|
||||
|
||||
// Calculate contact damage based on velocity
|
||||
|
||||
@@ -46,13 +46,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
int idx = NPC.NewNPC(Projectile.GetSource_FromThis(), (int)Projectile.Center.X, (int)Projectile.Center.Y - (int)MaxUpwardRise, ModContent.NPCType<AstrumDeusHead>(), 1);
|
||||
if (idx != -1)
|
||||
{
|
||||
SoundEngine.PlaySound(AstrumDeusHead.SpawnSound, Projectile.Center);
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
CalamityUtils.BossAwakenMessage(idx);
|
||||
else
|
||||
NetMessage.SendData(MessageID.SyncNPC, -1, -1, null, idx);
|
||||
}
|
||||
CalamityUtils.BossAwakenMessage(idx);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user