This commit is contained in:
GinYuH committed 2023-01-17 22:10:35 -08:00
1 parent 1c9cecdf49
commit 98c7d849ba
3 files changed
+28 -24

No files matched your search

+1
View File
@@ -422,6 +422,7 @@ namespace CalamityMod.NPCs.Abyss
NPC.netUpdate = true;
int damage = 70;
if (Main.expertMode)
{
damage = 55;
}
if (clone)
+13 -13
View File
@@ -480,21 +480,21 @@ namespace CalamityMod.NPCs.AcidRain
{
if (Main.getGoodWorld) // move to zenith seed later
{
if (Main.netMode != NetmodeID.MultiplayerClient)
Vector2 valueBoom = new Vector2(NPC.position.X + (float)NPC.width * 0.5f, NPC.position.Y + (float)NPC.height * 0.5f);
float spreadBoom = 15f * 0.0174f;
double startAngleBoom = Math.Atan2(NPC.velocity.X, NPC.velocity.Y) - spreadBoom / 2;
double deltaAngleBoom = spreadBoom / 8f;
double offsetAngleBoom;
int iBoom;
int damageBoom = 200;
for (iBoom = 0; iBoom < 25; iBoom++)
{
Vector2 valueBoom = new Vector2(NPC.position.X + (float)NPC.width * 0.5f, NPC.position.Y + (float)NPC.height * 0.5f);
float spreadBoom = 15f * 0.0174f;
double startAngleBoom = Math.Atan2(NPC.velocity.X, NPC.velocity.Y) - spreadBoom / 2;
double deltaAngleBoom = spreadBoom / 8f;
double offsetAngleBoom;
int iBoom;
int damageBoom = 200;
for (iBoom = 0; iBoom < 25; iBoom++)
int projectileType = Main.rand.NextBool(2) ? ModContent.ProjectileType<SulphuricAcidMist>() : ModContent.ProjectileType<SulphuricAcidBubble>();
offsetAngleBoom = startAngleBoom + deltaAngleBoom * (iBoom + iBoom * iBoom) / 2f + 32f * iBoom;
if (Main.netMode != NetmodeID.MultiplayerClient)
{
int projectileType = Main.rand.NextBool(2) ? ModContent.ProjectileType<SulphuricAcidMist>() : ModContent.ProjectileType<SulphuricAcidBubble>();
offsetAngleBoom = startAngleBoom + deltaAngleBoom * (iBoom + iBoom * iBoom) / 2f + 32f * iBoom;
int boom1 = Projectile.NewProjectile(NPC.GetSource_Death(), valueBoom.X, valueBoom.Y, (float)(Math.Sin(offsetAngleBoom) * 6f), (float)(Math.Cos(offsetAngleBoom) * 6f), projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f);
int boom2 = Projectile.NewProjectile(NPC.GetSource_Death(), valueBoom.X, valueBoom.Y, (float)(-Math.Sin(offsetAngleBoom) * 6f), (float)(-Math.Cos(offsetAngleBoom) * 6f), projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f);
int boom1 = Projectile.NewProjectile(NPC.GetSource_Death(), valueBoom.X, valueBoom.Y, (float)(Math.Sin(offsetAngleBoom) * 6f), (float)(Math.Cos(offsetAngleBoom) * 6f), projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f);
int boom2 = Projectile.NewProjectile(NPC.GetSource_Death(), valueBoom.X, valueBoom.Y, (float)(-Math.Sin(offsetAngleBoom) * 6f), (float)(-Math.Cos(offsetAngleBoom) * 6f), projectileType, damageBoom, 0f, Main.myPlayer, 0f, 0f);
}
}
for (int num621 = 0; num621 < 25; num621++)
+14 -11
View File
@@ -914,20 +914,23 @@ namespace CalamityMod.NPCs
Projectile.NewProjectile(npc.GetSource_FromAI(), pos, new Vector2(0, -1), type, damage, 0f, Main.myPlayer, 0f, npc.whoAmI);
Projectile.NewProjectile(npc.GetSource_FromAI(), pos, new Vector2(1, 0), type, damage, 0f, Main.myPlayer, 0f, npc.whoAmI);
Projectile.NewProjectile(npc.GetSource_FromAI(), pos, new Vector2(-1, 0), type, damage, 0f, Main.myPlayer, 0f, npc.whoAmI);
if (brimmy.currentMode >= 1 && brimmy.currentMode <= 3)
}
if (brimmy.currentMode >= 1 && brimmy.currentMode <= 3)
{
int tornadoType = brimmy.currentMode == 3 ? ModContent.ProjectileType<StormMarkHostile>() : ProjectileID.SandnadoHostileMark;
if (Main.netMode != NetmodeID.MultiplayerClient)
{
int tornadoType = brimmy.currentMode == 3 ? ModContent.ProjectileType<StormMarkHostile>() : ProjectileID.SandnadoHostileMark;
Projectile.NewProjectile(npc.GetSource_FromAI(), pos, Vector2.Zero, tornadoType, damage, 0f, Main.myPlayer, 0f, 0f);
Projectile.NewProjectile(npc.GetSource_FromAI(), pos, Vector2.Zero, tornadoType, damage, 0f, Main.myPlayer, 0f, 0f);
}
if (brimmy.currentMode == 2)
}
if (brimmy.currentMode == 2)
{
int healAmt = npc.lifeMax / 25;
if (healAmt > 0)
{
int healAmt = npc.lifeMax / 25;
if (healAmt > 0)
{
npc.life += healAmt;
npc.HealEffect(healAmt, true);
npc.netUpdate = true;
}
npc.life += healAmt;
npc.HealEffect(healAmt, true);
npc.netUpdate = true;
}
}
}