Sepulcher sends his regards (gfb SCal)

This commit is contained in:
GinYuH authored and Cameron Ewell committed 2022-12-22 22:14:11 -05:00
1 parent 77d92e55ec
commit b9bb130de8
7 files changed
+132 -75

No files matched your search

@@ -102,7 +102,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas
NPC.alpha = HeadSegment.alpha;
AttackTimer += BossRushEvent.BossRushActive ? 1.5f : 1f;
if (AttackTimer >= 900f)
float attackgate = !HeadSegment.Calamity().unbreakableDR && Main.getGoodWorld ? 450f : 900f; // Move to zenith seed later
if (AttackTimer >= attackgate)
{
AttackTimer = 0f;
if (Main.netMode != NetmodeID.MultiplayerClient)
+18 -2
View File
@@ -54,7 +54,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas
NPC.knockBackResist = 0f;
NPC.scale *= Main.expertMode ? 1.35f : 1.2f;
NPC.scale *= 1.25f;
NPC.alpha = 255;
NPC.chaseable = false;
NPC.behindTiles = true;
@@ -173,7 +172,18 @@ namespace CalamityMod.NPCs.SupremeCalamitas
}
}
if (Main.player[NPC.target].dead || !NPC.AnyNPCs(ModContent.NPCType<BrimstoneHeart>()) || CalamityGlobalNPC.SCal < 0 || !Main.npc[CalamityGlobalNPC.SCal].active)
// move to zenith seed later
if (Main.getGoodWorld && !NPC.AnyNPCs(ModContent.NPCType<BrimstoneHeart>()))
{
CalamityGlobalNPC global = NPC.Calamity();
global.DR = 0.4f;
global.unbreakableDR = false;
NPC.chaseable = true;
NPC.DeathSound = DeathSound;
}
// move getgoodworld check to zenith seed later
if (Main.player[NPC.target].dead || (!NPC.AnyNPCs(ModContent.NPCType<BrimstoneHeart>()) && !Main.getGoodWorld) || CalamityGlobalNPC.SCal < 0 || !Main.npc[CalamityGlobalNPC.SCal].active)
{
NPC.TargetClosest(false);
SoundEngine.PlaySound(DeathSound, Main.player[NPC.target].Center);
@@ -344,6 +354,12 @@ namespace CalamityMod.NPCs.SupremeCalamitas
public override void HitEffect(int hitDirection, double damage)
{
// hit sound in gfb
if (NPC.soundDelay == 0 && NPC.Calamity().unbreakableDR == false)
{
NPC.soundDelay = Main.rand.Next(5, 8);
SoundEngine.PlaySound(SoundID.DD2_SkeletonHurt, NPC.Center);
}
if (NPC.life <= 0)
{
if (Main.netMode != NetmodeID.Server)
+16
View File
@@ -3,6 +3,7 @@ using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System.IO;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.GameContent;
using Terraria.ModLoader;
@@ -144,6 +145,15 @@ namespace CalamityMod.NPCs.SupremeCalamitas
NPC.spriteDirection = 1;
}
}
// move to zenith seed later
if (Main.getGoodWorld && !NPC.AnyNPCs(ModContent.NPCType<BrimstoneHeart>()))
{
CalamityGlobalNPC global = NPC.Calamity();
global.DR = 0.5f;
global.unbreakableDR = false;
NPC.chaseable = true;
}
}
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
@@ -165,6 +175,12 @@ namespace CalamityMod.NPCs.SupremeCalamitas
public override void HitEffect(int hitDirection, double damage)
{
// hit sound in gfb
if (NPC.soundDelay == 0 && NPC.Calamity().unbreakableDR == false)
{
NPC.soundDelay = Main.rand.Next(5, 8);
SoundEngine.PlaySound(SoundID.DD2_SkeletonHurt, NPC.Center);
}
if (NPC.life <= 0)
{
if (Main.netMode != NetmodeID.Server)
+88 -66
View File
@@ -408,7 +408,15 @@ namespace CalamityMod.NPCs.SupremeCalamitas
monsterDamage /= 2;
waveDamage /= 2;
hellblastDamage /= 2;
}
}
int bulletHellblast = ModContent.ProjectileType<BrimstoneWave>();
int barrage = ModContent.ProjectileType<BrimstoneBarrage>();
int gigablast = Main.getGoodWorld ? ModContent.ProjectileType<SCalBrimstoneFireblast>() : ModContent.ProjectileType<SCalBrimstoneGigablast>();
int fireblast = Main.getGoodWorld ? ModContent.ProjectileType<SCalBrimstoneGigablast>() : ModContent.ProjectileType<SCalBrimstoneFireblast>();
int wave = Main.getGoodWorld ? ModContent.ProjectileType<BrimstoneHellblast2>() : ModContent.ProjectileType<BrimstoneWave>();
int hellblast = Main.getGoodWorld ? ModContent.ProjectileType<BrimstoneWave>() : ModContent.ProjectileType<BrimstoneHellblast>();
int bodyWidth = 44;
int bodyHeight = 42;
int baseBulletHellProjectileGateValue = revenge ? 8 : expertMode ? 9 : 10;
@@ -547,18 +555,27 @@ namespace CalamityMod.NPCs.SupremeCalamitas
if (!WorldGen.InWorld(num55, num56, 2))
continue;
if ((num55 == num52 - num54 || num55 == num52 + num54 || num56 == num53 - num54 || num56 == num53 + num54) && !Main.tile[num55, num56].HasTile)
int xoffset = 0;
int yoffset = 0;
int maxoffset = 10;
if (Main.getGoodWorld) // Move to zenith seed later
{
Main.tile[num55, num56].TileType = (ushort)ModContent.TileType<Tiles.ArenaTile>();
Main.tile[num55, num56].Get<TileWallWireStateData>().HasTile = true;
xoffset += Main.rand.Next(-maxoffset, maxoffset + 1);
yoffset += Main.rand.Next(-maxoffset, maxoffset + 1);
}
if ((num55 == num52 - num54 || num55 == num52 + num54 || num56 == num53 - num54 || num56 == num53 + num54) && !Main.tile[num55 + xoffset, num56 + yoffset].HasTile)
{
Main.tile[num55 + xoffset, num56 + yoffset].TileType = (ushort)ModContent.TileType<Tiles.ArenaTile>();
Main.tile[num55 + xoffset, num56 + yoffset].Get<TileWallWireStateData>().HasTile = true;
}
if (Main.netMode == NetmodeID.Server)
{
NetMessage.SendTileSquare(-1, num55, num56, 1, TileChangeType.None);
NetMessage.SendTileSquare(-1, num55 + xoffset, num56 + yoffset, 1, TileChangeType.None);
}
else
{
WorldGen.SquareTileFrame(num55, num56, true);
WorldGen.SquareTileFrame(num55 + xoffset, num56 + yoffset, true);
}
}
}
@@ -713,22 +730,23 @@ namespace CalamityMod.NPCs.SupremeCalamitas
{
float distance = Main.rand.NextBool() ? -1000f : 1000f;
float velocity = (distance == -1000f ? 4f : -4f) * uDieLul;
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + distance, player.position.Y, velocity, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + distance, player.position.Y, velocity, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
if (bulletHellCounter2 < 300) // Blasts from above
if (bulletHellCounter2 < 300 && !Main.getGoodWorld) // Blasts from above, move check to zenith seed later
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 4f * uDieLul, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 4f * uDieLul, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
else if (bulletHellCounter2 < 600) // Blasts from left and right
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3.5f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3.5f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
else // Blasts from above, left, and right
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 3f * uDieLul, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
if (!Main.getGoodWorld) // Move to zenith seed later
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 3f * uDieLul, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
}
}
@@ -779,17 +797,17 @@ namespace CalamityMod.NPCs.SupremeCalamitas
if (bulletHellCounter2 < 1200)
{
if (bulletHellCounter2 % 180 == 0) // Blasts from top
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, ModContent.ProjectileType<SCalBrimstoneFireblast>(), gigablastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, fireblast, gigablastDamage, 0f, Main.myPlayer);
}
else if (bulletHellCounter2 < 1500 && bulletHellCounter2 > 1200)
{
if (bulletHellCounter2 % 180 == 0) // Blasts from right
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -5f * uDieLul, 0f, ModContent.ProjectileType<SCalBrimstoneFireblast>(), gigablastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -5f * uDieLul, 0f, fireblast, gigablastDamage, 0f, Main.myPlayer);
}
else if (bulletHellCounter2 > 1500)
{
if (bulletHellCounter2 % 180 == 0) // Blasts from top
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, ModContent.ProjectileType<SCalBrimstoneFireblast>(), gigablastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, fireblast, gigablastDamage, 0f, Main.myPlayer);
}
bulletHellCounter += 1;
if (bulletHellCounter >= baseBulletHellProjectileGateValue + 1)
@@ -799,20 +817,20 @@ namespace CalamityMod.NPCs.SupremeCalamitas
{
float distance = Main.rand.NextBool() ? -1000f : 1000f;
float velocity = (distance == -1000f ? 4f : -4f) * uDieLul;
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + distance, player.position.Y, velocity, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + distance, player.position.Y, velocity, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
if (bulletHellCounter2 < 1200) // Blasts from below
if (bulletHellCounter2 < 1200 && !Main.getGoodWorld) // Blasts from below, move check to zenith seed later
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y + 1000f, 0f, -4f * uDieLul, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y + 1000f, 0f, -4f * uDieLul, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
else if (bulletHellCounter2 < 1500) // Blasts from left
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
else // Blasts from left and right
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
}
}
@@ -847,10 +865,10 @@ namespace CalamityMod.NPCs.SupremeCalamitas
if (Main.netMode != NetmodeID.MultiplayerClient)
{
if (bulletHellCounter2 % 180 == 0) // Blasts from top
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, ModContent.ProjectileType<SCalBrimstoneFireblast>(), gigablastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, fireblast, gigablastDamage, 0f, Main.myPlayer);
if (bulletHellCounter2 % 240 == 0) // Fireblasts from above
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 10f * uDieLul, ModContent.ProjectileType<SCalBrimstoneGigablast>(), fireblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 10f * uDieLul, gigablast, fireblastDamage, 0f, Main.myPlayer);
bulletHellCounter += 1;
if (bulletHellCounter >= baseBulletHellProjectileGateValue + 4)
@@ -860,20 +878,20 @@ namespace CalamityMod.NPCs.SupremeCalamitas
{
float distance = Main.rand.NextBool() ? -1000f : 1000f;
float velocity = (distance == -1000f ? 4f : -4f) * uDieLul;
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + distance, player.position.Y, velocity, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + distance, player.position.Y, velocity, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
if (bulletHellCounter2 < 2100) // Blasts from above
if (bulletHellCounter2 < 2100 && !Main.getGoodWorld) // Blasts from above, move check to zenith seed later
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 4f * uDieLul, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 4f * uDieLul, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
else if (bulletHellCounter2 < 2400) // Blasts from right
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3.5f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3.5f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
else // Blasts from left and right
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3.5f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3.5f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
}
}
@@ -908,10 +926,10 @@ namespace CalamityMod.NPCs.SupremeCalamitas
if (Main.netMode != NetmodeID.MultiplayerClient) // More clustered attack
{
if (bulletHellCounter2 % 180 == 0) // Blasts from top
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, ModContent.ProjectileType<SCalBrimstoneFireblast>(), gigablastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, fireblast, gigablastDamage, 0f, Main.myPlayer);
if (bulletHellCounter2 % 240 == 0) // Fireblasts from above
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 10f * uDieLul, ModContent.ProjectileType<SCalBrimstoneGigablast>(), fireblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 10f * uDieLul, gigablast, fireblastDamage, 0f, Main.myPlayer);
int divisor = revenge ? 225 : expertMode ? 450 : 675;
@@ -930,20 +948,20 @@ namespace CalamityMod.NPCs.SupremeCalamitas
{
float distance = Main.rand.NextBool() ? -1000f : 1000f;
float velocity = (distance == -1000f ? 4f : -4f) * uDieLul;
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + distance, player.position.Y, velocity, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + distance, player.position.Y, velocity, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
if (bulletHellCounter2 < 3000) // Blasts from below
if (bulletHellCounter2 < 3000 && !Main.getGoodWorld) // Blasts from below, move check to zenith seed later
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y + 1000f, 0f, -4f * uDieLul, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y + 1000f, 0f, -4f * uDieLul, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
else if (bulletHellCounter2 < 3300) // Blasts from left
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
else // Blasts from left and right
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3.5f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3.5f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
}
}
@@ -978,16 +996,16 @@ namespace CalamityMod.NPCs.SupremeCalamitas
if (Main.netMode != NetmodeID.MultiplayerClient)
{
if (bulletHellCounter2 % 240 == 0) // Blasts from top
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, ModContent.ProjectileType<SCalBrimstoneFireblast>(), gigablastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, fireblast, gigablastDamage, 0f, Main.myPlayer);
if (bulletHellCounter2 % 360 == 0) // Fireblasts from above
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 10f * uDieLul, ModContent.ProjectileType<SCalBrimstoneGigablast>(), fireblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 10f * uDieLul, gigablast, fireblastDamage, 0f, Main.myPlayer);
if (bulletHellCounter2 % 30 == 0) // Projectiles that move in wave pattern
{
int random = Main.rand.Next(-500, 501);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + random, -5f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneWave>(), waveDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y - random, 5f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneWave>(), waveDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + random, -5f * uDieLul, 0f, wave, waveDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y - random, 5f * uDieLul, 0f, wave, waveDamage, 0f, Main.myPlayer);
}
bulletHellCounter += 1;
@@ -998,22 +1016,23 @@ namespace CalamityMod.NPCs.SupremeCalamitas
{
float distance = Main.rand.NextBool() ? -1000f : 1000f;
float velocity = (distance == -1000f ? 4f : -4f) * uDieLul;
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + distance, player.position.Y, velocity, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + distance, player.position.Y, velocity, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
if (bulletHellCounter2 < 3900) // Blasts from above
if (bulletHellCounter2 < 3900 && !Main.getGoodWorld) // Blasts from above, move check to zenith seed later
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 4f * uDieLul, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 4f * uDieLul, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
else if (bulletHellCounter2 < 4200) // Blasts from left and right
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3.5f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3.5f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3.5f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
else // Blasts from above, left, and right
{
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 3f * uDieLul, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3f * uDieLul, 0f, ModContent.ProjectileType<BrimstoneHellblast2>(), bulletHellblastDamage, 0f, Main.myPlayer);
if (!Main.getGoodWorld) // move to zenith seed later
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 3f * uDieLul, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
}
}
}
@@ -1204,14 +1223,14 @@ namespace CalamityMod.NPCs.SupremeCalamitas
Projectile projectile = Main.projectile[x];
if (projectile.active)
{
if (projectile.type == ModContent.ProjectileType<BrimstoneHellblast2>() ||
projectile.type == ModContent.ProjectileType<BrimstoneBarrage>() ||
projectile.type == ModContent.ProjectileType<BrimstoneWave>())
if (projectile.type == bulletHellblast ||
projectile.type == barrage ||
projectile.type == wave)
{
if (projectile.timeLeft > 60)
projectile.timeLeft = 60;
}
else if (projectile.type == ModContent.ProjectileType<SCalBrimstoneFireblast>() || projectile.type == ModContent.ProjectileType<SCalBrimstoneGigablast>())
else if (projectile.type == fireblast || projectile.type == gigablast)
{
projectile.ai[1] = 1f;
@@ -1455,7 +1474,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
if (randomShot == 0 && canFireSplitingFireball)
{
canFireSplitingFireball = false;
randomShot = ModContent.ProjectileType<SCalBrimstoneGigablast>();
randomShot = gigablast;
SoundEngine.PlaySound(BrimstoneBigShotSound, NPC.Center);
for (int i = 0; i < 15; i++)
@@ -1478,7 +1497,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
else if (randomShot == 1 && canFireSplitingFireball)
{
canFireSplitingFireball = false;
randomShot = ModContent.ProjectileType<SCalBrimstoneFireblast>();
randomShot = fireblast;
SoundEngine.PlaySound(BrimstoneShotSound, NPC.Center);
for (int i = 0; i < 20; i++)
@@ -1501,7 +1520,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
else
{
canFireSplitingFireball = true;
randomShot = ModContent.ProjectileType<BrimstoneBarrage>();
randomShot = barrage;
SoundEngine.PlaySound(BrimstoneBigShotSound, NPC.Center);
float rotation = MathHelper.ToRadians(20);
int numProj = 8;
@@ -1666,7 +1685,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
projectileVelocity.Normalize();
Vector2 projectileSpawn = NPC.Center + projectileVelocity * 4f;
projectileVelocity *= 10f * uDieLul;
int projectileType = ModContent.ProjectileType<BrimstoneHellblast>();
int projectileType = hellblast;
Projectile.NewProjectile(NPC.GetSource_FromAI(), projectileSpawn, projectileVelocity, projectileType, hellblastDamage, 0f, Main.myPlayer);
}
}
@@ -1745,7 +1764,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
projectileVelocity.Normalize();
Vector2 projectileSpawn = NPC.Center + projectileVelocity * 8f;
projectileVelocity *= 5f * uDieLul;
int projectileType = ModContent.ProjectileType<SCalBrimstoneGigablast>();
int projectileType = gigablast;
Projectile.NewProjectile(NPC.GetSource_FromAI(), projectileSpawn, projectileVelocity, projectileType, fireblastDamage, 0f, Main.myPlayer);
}
}
@@ -1998,7 +2017,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
{
SoundEngine.PlaySound(BrimstoneBigShotSound, NPC.Center);
canFireSplitingFireball = false;
randomShot = ModContent.ProjectileType<SCalBrimstoneGigablast>();
randomShot = gigablast;
for (int i = 0; i < 16; i++)
{
@@ -2021,7 +2040,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
{
SoundEngine.PlaySound(BrimstoneShotSound, NPC.Center);
canFireSplitingFireball = false;
randomShot = ModContent.ProjectileType<SCalBrimstoneFireblast>();
randomShot = fireblast;
for (int i = 0; i < 24; i++)
{
@@ -2044,7 +2063,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
{
SoundEngine.PlaySound(BrimstoneBigShotSound, NPC.Center);
canFireSplitingFireball = true;
randomShot = ModContent.ProjectileType<BrimstoneBarrage>();
randomShot = barrage;
float rotation = MathHelper.ToRadians(20);
int numProj = 8;
for (int j = 0; j < numProj; j++)
@@ -2203,7 +2222,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
projectileVelocity.Normalize();
Vector2 projectileSpawn = NPC.Center + projectileVelocity * 4f;
projectileVelocity *= 10f * uDieLul;
int projectileType = ModContent.ProjectileType<BrimstoneHellblast>();
int projectileType = hellblast;
Projectile.NewProjectile(NPC.GetSource_FromAI(), projectileSpawn, projectileVelocity, projectileType, hellblastDamage, 0f, Main.myPlayer);
}
}
@@ -2286,7 +2305,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
projectileVelocity.Normalize();
Vector2 projectileSpawn = NPC.Center + projectileVelocity * 8f;
projectileVelocity *= 5f * uDieLul;
int projectileType = ModContent.ProjectileType<SCalBrimstoneGigablast>();
int projectileType = gigablast;
Projectile.NewProjectile(NPC.GetSource_FromAI(), projectileSpawn, projectileVelocity, projectileType, fireblastDamage, 0f, Main.myPlayer);
}
}
@@ -2388,7 +2407,10 @@ namespace CalamityMod.NPCs.SupremeCalamitas
spawnX = spawnXReset;
spawnX2 = spawnXReset2;
spawnY = spawnYReset;
NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType<SepulcherHead>());
if (NPC.CountNPCS(ModContent.NPCType<SepulcherHead>()) <= 0) // Check is here for the zenith seed
{
NPC.SpawnOnPlayer(NPC.FindClosestPlayer(), ModContent.NPCType<SepulcherHead>());
}
NPC.netUpdate = true;
}
+4 -3
View File
@@ -234,13 +234,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas
DartBurstCounter = 0f;
SoundEngine.PlaySound(SupremeCalamitas.BrimstoneShotSound, NPC.Center);
int type = ModContent.ProjectileType<BrimstoneBarrage>();
int type = Main.getGoodWorld ? ModContent.ProjectileType<BrimstoneHellblast2>() : ModContent.ProjectileType<BrimstoneBarrage>(); //Move to zenith seed later
int damage = NPC.GetProjectileDamage(type);
if (bossRush)
damage /= 2;
int totalProjectiles = bossRush ? 20 : death ? 16 : revenge ? 14 : expertMode ? 12 : 8;
float radians = MathHelper.TwoPi / totalProjectiles;
float velocity = 7f;
float velocity = Main.getGoodWorld ? 5f : 7f; // Move to zenith seed later
Vector2 spinningPoint = new Vector2(0f, -velocity);
for (int k = 0; k < totalProjectiles; k++)
{
@@ -278,7 +278,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas
spriteBatch.Draw(texture, mainDrawPosition, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, origin, NPC.scale, spriteEffects, 0f);
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/SupremeCalamitas/SupremeCataclysmGlow").Value;
Color baseGlowmaskColor = NPC.IsABestiaryIconDummy ? Color.White : Color.Lerp(Color.White, Color.Red, 0.5f);
Color primarycolor = Main.getGoodWorld ? Color.Blue : Color.Red; // Move to zenith seed later. why? because blue fire is awesome!!
Color baseGlowmaskColor = NPC.IsABestiaryIconDummy ? Color.White : Color.Lerp(Color.White, primarycolor, 0.5f);
if (CalamityConfig.Instance.Afterimages)
{
+2 -2
View File
@@ -229,13 +229,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas
DartBurstCounter = 0f;
SoundEngine.PlaySound(SupremeCalamitas.BrimstoneShotSound, NPC.Center);
int type = ModContent.ProjectileType<BrimstoneBarrage>();
int type = Main.getGoodWorld ? ModContent.ProjectileType<BrimstoneHellblast2>() : ModContent.ProjectileType<BrimstoneBarrage>(); //Move to zenith seed later
int damage = NPC.GetProjectileDamage(type);
if (bossRush)
damage /= 2;
int totalProjectiles = bossRush ? 20 : death ? 16 : revenge ? 14 : expertMode ? 12 : 8;
float radians = MathHelper.TwoPi / totalProjectiles;
float velocity = 7f;
float velocity = Main.getGoodWorld ? 5f : 7f; // Move to zenith seed later
Vector2 spinningPoint = new Vector2(0f, -velocity);
for (int k = 0; k < totalProjectiles; k++)
{
+2 -1
View File
@@ -149,7 +149,8 @@ namespace CalamityMod.Projectiles.Boss
// If the other projectile is indeed the same owned by the same player and they're too close, nudge them away.
bool sameProjType = otherProj.type == Projectile.type;
float taxicabDist = Vector2.Distance(Projectile.Center, otherProj.Center);
if (sameProjType && taxicabDist < 320f)
float distancegate = Main.getGoodWorld ? 360f : 320f;
if (sameProjType && taxicabDist < distancegate)
{
if (Projectile.position.X < otherProj.position.X)
Projectile.velocity.X -= pushForce;