The Draedon Summoner works for Ares

This commit is contained in:
Dominic committed 2021-08-09 16:03:23 -05:00
1 parent 555a92c38b
commit 38bffec24a
3 files changed
+6 -3

No files matched your search

+2 -1
View File
@@ -1,3 +1,4 @@
using CalamityMod.NPCs.ExoMechs.Ares;
using CalamityMod.NPCs.ExoMechs.Thanatos;
using Microsoft.Xna.Framework;
using Terraria;
@@ -106,7 +107,7 @@ namespace CalamityMod.NPCs.ExoMechs
thanatos.velocity = thanatos.SafeDirectionTo(PlayerToFollow.Center) * 40f;
break;
case ExoMech.Prime:
//CalamityUtils.SpawnBossBetter(aresSpawnPosition, ModContent.NPCType<Ares>());
CalamityUtils.SpawnBossBetter(aresSpawnPosition, ModContent.NPCType<AresBody>());
break;
case ExoMech.Twins:
//CalamityUtils.SpawnBossBetter(artemisSpawnPosition, ModContent.NPCType<Artemis>());
+3 -1
View File
@@ -13,6 +13,7 @@ using CalamityMod.NPCs.Cryogen;
using CalamityMod.NPCs.DesertScourge;
using CalamityMod.NPCs.DevourerofGods;
using CalamityMod.NPCs.ExoMechs;
using CalamityMod.NPCs.ExoMechs.Ares;
using CalamityMod.NPCs.ExoMechs.Thanatos;
using CalamityMod.NPCs.HiveMind;
using CalamityMod.NPCs.NormalNPCs;
@@ -165,7 +166,8 @@ namespace CalamityMod.World
public static Vector2 DraedonSummonPosition = Vector2.Zero;
public static bool AbleToSummonDraedon
{
get => DraedonSummonCountdown <= 0 && !NPC.AnyNPCs(ModContent.NPCType<Draedon>()) && !NPC.AnyNPCs(ModContent.NPCType<ThanatosHead>());
get => DraedonSummonCountdown <= 0 && !NPC.AnyNPCs(ModContent.NPCType<Draedon>()) &&
!NPC.AnyNPCs(ModContent.NPCType<ThanatosHead>()) && !NPC.AnyNPCs(ModContent.NPCType<AresBody>());
}
public const int DraedonSummonCountdownMax = 260;
+1 -1
View File
@@ -134,7 +134,7 @@ namespace CalamityMod.World
}
if (DraedonSummonCountdown == 0)
NPC.NewNPC((int)DraedonSummonPosition.X, (int)DraedonSummonPosition.Y, ModContent.NPCType<Draedon>());
NPC.NewNPC((int)DraedonSummonPosition.X, (int)DraedonSummonPosition.Y, ModContent.NPCType<Draedon>(), 0, 0f, (int)DraedonMechToSummon);
}
#endregion Handle Draedon Summoning