Revert "nerfed dm lightning frequency, reduced electricity duration, prevented it spawning during ooa or near pillars"
This reverts commit 50ef217e67.
This commit is contained in:
1 parent
894e8f85fd
commit
e220a2e13f
2 files changed
+4
-7
No files matched your search
@@ -5658,8 +5658,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
else if (proj.type == ProjectileID.CultistBossLightningOrbArc)
|
||||
{
|
||||
player.AddBuff(BuffID.Electrified, (proj.Calamity().lineColor == 1 ? 30 : 120));
|
||||
//0.5 second for DM lightning, 2 seconds for Storm Weaver/Cultist lightning
|
||||
player.AddBuff(BuffID.Electrified, 120);
|
||||
}
|
||||
}
|
||||
if (projRef && proj.active && !proj.friendly && proj.hostile && damage > 0 && Main.rand.NextBool(20))
|
||||
|
||||
@@ -518,8 +518,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
// Ice shards, lightning and sharknadoes
|
||||
bool nearPillar = player.ZoneTowerStardust || player.ZoneTowerVortex || player.ZoneTowerNebula || player.ZoneTowerSolar;
|
||||
if (player.ZoneOverworldHeight && !CalamityPlayer.areThereAnyDamnBosses && !player.InSpace() && !DD2Event.Ongoing && !nearPillar)
|
||||
if (player.ZoneOverworldHeight && !CalamityPlayer.areThereAnyDamnBosses && !player.InSpace())
|
||||
{
|
||||
Vector2 sharknadoSpawnPoint = new Vector2(player.Center.X - (float)Main.rand.Next(300, 701), player.Center.Y - (float)Main.rand.Next(700, 801));
|
||||
if (point.X > Main.maxTilesX / 2)
|
||||
@@ -571,8 +570,8 @@ namespace CalamityMod.CalPlayer
|
||||
Main.projectile[num336].netUpdate = true;
|
||||
}
|
||||
}
|
||||
int randomFrequency2 = (int)(25f * frequencyMult);
|
||||
if (player.miscCounter % (Main.hardMode ? 120 : 150) == 0 && Main.rand.NextBool(randomFrequency2))
|
||||
int randomFrequency2 = (int)(20f * frequencyMult);
|
||||
if (player.miscCounter % (Main.hardMode ? 90 : 120) == 0 && Main.rand.NextBool(randomFrequency2))
|
||||
{
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/LightningStrike"), (int)spawnPoint.X, (int)spawnPoint.Y);
|
||||
float randomVelocity = Main.rand.NextFloat() - 0.5f;
|
||||
@@ -583,7 +582,6 @@ namespace CalamityMod.CalPlayer
|
||||
int proj = Projectile.NewProjectile(spawnPoint.X, spawnPoint.Y, velocity.X, velocity.Y, ProjectileID.CultistBossLightningOrbArc, 50, 0f, player.whoAmI, ai0.ToRotation(), ai);
|
||||
Main.projectile[proj].extraUpdates += 6;
|
||||
Main.projectile[proj].friendly = true;
|
||||
Main.projectile[proj].Calamity().lineColor = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user