1 - DoG is bigger in FTW.

This commit is contained in:
mountaindrew10 committed 2022-06-21 04:31:04 -05:00
1 parent 64eebfa750
commit 8addb9fbcc
3 files changed
+38 -27

No files matched your search

+10 -6
View File
@@ -69,6 +69,9 @@ namespace CalamityMod.NPCs.DevourerofGods
NPC.boss = true;
Music = CalamityMod.Instance.GetMusicFromMusicMod("DevourerOfGodsP1") ?? MusicID.Boss3;
NPC.dontCountMe = true;
if (Main.getGoodWorld)
NPC.scale *= 1.5f;
}
public override void BossHeadSlot(ref int index)
@@ -151,8 +154,8 @@ namespace CalamityMod.NPCs.DevourerofGods
if (Main.npc[(int)NPC.ai[2]].localAI[2] == 60f)
{
NPC.position = NPC.Center;
NPC.width = 70;
NPC.height = 70;
NPC.width = (int)(70 * NPC.scale);
NPC.height = (int)(70 * NPC.scale);
NPC.frame = new Rectangle(0, 0, 114, 88);
NPC.position -= NPC.Size * 0.5f;
NPC.netUpdate = true;
@@ -424,7 +427,7 @@ namespace CalamityMod.NPCs.DevourerofGods
if (dist4 < minDist)
minDist = dist4;
return minDist <= (phase2Started ? 55f : 40f) && NPC.Opacity >= 1f && invinceTime <= 0;
return minDist <= (phase2Started ? 55f : 40f) * NPC.scale && NPC.Opacity >= 1f && invinceTime <= 0;
}
public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit)
@@ -455,6 +458,7 @@ namespace CalamityMod.NPCs.DevourerofGods
{
if (NPC.realLife >= 0)
Main.npc[NPC.realLife].checkDead();
return base.CheckDead();
}
@@ -470,12 +474,12 @@ namespace CalamityMod.NPCs.DevourerofGods
if (Main.netMode != NetmodeID.Server)
{
float randomSpread = Main.rand.Next(-100, 100) / 100;
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find<ModGore>("DoGS6").Type, 1f);
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity * randomSpread * Main.rand.NextFloat(), Mod.Find<ModGore>("DoGS6").Type, NPC.scale);
}
NPC.position.X = NPC.position.X + (NPC.width / 2);
NPC.position.Y = NPC.position.Y + (NPC.height / 2);
NPC.width = 50;
NPC.height = 50;
NPC.width = (int)(100 * NPC.scale);
NPC.height = (int)(100 * NPC.scale);
NPC.position.X = NPC.position.X - (NPC.width / 2);
NPC.position.Y = NPC.position.Y - (NPC.height / 2);
for (int num621 = 0; num621 < 10; num621++)
+17 -14
View File
@@ -195,6 +195,9 @@ namespace CalamityMod.NPCs.DevourerofGods
NPC.DeathSound = SoundID.NPCDeath14;
NPC.netAlways = true;
Music = CalamityMod.Instance.GetMusicFromMusicMod("DevourerOfGodsP1") ?? MusicID.Boss3;
if (Main.getGoodWorld)
NPC.scale *= 1.5f;
}
public override void BossHeadSlot(ref int index)
@@ -381,12 +384,12 @@ namespace CalamityMod.NPCs.DevourerofGods
if (Main.getGoodWorld)
{
fallSpeed *= 1.15f;
speed *= 1.15f;
turnSpeed *= 1.15f;
homingSpeed *= 1.15f;
homingTurnSpeed *= 1.15f;
groundPhaseTurnSpeed *= 1.15f;
fallSpeed *= 1.1f;
speed *= 1.1f;
turnSpeed *= 1.1f;
homingSpeed *= 1.1f;
homingTurnSpeed *= 1.1f;
groundPhaseTurnSpeed *= 1.1f;
}
// How long it takes before swapping phases
@@ -502,8 +505,8 @@ namespace CalamityMod.NPCs.DevourerofGods
if (NPC.localAI[2] == 60f)
{
NPC.position = NPC.Center;
NPC.width = 186;
NPC.height = 186;
NPC.width = (int)(186 * NPC.scale);
NPC.height = (int)(186 * NPC.scale);
NPC.position -= NPC.Size * 0.5f;
NPC.frame = new Rectangle(0, 0, 134, 196);
NPC.netUpdate = true;
@@ -2421,7 +2424,7 @@ namespace CalamityMod.NPCs.DevourerofGods
if (dist4 < minDist)
minDist = dist4;
return minDist <= (Phase2Started ? 80f : 55f) && (NPC.Opacity >= 1f || postTeleportTimer > 0);
return minDist <= (Phase2Started ? 80f : 55f) * NPC.scale && (NPC.Opacity >= 1f || postTeleportTimer > 0);
}
public override bool StrikeNPC(ref double damage, int defense, ref float knockback, int hitDirection, ref bool crit)
@@ -2471,14 +2474,14 @@ namespace CalamityMod.NPCs.DevourerofGods
{
if (Main.netMode != NetmodeID.Server)
{
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("DoGS").Type, 1f);
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("DoGS2").Type, 1f);
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("DoGS5").Type, 1f);
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("DoGS").Type, NPC.scale);
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("DoGS2").Type, NPC.scale);
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("DoGS5").Type, NPC.scale);
}
NPC.position.X = NPC.position.X + (NPC.width / 2);
NPC.position.Y = NPC.position.Y + (NPC.height / 2);
NPC.width = 50;
NPC.height = 50;
NPC.width = (int)(100 * NPC.scale);
NPC.height = (int)(100 * NPC.scale);
NPC.position.X = NPC.position.X - (NPC.width / 2);
NPC.position.Y = NPC.position.Y - (NPC.height / 2);
for (int num621 = 0; num621 < 15; num621++)
+11 -7
View File
@@ -72,6 +72,9 @@ namespace CalamityMod.NPCs.DevourerofGods
NPC.takenDamageMultiplier = 1.25f;
Music = CalamityMod.Instance.GetMusicFromMusicMod("DevourerOfGodsP1") ?? MusicID.Boss3;
NPC.dontCountMe = true;
if (Main.getGoodWorld)
NPC.scale *= 1.5f;
}
public override void BossHeadSlot(ref int index)
@@ -153,8 +156,8 @@ namespace CalamityMod.NPCs.DevourerofGods
if (Main.npc[(int)NPC.ai[2]].localAI[2] == 60f)
{
NPC.position = NPC.Center;
NPC.width = 80;
NPC.height = 140;
NPC.width = (int)(80 * NPC.scale);
NPC.height = (int)(140 * NPC.scale);
NPC.frame = new Rectangle(0, 0, 86, 148);
NPC.position -= NPC.Size * 0.5f;
NPC.netUpdate = true;
@@ -359,7 +362,7 @@ namespace CalamityMod.NPCs.DevourerofGods
if (dist4 < minDist)
minDist = dist4;
return minDist <= (phase2Started ? 70f : 35f) && NPC.Opacity >= 1f;
return minDist <= (phase2Started ? 70f : 35f) * NPC.scale && NPC.Opacity >= 1f;
}
public override void HitEffect(int hitDirection, double damage)
@@ -373,13 +376,13 @@ namespace CalamityMod.NPCs.DevourerofGods
{
if (Main.netMode != NetmodeID.Server)
{
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("DoGS3").Type, 1f);
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("DoGS4").Type, 1f);
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("DoGS3").Type, NPC.scale);
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("DoGS4").Type, NPC.scale);
}
NPC.position.X = NPC.position.X + (NPC.width / 2);
NPC.position.Y = NPC.position.Y + (NPC.height / 2);
NPC.width = 50;
NPC.height = 50;
NPC.width = (int)(100 * NPC.scale);
NPC.height = (int)(100 * NPC.scale);
NPC.position.X = NPC.position.X - (NPC.width / 2);
NPC.position.Y = NPC.position.Y - (NPC.height / 2);
for (int num621 = 0; num621 < 10; num621++)
@@ -431,6 +434,7 @@ namespace CalamityMod.NPCs.DevourerofGods
{
if (NPC.realLife >= 0)
Main.npc[NPC.realLife].checkDead();
return base.CheckDead();
}