Renamed Cosmic Guardians

This commit is contained in:
Ozzatron committed 2022-06-11 23:53:32 -04:00
1 parent c5086ca106
commit 0f0ab3ee03
16 files changed
+35 -35

No files matched your search

+9 -9
View File
@@ -2012,9 +2012,9 @@ namespace CalamityMod
NPCType<StormWeaverHead>(),
NPCType<StormWeaverBody>(),
NPCType<StormWeaverTail>(),
NPCType<DevourerofGodsHead2>(),
NPCType<DevourerofGodsBody2>(),
NPCType<DevourerofGodsTail2>(),
NPCType<CosmicGuardianHead>(),
NPCType<CosmicGuardianBody>(),
NPCType<CosmicGuardianTail>(),
NPCType<ThanatosHead>(),
NPCType<ThanatosBody1>(),
NPCType<ThanatosBody2>(),
@@ -2101,9 +2101,9 @@ namespace CalamityMod
CosmicGuardianIDs = new List<int>
{
NPCType<DevourerofGodsHead2>(),
NPCType<DevourerofGodsBody2>(),
NPCType<DevourerofGodsTail2>()
NPCType<CosmicGuardianHead>(),
NPCType<CosmicGuardianBody>(),
NPCType<CosmicGuardianTail>()
};
AquaticScourgeIDs = new List<int>
@@ -2687,9 +2687,9 @@ namespace CalamityMod
NPCType<ProvSpawnHealer>(),
NPCType<DarkEnergy>(),
NPCType<CosmicLantern>(),
NPCType<DevourerofGodsHead2>(),
NPCType<DevourerofGodsBody2>(),
NPCType<DevourerofGodsTail2>(),
NPCType<CosmicGuardianHead>(),
NPCType<CosmicGuardianBody>(),
NPCType<CosmicGuardianTail>(),
NPCType<SupremeCataclysm>(),
NPCType<SupremeCatastrophe>()
};
+3 -3
View File
@@ -727,9 +727,9 @@ namespace CalamityMod
{ ModContent.NPCType<DevourerofGodsHead>(), bitingEnemeyVelocityScale },
{ ModContent.NPCType<DevourerofGodsBody>(), velocityScaleMin },
{ ModContent.NPCType<DevourerofGodsTail>(), velocityScaleMin },
{ ModContent.NPCType<DevourerofGodsHead2>(), bitingEnemeyVelocityScale },
{ ModContent.NPCType<DevourerofGodsBody2>(), velocityScaleMin },
{ ModContent.NPCType<DevourerofGodsTail2>(), velocityScaleMin },
{ ModContent.NPCType<CosmicGuardianHead>(), bitingEnemeyVelocityScale },
{ ModContent.NPCType<CosmicGuardianBody>(), velocityScaleMin },
{ ModContent.NPCType<CosmicGuardianTail>(), velocityScaleMin },
{ ModContent.NPCType<Yharon>(), velocityScaleMin },
{ ModContent.NPCType<SupremeCalamitas>(), velocityScaleMin },
{ ModContent.NPCType<Apollo>(), velocityScaleMin }, // Increases in phase 2
+3 -3
View File
@@ -525,9 +525,9 @@ namespace CalamityMod
{ ModContent.NPCType<DevourerofGodsHead>(), new int[] { 350, 700, 750, 780, 880 } },
{ ModContent.NPCType<DevourerofGodsBody>(), new int[] { 220, 374, 425, 442, 561 } },
{ ModContent.NPCType<DevourerofGodsTail>(), new int[] { 180, 306, 340, 357, 459 } },
{ ModContent.NPCType<DevourerofGodsHead2>(), new int[] { 180, 360, 396, 420, 510 } },
{ ModContent.NPCType<DevourerofGodsBody2>(), new int[] { 130, 260, 290, 320, 420 } },
{ ModContent.NPCType<DevourerofGodsTail2>(), new int[] { 100, 200, 230, 260, 330 } },
{ ModContent.NPCType<CosmicGuardianHead>(), new int[] { 180, 360, 396, 420, 510 } },
{ ModContent.NPCType<CosmicGuardianBody>(), new int[] { 130, 260, 290, 320, 420 } },
{ ModContent.NPCType<CosmicGuardianTail>(), new int[] { 100, 200, 230, 260, 330 } },
{ ModContent.NPCType<Yharon>(), new int[] { 330, 528, 560, 576, 690 } },
+1 -1
View File
@@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.Melee
if (crit)
damage /= 2;
bool isDoGSegment = target.type == ModContent.NPCType<DevourerofGodsBody>() || target.type == ModContent.NPCType<DevourerofGodsBody2>();
bool isDoGSegment = target.type == ModContent.NPCType<DevourerofGodsBody>() || target.type == ModContent.NPCType<CosmicGuardianBody>();
if (!isDoGSegment || Main.rand.NextBool(3))
{
CalamityPlayer.HorsemansBladeOnHit(player, target.whoAmI, damage, knockback, 0, ModContent.ProjectileType<MourningSkull>());
@@ -9,7 +9,7 @@ using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.NPCs.DevourerofGods
{
public class DevourerofGodsBody2 : ModNPC
public class CosmicGuardianBody : ModNPC
{
public int invinceTime = 180;
@@ -83,7 +83,7 @@ namespace CalamityMod.NPCs.DevourerofGods
bool shouldDespawn = true;
for (int i = 0; i < Main.maxNPCs; i++)
{
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<DevourerofGodsHead2>())
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<CosmicGuardianHead>())
{
shouldDespawn = false;
break;
@@ -153,7 +153,7 @@ namespace CalamityMod.NPCs.DevourerofGods
vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY);
spriteBatch.Draw(texture2D15, vector43, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector11, NPC.scale, spriteEffects, 0f);
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/DevourerofGods/DevourerofGodsBody2Glow").Value;
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/DevourerofGods/CosmicGuardianBodyGlow").Value;
Color color37 = Color.Lerp(Color.White, Color.Fuchsia, 0.5f);
spriteBatch.Draw(texture2D15, vector43, NPC.frame, color37, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f);
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 599 B

After

Width:  |  Height:  |  Size: 599 B

@@ -13,7 +13,7 @@ using Terraria.ModLoader;
namespace CalamityMod.NPCs.DevourerofGods
{
public class DevourerofGodsHead2 : ModNPC
public class CosmicGuardianHead : ModNPC
{
private bool tail = false;
private const int minLength = 10;
@@ -112,11 +112,11 @@ namespace CalamityMod.NPCs.DevourerofGods
int segment;
if (segmentSpawn >= 0 && segmentSpawn < minLength)
{
segment = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<DevourerofGodsBody2>(), NPC.whoAmI);
segment = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<CosmicGuardianBody>(), NPC.whoAmI);
}
else
{
segment = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<DevourerofGodsTail2>(), NPC.whoAmI);
segment = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<CosmicGuardianTail>(), NPC.whoAmI);
}
Main.npc[segment].realLife = NPC.whoAmI;
Main.npc[segment].ai[2] = NPC.whoAmI;
@@ -145,7 +145,7 @@ namespace CalamityMod.NPCs.DevourerofGods
{
for (int a = 0; a < Main.maxNPCs; a++)
{
if (Main.npc[a].type == NPC.type || Main.npc[a].type == ModContent.NPCType<DevourerofGodsBody2>() || Main.npc[a].type == ModContent.NPCType<DevourerofGodsTail2>())
if (Main.npc[a].type == NPC.type || Main.npc[a].type == ModContent.NPCType<CosmicGuardianBody>() || Main.npc[a].type == ModContent.NPCType<CosmicGuardianTail>())
Main.npc[a].active = false;
}
}
@@ -171,7 +171,7 @@ namespace CalamityMod.NPCs.DevourerofGods
{
for (int a = 0; a < Main.maxNPCs; a++)
{
if (Main.npc[a].type == NPC.type || Main.npc[a].type == ModContent.NPCType<DevourerofGodsBody2>() || Main.npc[a].type == ModContent.NPCType<DevourerofGodsTail2>())
if (Main.npc[a].type == NPC.type || Main.npc[a].type == ModContent.NPCType<CosmicGuardianBody>() || Main.npc[a].type == ModContent.NPCType<CosmicGuardianTail>())
Main.npc[a].active = false;
}
}
@@ -347,12 +347,12 @@ namespace CalamityMod.NPCs.DevourerofGods
vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY);
spriteBatch.Draw(texture2D15, vector43, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector11, NPC.scale, spriteEffects, 0f);
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/DevourerofGods/DevourerofGodsHead2Glow").Value;
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/DevourerofGods/CosmicGuardianHeadGlow").Value;
Color color37 = Color.Lerp(Color.White, Color.Fuchsia, 0.5f);
spriteBatch.Draw(texture2D15, vector43, NPC.frame, color37, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f);
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/DevourerofGods/DevourerofGodsHead2Glow2").Value;
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/DevourerofGods/CosmicGuardianHeadGlow2").Value;
color37 = Color.Lerp(Color.White, Color.Cyan, 0.5f);
spriteBatch.Draw(texture2D15, vector43, NPC.frame, color37, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f);
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 366 B

