Renamed AEW
No files matched your search
@@ -2605,7 +2605,7 @@ namespace CalamityMod
|
||||
{ NPCType<ThanatosHead>(), 41 },
|
||||
{ NPCType<Artemis>(), 41 },
|
||||
{ NPCType<Apollo>(), 41 },
|
||||
{ NPCType<EidolonWyrmHeadHuge>(), 42 },
|
||||
{ NPCType<AdultEidolonWyrmHead>(), 42 },
|
||||
{ NPCID.QueenSlimeBoss, 43 },
|
||||
{ NPCID.HallowBoss, 44 },
|
||||
{ NPCID.Deerclops, 45 }
|
||||
|
||||
@@ -620,7 +620,7 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<ThanatosBody2>(), 21600 },
|
||||
{ ModContent.NPCType<ThanatosTail>(), 21600 },
|
||||
{ ModContent.NPCType<SupremeCalamitas>(), 18000 }, // 5:00 (300 seconds)
|
||||
{ ModContent.NPCType<EidolonWyrmHeadHuge>(), 18000 } // 5:00 (300 seconds)
|
||||
{ ModContent.NPCType<AdultEidolonWyrmHead>(), 18000 } // 5:00 (300 seconds)
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
@@ -738,7 +738,7 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<ThanatosBody1>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<ThanatosBody2>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<ThanatosTail>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<EidolonWyrmHeadHuge>(), bitingEnemeyVelocityScale }
|
||||
{ ModContent.NPCType<AdultEidolonWyrmHead>(), bitingEnemeyVelocityScale }
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -290,7 +290,7 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<ThanatosBody2>(), 0.8 },
|
||||
{ ModContent.NPCType<ThanatosTail>(), 0.8 },
|
||||
|
||||
{ ModContent.NPCType<EidolonWyrmHeadHuge>(), 0.8 }
|
||||
{ ModContent.NPCType<AdultEidolonWyrmHead>(), 0.8 }
|
||||
};
|
||||
|
||||
EnemyStats.ContactDamageValues = new SortedDictionary<int, int[]>
|
||||
@@ -541,7 +541,7 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<ThanatosBody2>(), new int[] { 330, 528, 560, 576, 690 } },
|
||||
{ ModContent.NPCType<ThanatosTail>(), new int[] { 260, 416, 446, 464, 570 } },
|
||||
|
||||
{ ModContent.NPCType<EidolonWyrmHeadHuge>(), new int[] { 400, 800, 850, 880, 1000 } }
|
||||
{ ModContent.NPCType<AdultEidolonWyrmHead>(), new int[] { 400, 800, 850, 880, 1000 } }
|
||||
};
|
||||
|
||||
EnemyStats.ProjectileDamageValues = new SortedDictionary<Tuple<int, int>, int[]>
|
||||
@@ -809,10 +809,10 @@ namespace CalamityMod
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresTeslaCannon>(), ModContent.ProjectileType<AresTeslaOrb>()), new int[] { 288, 432, 454, 478, 696 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresGaussNuke>(), ModContent.ProjectileType<AresGaussNukeProjectile>()), new int[] { 450, 676, 710, 728, 1062 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<EidolonWyrmHeadHuge>(), ProjectileID.CultistBossIceMist), new int[] { 400, 600, 632, 648, 948 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<EidolonWyrmHeadHuge>(), ProjectileID.CultistBossLightningOrbArc), new int[] { 500, 752, 788, 808, 1182 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<EidolonWyrmHeadHuge>(), ProjectileID.AncientDoomProjectile), new int[] { 400, 600, 632, 648, 948 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<EidolonWyrmBodyAltHuge>(), ProjectileID.CultistBossFireBallClone), new int[] { 400, 600, 632, 648, 948 } }
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AdultEidolonWyrmHead>(), ProjectileID.CultistBossIceMist), new int[] { 400, 600, 632, 648, 948 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AdultEidolonWyrmHead>(), ProjectileID.CultistBossLightningOrbArc), new int[] { 500, 752, 788, 808, 1182 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AdultEidolonWyrmHead>(), ProjectileID.AncientDoomProjectile), new int[] { 400, 600, 632, 648, 948 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AdultEidolonWyrmBodyAlt>(), ProjectileID.CultistBossFireBallClone), new int[] { 400, 600, 632, 648, 948 } }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -625,7 +625,7 @@ namespace CalamityMod
|
||||
// Adult Eidolon Wyrm
|
||||
{
|
||||
BossDifficulty.TryGetValue("AdultEidolonWyrm", out float order);
|
||||
int type = NPCType<EidolonWyrmHeadHuge>();
|
||||
int type = NPCType<AdultEidolonWyrmHead>();
|
||||
int summon = ItemID.RodofDiscord;
|
||||
List<int> loot = new List<int>() { ItemType<Voidstone>(), ItemType<Lumenyl>(), ItemID.Ectoplasm, ItemType<EidolicWail>(), ItemType<SoulEdge>(), ItemType<HalibutCannon>(), ItemType<OmegaHealingPotion>() };
|
||||
List<int> collection = new List<int>() { };
|
||||
|
||||
@@ -500,7 +500,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
// Never drop anything if this Eidolon Wyrm is a minion during an AEW fight.
|
||||
var aewMinionCondition = npcLoot.DefineConditionalDropSet(EidolonWyrmHeadHuge.CanMinionsDropThings);
|
||||
var aewMinionCondition = npcLoot.DefineConditionalDropSet(AdultEidolonWyrmHead.CanMinionsDropThings);
|
||||
|
||||
// 30-40 Voidstone
|
||||
aewMinionCondition.Add(ModContent.ItemType<Voidstone>(), 1, 30, 40);
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
|
||||
private void UpdateAEWIndex()
|
||||
{
|
||||
int AEWType = ModContent.NPCType<EidolonWyrmHeadHuge>();
|
||||
int AEWType = ModContent.NPCType<AdultEidolonWyrmHead>();
|
||||
if (AEWIndex >= 0 && Main.npc[AEWIndex].active && Main.npc[AEWIndex].type == AEWType)
|
||||
{
|
||||
return;
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
|
||||
private bool UpdateAEWIndex()
|
||||
{
|
||||
int AEWType = ModContent.NPCType<EidolonWyrmHeadHuge>();
|
||||
int AEWType = ModContent.NPCType<AdultEidolonWyrmHead>();
|
||||
if (AEWIndex >= 0 && Main.npc[AEWIndex].active && Main.npc[AEWIndex].type == AEWType)
|
||||
{
|
||||
return true;
|
||||
|
||||
@@ -10,7 +10,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
public class EidolonWyrmBodyHuge : ModNPC
|
||||
public class AdultEidolonWyrmBody : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -71,7 +71,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
bool shouldDespawn = true;
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
{
|
||||
shouldDespawn = false;
|
||||
break;
|
||||
@@ -97,8 +97,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
float chargePhaseGateValue = malice ? 120f : death ? 180f : revenge ? 210f : expertMode ? 240f : 300f;
|
||||
float lightningChargePhaseGateValue = malice ? 90f : death ? 120f : revenge ? 135f : expertMode ? 150f : 180f;
|
||||
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.LightningCharge;
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.LightningCharge;
|
||||
bool invisiblePhase = calamityGlobalNPC_Head.newAI[0] == 1f || calamityGlobalNPC_Head.newAI[0] == 5f || calamityGlobalNPC_Head.newAI[0] == 7f;
|
||||
if (!invisiblePartOfChargePhase && !invisiblePartOfLightningChargePhase && !invisiblePhase)
|
||||
{
|
||||
@@ -116,8 +116,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
NPC.Opacity = 0f;
|
||||
}
|
||||
|
||||
bool spawnAncientLights = (calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) ||
|
||||
(calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f);
|
||||
bool spawnAncientLights = (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) ||
|
||||
(calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f);
|
||||
if (spawnAncientLights && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
if (Vector2.Distance(NPC.Center, Main.player[Main.npc[(int)NPC.ai[2]].target].Center) > 160f)
|
||||
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
@@ -10,7 +10,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
public class EidolonWyrmBodyAltHuge : ModNPC
|
||||
public class AdultEidolonWyrmBodyAlt : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -71,7 +71,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
bool shouldDespawn = true;
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
{
|
||||
shouldDespawn = false;
|
||||
break;
|
||||
@@ -97,8 +97,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
float chargePhaseGateValue = malice ? 120f : death ? 180f : revenge ? 210f : expertMode ? 240f : 300f;
|
||||
float lightningChargePhaseGateValue = malice ? 90f : death ? 120f : revenge ? 135f : expertMode ? 150f : 180f;
|
||||
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.LightningCharge;
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.LightningCharge;
|
||||
bool invisiblePhase = calamityGlobalNPC_Head.newAI[0] == 1f || calamityGlobalNPC_Head.newAI[0] == 5f || calamityGlobalNPC_Head.newAI[0] == 7f;
|
||||
if (!invisiblePartOfChargePhase && !invisiblePartOfLightningChargePhase && !invisiblePhase)
|
||||
{
|
||||
@@ -116,8 +116,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
NPC.Opacity = 0f;
|
||||
}
|
||||
|
||||
bool shootShadowFireballs = (calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) ||
|
||||
(calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f);
|
||||
bool shootShadowFireballs = (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) ||
|
||||
(calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f);
|
||||
if (shootShadowFireballs && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
if (Vector2.Distance(NPC.Center, Main.player[Main.npc[(int)NPC.ai[2]].target].Center) > 160f)
|
||||
@@ -185,9 +185,9 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
Vector2 center = new Vector2(NPC.Center.X, NPC.Center.Y);
|
||||
Vector2 vector11 = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / 2);
|
||||
Vector2 vector = center - screenPos;
|
||||
vector -= new Vector2(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltGlowHuge").Value.Width, ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltGlowHuge").Value.Height) * 0.5f;
|
||||
vector -= new Vector2(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAltGlow").Value.Width, ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAltGlow").Value.Height) * 0.5f;
|
||||
vector += vector11 * 1f + new Vector2(0f, 4f + NPC.gfxOffY);
|
||||
Main.spriteBatch.Draw(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmBodyAltGlowHuge").Value, vector,
|
||||
Main.spriteBatch.Draw(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAltGlow").Value, vector,
|
||||
new Microsoft.Xna.Framework.Rectangle?(NPC.frame), Color.White, NPC.rotation, vector11, 1f, spriteEffects, 0f);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
@@ -23,7 +23,7 @@ using CalamityMod.Sounds;
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class EidolonWyrmHeadHuge : ModNPC
|
||||
public class AdultEidolonWyrmHead : ModNPC
|
||||
{
|
||||
public enum Phase
|
||||
{
|
||||
@@ -225,12 +225,12 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
if (i >= 0 && i < minLength)
|
||||
{
|
||||
if (i % 2 == 0)
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<EidolonWyrmBodyHuge>(), NPC.whoAmI);
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<AdultEidolonWyrmBody>(), NPC.whoAmI);
|
||||
else
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<EidolonWyrmBodyAltHuge>(), NPC.whoAmI);
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<AdultEidolonWyrmBodyAlt>(), NPC.whoAmI);
|
||||
}
|
||||
else
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<EidolonWyrmTailHuge>(), NPC.whoAmI);
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<AdultEidolonWyrmTail>(), NPC.whoAmI);
|
||||
|
||||
Main.npc[lol].realLife = NPC.whoAmI;
|
||||
Main.npc[lol].ai[2] = NPC.whoAmI;
|
||||
@@ -272,7 +272,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
for (int a = 0; a < Main.maxNPCs; a++)
|
||||
{
|
||||
if (Main.npc[a].type == NPC.type || Main.npc[a].type == ModContent.NPCType<EidolonWyrmBodyAltHuge>() || Main.npc[a].type == ModContent.NPCType<EidolonWyrmBodyHuge>() || Main.npc[a].type == ModContent.NPCType<EidolonWyrmTailHuge>())
|
||||
if (Main.npc[a].type == NPC.type || Main.npc[a].type == ModContent.NPCType<AdultEidolonWyrmBodyAlt>() || Main.npc[a].type == ModContent.NPCType<AdultEidolonWyrmBody>() || Main.npc[a].type == ModContent.NPCType<AdultEidolonWyrmTail>())
|
||||
Main.npc[a].active = false;
|
||||
}
|
||||
}
|
||||
@@ -1367,7 +1367,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
return;
|
||||
}
|
||||
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmHeadGlowHuge").Value;
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHeadGlow").Value;
|
||||
SpriteEffects spriteEffects = NPC.spriteDirection == 1 ? SpriteEffects.FlipHorizontally : SpriteEffects.None;
|
||||
Vector2 center = NPC.Center;
|
||||
Main.spriteBatch.Draw(texture, center - screenPos, NPC.frame, Color.White, NPC.rotation, texture.Size() * 0.5f, NPC.scale, spriteEffects, 0f);
|
||||
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 630 B After Width: | Height: | Size: 630 B |
@@ -9,7 +9,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
public class EidolonWyrmTailHuge : ModNPC
|
||||
public class AdultEidolonWyrmTail : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -60,7 +60,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
bool shouldDespawn = true;
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
{
|
||||
shouldDespawn = false;
|
||||
break;
|
||||
@@ -86,8 +86,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
float chargePhaseGateValue = malice ? 120f : death ? 180f : revenge ? 210f : expertMode ? 240f : 300f;
|
||||
float lightningChargePhaseGateValue = malice ? 90f : death ? 120f : revenge ? 135f : expertMode ? 150f : 180f;
|
||||
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)EidolonWyrmHeadHuge.Phase.LightningCharge;
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.LightningCharge;
|
||||
bool invisiblePhase = calamityGlobalNPC_Head.newAI[0] == 1f || calamityGlobalNPC_Head.newAI[0] == 5f || calamityGlobalNPC_Head.newAI[0] == 7f;
|
||||
if (!invisiblePartOfChargePhase && !invisiblePartOfLightningChargePhase && !invisiblePhase)
|
||||
{
|
||||
@@ -150,9 +150,9 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
Vector2 center = new Vector2(NPC.Center.X, NPC.Center.Y);
|
||||
Vector2 vector11 = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / 2);
|
||||
Vector2 vector = center - screenPos;
|
||||
vector -= new Vector2(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmTailGlowHuge").Value.Width, ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmTailGlowHuge").Value.Height) * 0.5f;
|
||||
vector -= new Vector2(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTailGlow").Value.Width, ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTailGlow").Value.Height) * 0.5f;
|
||||
vector += vector11 * 1f + new Vector2(0f, 4f + NPC.gfxOffY);
|
||||
Main.spriteBatch.Draw(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/EidolonWyrmTailGlowHuge").Value, vector,
|
||||
Main.spriteBatch.Draw(ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTailGlow").Value, vector,
|
||||
new Microsoft.Xna.Framework.Rectangle?(NPC.frame), Color.White, NPC.rotation, vector11, 1f, spriteEffects, 0f);
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
@@ -511,7 +511,7 @@ namespace CalamityMod.NPCs
|
||||
ResetSavedIndex(ref draedonExoMechPrime, NPCType<AresBody>());
|
||||
ResetSavedIndex(ref draedonExoMechPrimePlasmaCannon, NPCType<AresPlasmaFlamethrower>());
|
||||
|
||||
ResetSavedIndex(ref adultEidolonWyrmHead, NPCType<EidolonWyrmHeadHuge>());
|
||||
ResetSavedIndex(ref adultEidolonWyrmHead, NPCType<AdultEidolonWyrmHead>());
|
||||
|
||||
// Reset the enraged state every frame. The expectation is that bosses will continuously set it back to true if necessary.
|
||||
CurrentlyEnraged = false;
|
||||
@@ -2768,7 +2768,7 @@ namespace CalamityMod.NPCs
|
||||
// Adult Wyrm Ancient Doom
|
||||
if (npc.type == NPCID.AncientDoom)
|
||||
{
|
||||
if (Main.npc[(int)npc.ai[0]].type == NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[(int)npc.ai[0]].type == NPCType<AdultEidolonWyrmHead>())
|
||||
return CultistAI.BuffedAncientDoomAI(npc, Mod);
|
||||
}
|
||||
|
||||
@@ -5781,7 +5781,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
return DownedBossSystem.downedSCal;
|
||||
}
|
||||
else if (type == NPCType<EidolonWyrmHeadHuge>())
|
||||
else if (type == NPCType<AdultEidolonWyrmHead>())
|
||||
{
|
||||
return DownedBossSystem.downedAdultEidolonWyrm;
|
||||
}
|
||||
@@ -5852,7 +5852,7 @@ namespace CalamityMod.NPCs
|
||||
if (target.damage > 0 && !target.boss && !target.friendly && !target.dontTakeDamage && target.type != NPCID.Creeper && target.type != NPCType<RavagerClawLeft>() &&
|
||||
target.type != NPCID.MourningWood && target.type != NPCID.Everscream && target.type != NPCID.SantaNK1 && target.type != NPCType<RavagerClawRight>() &&
|
||||
target.type != NPCType<Reaper>() && target.type != NPCType<Mauler>() && target.type != NPCType<EidolonWyrmHead>() && target.type != NPCID.GolemFistLeft && target.type != NPCID.GolemFistRight &&
|
||||
target.type != NPCType<EidolonWyrmHeadHuge>() && target.type != NPCType<ColossalSquid>() && target.type != NPCID.DD2Betsy && !CalamityLists.enemyImmunityList.Contains(target.type) && !AcidRainEvent.AllMinibosses.Contains(target.type))
|
||||
target.type != NPCType<AdultEidolonWyrmHead>() && target.type != NPCType<ColossalSquid>() && target.type != NPCID.DD2Betsy && !CalamityLists.enemyImmunityList.Contains(target.type) && !AcidRainEvent.AllMinibosses.Contains(target.type))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -345,7 +345,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
// Never drop anything if this Eidolon Wyrm is a minion during an AEW fight.
|
||||
var aewMinionCondition = npcLoot.DefineConditionalDropSet(EidolonWyrmHeadHuge.CanMinionsDropThings);
|
||||
var aewMinionCondition = npcLoot.DefineConditionalDropSet(AdultEidolonWyrmHead.CanMinionsDropThings);
|
||||
|
||||
LeadingConditionRule notDuringCultistFight = new LeadingConditionRule(DropHelper.If(() => !NPC.LunarApocalypseIsUp));
|
||||
notDuringCultistFight.Add(ModContent.ItemType<EidolonTablet>(), 4);
|
||||
|
||||
@@ -1090,12 +1090,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
float lifeRatio = Main.npc[(int)npc.ai[0]].life / (float)Main.npc[(int)npc.ai[0]].lifeMax;
|
||||
|
||||
bool phase2 = lifeRatio < 0.7f;
|
||||
bool phase3 = lifeRatio < (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<EidolonWyrmHeadHuge>() ? 0.6f : 0.55f);
|
||||
bool phase3 = lifeRatio < (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<AdultEidolonWyrmHead>() ? 0.6f : 0.55f);
|
||||
bool phase4 = lifeRatio < 0.4f;
|
||||
|
||||
bool kill = npc.ai[1] < 0f || !Main.npc[(int)npc.ai[0]].active;
|
||||
int target = Main.maxPlayers;
|
||||
if (Main.npc[(int)npc.ai[0]].type == NPCID.CultistBoss || Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[(int)npc.ai[0]].type == NPCID.CultistBoss || Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
{
|
||||
if (target == Main.maxPlayers)
|
||||
target = Main.npc[(int)npc.ai[0]].target;
|
||||
@@ -1106,7 +1106,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (phase4 || death)
|
||||
rateOfChange = 3;
|
||||
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
npc.dontTakeDamage = true;
|
||||
}
|
||||
else
|
||||
@@ -1128,7 +1128,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
double deg = npc.ai[3];
|
||||
double rad = deg * (Math.PI / 180);
|
||||
double dist = 550;
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
{
|
||||
float aiGateValue = Main.npc[(int)npc.ai[0]].Calamity().newAI[2] - 30f;
|
||||
int ancientDoomScale = (int)(aiGateValue / 120f);
|
||||
@@ -1181,7 +1181,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
int damage = npc.GetProjectileDamage(type);
|
||||
|
||||
// Triple damage if the Adult Eidolon Wyrm is alive
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<EidolonWyrmHeadHuge>())
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
damage *= 3;
|
||||
|
||||
kill = true;
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Systems
|
||||
{
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType<EidolonWyrmHeadHuge>());
|
||||
public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType<AdultEidolonWyrmHead>());
|
||||
|
||||
public override void SpecialVisuals(Player player)
|
||||
{
|
||||
|
||||
@@ -426,7 +426,7 @@ namespace CalamityMod.Systems
|
||||
|
||||
bool adultWyrmAlive = CalamityGlobalNPC.adultEidolonWyrmHead != -1 && Main.npc[CalamityGlobalNPC.adultEidolonWyrmHead].active;
|
||||
if (!adultWyrmAlive)
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<EidolonWyrmHeadHuge>());
|
||||
NPC.SpawnOnPlayer(player.whoAmI, ModContent.NPCType<AdultEidolonWyrmHead>());
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
@@ -132,7 +132,7 @@ namespace CalamityMod.UI
|
||||
39 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType<Yharon>()]].Value,
|
||||
40 => ModContent.Request<Texture2D>("CalamityMod/NPCs/SupremeCalamitas/HoodlessHeadIcon").Value,
|
||||
41 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType<AresBody>()]].Value,
|
||||
42 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType<EidolonWyrmHeadHuge>()]].Value,
|
||||
42 => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[ModContent.NPCType<AdultEidolonWyrmHead>()]].Value,
|
||||
43 => TextureAssets.NpcHeadBoss[38].Value, // Queen Slime
|
||||
44 => TextureAssets.NpcHeadBoss[37].Value, // Empress of Light
|
||||
45 => TextureAssets.NpcHeadBoss[39].Value, // Deerclops
|
||||
|
||||
@@ -186,10 +186,10 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<ThanatosBody2>(), new Tuple<bool, int[]>(true, new int[] { }) },
|
||||
{ ModContent.NPCType<ThanatosTail>(), new Tuple<bool, int[]>(true, new int[] { }) },
|
||||
|
||||
{ ModContent.NPCType<EidolonWyrmHeadHuge>(), new Tuple<bool, int[]>(false, CalamityMod.abyssEnemyImmunities) },
|
||||
{ ModContent.NPCType<EidolonWyrmBodyHuge>(), new Tuple<bool, int[]>(true, new int[] { }) },
|
||||
{ ModContent.NPCType<EidolonWyrmBodyAltHuge>(), new Tuple<bool, int[]>(true, new int[] { }) },
|
||||
{ ModContent.NPCType<EidolonWyrmTailHuge>(), new Tuple<bool, int[]>(true, new int[] { }) },
|
||||
{ ModContent.NPCType<AdultEidolonWyrmHead>(), new Tuple<bool, int[]>(false, CalamityMod.abyssEnemyImmunities) },
|
||||
{ ModContent.NPCType<AdultEidolonWyrmBody>(), new Tuple<bool, int[]>(true, new int[] { }) },
|
||||
{ ModContent.NPCType<AdultEidolonWyrmBodyAlt>(), new Tuple<bool, int[]>(true, new int[] { }) },
|
||||
{ ModContent.NPCType<AdultEidolonWyrmTail>(), new Tuple<bool, int[]>(true, new int[] { }) },
|
||||
|
||||
{ ModContent.NPCType<AcidEel>(), new Tuple<bool, int[]>(false, CalamityMod.sulphurEnemyImmunities) },
|
||||
{ ModContent.NPCType<BloodwormFleeing>(), new Tuple<bool, int[]>(false, CalamityMod.sulphurEnemyImmunities) },
|
||||
|
||||