After

Width:  |  Height:  |  Size: 366 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 573 B

After

Width:  |  Height:  |  Size: 573 B

@@ -9,7 +9,7 @@ using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.NPCs.DevourerofGods
{
public class DevourerofGodsTail2 : ModNPC
public class CosmicGuardianTail : ModNPC
{
public int invinceTime = 180;
@@ -80,7 +80,7 @@ namespace CalamityMod.NPCs.DevourerofGods
bool shouldDespawn = true;
for (int i = 0; i < Main.maxNPCs; i++)
{
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<DevourerofGodsHead2>())
if (Main.npc[i].active && Main.npc[i].type == ModContent.NPCType<CosmicGuardianHead>())
{
shouldDespawn = false;
break;
@@ -150,7 +150,7 @@ namespace CalamityMod.NPCs.DevourerofGods
vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY);
spriteBatch.Draw(texture2D15, vector43, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector11, NPC.scale, spriteEffects, 0f);
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/DevourerofGods/DevourerofGodsTail2Glow").Value;
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/DevourerofGods/CosmicGuardianTailGlow").Value;
Color color37 = Color.Lerp(Color.White, Color.Cyan, 0.5f);
spriteBatch.Draw(texture2D15, vector43, NPC.frame, color37, NPC.rotation, vector11, NPC.scale, spriteEffects, 0f);
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 640 B

After

Width:  |  Height:  |  Size: 640 B

+3 -3
View File
@@ -646,7 +646,7 @@ namespace CalamityMod.NPCs.DevourerofGods
SoundEngine.PlaySound(AttackSound, player.position);
for (int i = 0; i < 3; i++)
NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType<DevourerofGodsHead2>());
NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType<CosmicGuardianHead>());
}
spawnedGuardians3 = true;
@@ -1378,7 +1378,7 @@ namespace CalamityMod.NPCs.DevourerofGods
SoundEngine.PlaySound(AttackSound, player.position);
for (int i = 0; i < 2; i++)
NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType<DevourerofGodsHead2>());
NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType<CosmicGuardianHead>());
}
}
}
@@ -1399,7 +1399,7 @@ namespace CalamityMod.NPCs.DevourerofGods
{
SoundEngine.PlaySound(AttackSound, player.position);
NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType<DevourerofGodsHead2>());
NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType<CosmicGuardianHead>());
}
}
}
+3 -3
View File
@@ -165,9 +165,9 @@ namespace CalamityMod
{ ModContent.NPCType<DevourerofGodsHead>(), new Tuple<bool, int[]>(true, new int[] { }) },
{ ModContent.NPCType<DevourerofGodsBody>(), new Tuple<bool, int[]>(true, new int[] { }) },
{ ModContent.NPCType<DevourerofGodsTail>(), new Tuple<bool, int[]>(true, new int[] { }) },
{ ModContent.NPCType<DevourerofGodsHead2>(), new Tuple<bool, int[]>(true, new int[] { }) },
{ ModContent.NPCType<DevourerofGodsBody2>(), new Tuple<bool, int[]>(true, new int[] { }) },
{ ModContent.NPCType<DevourerofGodsTail2>(), new Tuple<bool, int[]>(true, new int[] { }) },
{ ModContent.NPCType<CosmicGuardianHead>(), new Tuple<bool, int[]>(true, new int[] { }) },
{ ModContent.NPCType<CosmicGuardianBody>(), new Tuple<bool, int[]>(true, new int[] { }) },
{ ModContent.NPCType<CosmicGuardianTail>(), new Tuple<bool, int[]>(true, new int[] { }) },
{ ModContent.NPCType<Yharon>(), new Tuple<bool, int[]>(false, new int[] { BuffID.OnFire }) },