diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 2e69160705..24a84b1926 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -190,6 +190,7 @@ namespace CalamityMod.CalPlayer public int PHAThammer = 0; public int StellarHammer = 0; public int GalaxyHammer = 0; + public int NorfleetCounter = 0; public int hideOfDeusMeleeBoostTimer = 0; public int alcoholPoisonLevel = 0; public int modStealthTimer; diff --git a/CalPlayer/CalamityPlayerHitHurt.cs b/CalPlayer/CalamityPlayerHitHurt.cs index 975677a7ba..468f6701bd 100644 --- a/CalPlayer/CalamityPlayerHitHurt.cs +++ b/CalPlayer/CalamityPlayerHitHurt.cs @@ -490,6 +490,8 @@ namespace CalamityMod.CalPlayer if (Main.zenithWorld) SoundEngine.PlaySound(LeonDeathNoiseRE4_ForGFB, Player.Center); + NorfleetCounter = 0; + if (NPC.AnyNPCs(ModContent.NPCType())) { if (sCalDeathCount < 51) diff --git a/Events/BossRushEvent.cs b/Events/BossRushEvent.cs index 212fab1226..628a809bcf 100644 --- a/Events/BossRushEvent.cs +++ b/Events/BossRushEvent.cs @@ -593,7 +593,7 @@ namespace CalamityMod.Events // Increase cooldown post-Moon Lord. if (BossRushStage >= Bosses.FindIndex(boss => boss.EntityID == NPCID.MoonLordCore)) - BossRushSpawnCountdown += 300; + BossRushSpawnCountdown += 180; // Override the spawn countdown if specified. if (BossRushStage < Bosses.Count - 1 && Bosses[BossRushStage + 1].SpecialSpawnCountdown != -1) diff --git a/Items/Dyes/NecroplasmicDye.cs b/Items/Dyes/NecroplasmicDye.cs index 7591885281..8c9c1dd00d 100644 --- a/Items/Dyes/NecroplasmicDye.cs +++ b/Items/Dyes/NecroplasmicDye.cs @@ -9,7 +9,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Dyes { - [LegacyName("PhantoplasmDye")] + [LegacyName("PhantoplasmDye", "PolterplasmDye")] public class NecroplasmicDye : BaseDye { public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(Mod.Assets.Request("Effects/Dyes/NecroplasmicDyeShader"), "DyePass"). diff --git a/Items/Materials/Necroplasm.cs b/Items/Materials/Necroplasm.cs index 95dceb3057..4a64871a61 100644 --- a/Items/Materials/Necroplasm.cs +++ b/Items/Materials/Necroplasm.cs @@ -6,7 +6,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Materials { - [LegacyName("Phantoplasm")] + [LegacyName("Phantoplasm", "Polterplasm")] public class Necroplasm : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Materials"; diff --git a/Items/Weapons/Ranged/Norfleet.cs b/Items/Weapons/Ranged/Norfleet.cs index 80cfc81ac5..9521be1ca9 100644 --- a/Items/Weapons/Ranged/Norfleet.cs +++ b/Items/Weapons/Ranged/Norfleet.cs @@ -2,6 +2,7 @@ using CalamityMod.Rarities; using Microsoft.Xna.Framework; using Terraria; +using Terraria.Audio; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -45,14 +46,25 @@ namespace CalamityMod.Items.Weapons.Ranged public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - Projectile holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0, 0, loadedShots); + if (player.Calamity().NorfleetCounter >= 3) + { + SoundStyle fire = new("CalamityMod/Sounds/Item/NuhUhUh"); + SoundEngine.PlaySound(fire, player.Center); + } + + Projectile holdout = Projectile.NewProjectileDirect(source, player.MountedCenter, Vector2.Zero, ModContent.ProjectileType(), damage, knockback, player.whoAmI, 0, (player.Calamity().NorfleetCounter >= 3 ? 1000 : 0), loadedShots); // We set the rotation to the direction to the mouse so the first frame doesn't appear bugged out. holdout.velocity = (player.Calamity().mouseWorld - player.MountedCenter).SafeNormalize(Vector2.Zero); + player.Calamity().NorfleetCounter++; loadedShots--; + if (loadedShots <= 0) + { loadedShots = 3; + player.Calamity().NorfleetCounter = 0; + } return false; } } diff --git a/Localization/en-US/Mods.CalamityMod.UI.hjson b/Localization/en-US/Mods.CalamityMod.UI.hjson index ede9fc3c6a..87f29c96e3 100644 --- a/Localization/en-US/Mods.CalamityMod.UI.hjson +++ b/Localization/en-US/Mods.CalamityMod.UI.hjson @@ -251,7 +251,7 @@ Communication: { I forged its armor using a process inspired by how Silva created Braelor's axe: by using particle jets to slowly and carefully fuse many elements together into a nanocomposite, the invincible armor organically "grows" over Thanatos' structure like a chrysalis. Regrettably, the plating's immense weight makes Thanatos notably slower than its siblings.\n When designing the third, Apollo, my goal was to downscale significantly; to make something powerful, yet compact. Reviewing the most compact forms of destructive potential I knew, I elected to simulate the Witch's flames.\n - + Apollo's searing exoplasma is fueled by unstable nanomachines that constantly shed a deluge of ultra high energy particles. This both heats the plasma to incredible temperatures and causes radiation burns of a severity on par with those inflicted by the Witch. The craft had little capability beyond its nanomachine plasma projector, but there was no worry. Apollo was never meant to fight alone.\n The final to begin construction was Artemis. Rather than being founded on raw power, it was made to be the apex of speed and accuracy. There is elegance in simplicity, for all of Artemis' combat efficacy comes from an onboard predictive AI and a battery of hard-light bolt emitters.\n @@ -337,7 +337,7 @@ Communication: { Even if I dared to evoke Yharim's wrath, I cannot survey the Aerie. My attempts at locating it have been fruitless despite having surveyed this world's surface and skies many times over. Perhaps it avoids observation, as per some manner of cloaking. It is also possible it simply exists outside of conventional space, in a pocket dimension of sorts. Either case would make detecting it via my current methods drastically more difficult.\n What I do know is that the Dragon Aerie is an unusually large sky island that acted as the sacred home of the Auric dragons. Few others were ever allowed to tread there, as a sort of religious sanctuary or holy ground.\n - + It is also where Auric dragons would be laid to rest in preparation for their revival by Yharon. As their revival on the Aerie was a commonly accepted fact even at the start of recorded history, the sky island must be at least 2,000 years old, with Yharon himself being a similar age.\n Considering the extraordinary power of the Auric dragons and the sanctity of the Dragon Aerie, I am left to ponder: did the Aerie make the Auric dragons powerful, or is the Aerie inundated with power due to their extended presence? Perhaps more importantly, what made them leave the safety of the Aerie even as their kind were being slain? I eagerly await the uncovering of such mysteries. diff --git a/Projectiles/Melee/SpatialSpear.cs b/Projectiles/Melee/SpatialSpear.cs index 0d3f9d7f29..8d06a0e6d5 100644 --- a/Projectiles/Melee/SpatialSpear.cs +++ b/Projectiles/Melee/SpatialSpear.cs @@ -13,11 +13,11 @@ namespace CalamityMod.Projectiles.Melee { public new string LocalizationCategory => "Projectiles.Melee"; - private const int TimeLeft = 300; + private const int TimeLeft = 180; private const int TimeToFall = TimeLeft / 2; - private const int TotalSplits = 30; + private const int TotalSplits = 6; private const int SplitTime = TimeLeft / TotalSplits; diff --git a/Projectiles/Melee/SpatialSpear2.cs b/Projectiles/Melee/SpatialSpear2.cs index 013bdb2914..bcf1a5c36b 100644 --- a/Projectiles/Melee/SpatialSpear2.cs +++ b/Projectiles/Melee/SpatialSpear2.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Projectiles.Melee private const int TimeToFall = TimeLeft / 2; - private const int TotalSplits = 4; + private const int TotalSplits = 3; private const int SplitTime = TimeLeft / TotalSplits; diff --git a/Projectiles/Ranged/NorfleetCannon.cs b/Projectiles/Ranged/NorfleetCannon.cs index 82638e84c5..503d3cbffb 100644 --- a/Projectiles/Ranged/NorfleetCannon.cs +++ b/Projectiles/Ranged/NorfleetCannon.cs @@ -37,6 +37,7 @@ namespace CalamityMod.Projectiles.Ranged public Color mainColor = Color.White; public Color randomColor = Color.White; public int colorTimer = 0; + public bool PUNISHMENTMODE = false; public override void SetDefaults() { @@ -50,7 +51,10 @@ namespace CalamityMod.Projectiles.Ranged { Item heldItem = Owner.ActiveItem(); - randomColor = Main.rand.Next(3) switch + if (Owner.dead || Owner is null) + Projectile.Kill(); + + randomColor = Main.rand.Next(3) switch { 0 => Color.OrangeRed, 1 => Color.Aqua, @@ -59,6 +63,8 @@ namespace CalamityMod.Projectiles.Ranged if (mainColor == Color.White) { mainColor = randomColor; + if (Projectile.ai[1] == 1000) + PUNISHMENTMODE = true; } if (ShootingTimer % 15 == 0) @@ -86,16 +92,16 @@ namespace CalamityMod.Projectiles.Ranged if (loadedShots > 1) { ShootRocket(heldItem); - PostFireCooldown = 55; + PostFireCooldown = PUNISHMENTMODE ? 1000 : 55; ShootingTimer = 1; - mainColor = Color.MediumOrchid; + mainColor = PUNISHMENTMODE ? Color.Red : Color.MediumOrchid; } else { ShootRocket(heldItem); - PostFireCooldown = 262; + PostFireCooldown = PUNISHMENTMODE ? 1000 : 262; ShootingTimer = 1; - mainColor = Color.MediumOrchid; + mainColor = PUNISHMENTMODE ? Color.Red : Color.MediumOrchid; } @@ -183,7 +189,7 @@ namespace CalamityMod.Projectiles.Ranged for (int i = 0; i < 3; i++) { Vector2 firingVelocity = shootDirection.RotatedByRandom((0.2f * i) + 0.02f) * 5f * Main.rand.NextFloat(0.7f, 1.3f); - Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), tipPosition, firingVelocity, ModContent.ProjectileType(), Projectile.damage / 3, Projectile.knockBack, Projectile.owner, 0, i); + Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), tipPosition, firingVelocity, ModContent.ProjectileType(), Projectile.damage / 3, Projectile.knockBack, Projectile.owner, 0, i, PUNISHMENTMODE ? 1 : 0); } NetUpdate(); @@ -218,6 +224,9 @@ namespace CalamityMod.Projectiles.Ranged { Vector2 tipPosition = Projectile.Center + Projectile.velocity.SafeNormalize(Vector2.Zero).RotatedBy(-0.05f * Projectile.direction) * 73f; + if (PUNISHMENTMODE) + PostFireCooldown = 1000; + if (PostFireCooldown == 207) { OffsetLength -= 24f; @@ -228,12 +237,12 @@ namespace CalamityMod.Projectiles.Ranged if (PostFireCooldown > 0 && !recharging) { Vector2 smokeVel = new Vector2(0, -8) * Main.rand.NextFloat(0.1f, 1.1f); - Particle smoke = new HeavySmokeParticle(tipPosition, smokeVel, StaticEffectsColor, Main.rand.Next(40, 60 + 1), Main.rand.NextFloat(0.3f, 0.6f), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), Main.rand.NextBool(), required: true); + Particle smoke = new HeavySmokeParticle(tipPosition, smokeVel, PUNISHMENTMODE ? Color.Red : StaticEffectsColor, Main.rand.Next(40, 60 + 1), Main.rand.NextFloat(0.3f, 0.6f), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), Main.rand.NextBool(), required: true); GeneralParticleHandler.SpawnParticle(smoke); Dust dust = Dust.NewDustPerfect(tipPosition, 303, smokeVel.RotatedByRandom(0.1f), 80, default, Main.rand.NextFloat(0.4f, 1.3f)); dust.noGravity = false; - dust.color = Color.White; + dust.color = PUNISHMENTMODE ? Color.Red : Color.White; } else if (!recharging) { @@ -336,7 +345,7 @@ namespace CalamityMod.Projectiles.Ranged Texture2D rechargeTexture = ModContent.Request("CalamityMod/Particles/BloomCircle").Value; Main.EntitySpriteDraw(texture, drawPosition, null, drawColor, drawRotation, rotationPoint, Projectile.scale, flipSprite); - Main.EntitySpriteDraw(glowTexture, drawPosition, null, mainColor, drawRotation, rotationPoint, Projectile.scale, flipSprite); + Main.EntitySpriteDraw(glowTexture, drawPosition, null, PUNISHMENTMODE ? Color.Red : mainColor, drawRotation, rotationPoint, Projectile.scale, flipSprite); if (PostFireCooldown > 15 && recharging) { float randSize = Main.rand.NextFloat(0.8f, 1.2f); diff --git a/Projectiles/Ranged/NorfleetComet.cs b/Projectiles/Ranged/NorfleetComet.cs index ef0dbb752f..e10696a580 100644 --- a/Projectiles/Ranged/NorfleetComet.cs +++ b/Projectiles/Ranged/NorfleetComet.cs @@ -39,15 +39,37 @@ namespace CalamityMod.Projectiles.Ranged public override void AI() { + Player player = Main.player[Projectile.owner]; float rotationRando = Main.rand.NextFloat(-0.02f, 0.02f); Projectile.velocity = Projectile.velocity.RotatedBy(rotationRando); Projectile.rotation += 0.05f; + if (Projectile.ai[2] == 1) + { + Projectile.friendly = false; + if (time >= 75) + { + Projectile.hostile = true; + + float distanceFromPlayer = Projectile.Distance(player.Center); + + // This is done instead of a Normalize or DirectionTo call because the variables needed are already present and calculating the square root again would be unnecessary. + Vector2 idealVelocity = (player.Center - Projectile.Center) / distanceFromPlayer * 8f; + + Projectile.velocity.X += Math.Sign(idealVelocity.X - Projectile.velocity.X) * (0.0005f * time); + Projectile.velocity.Y += Math.Sign(idealVelocity.Y - Projectile.velocity.Y) * (0.0005f * time); + + if (Projectile.Hitbox.Intersects(player.Hitbox)) + Projectile.Kill(); + + Projectile.timeLeft = 5; + } + } if (time > 25) { for (int i = 0; i < 2; i++) { Vector2 dustPos = Projectile.Center + (i * MathHelper.Pi + Projectile.rotation + MathHelper.PiOver2).ToRotationVector2() * 30f; - Dust dust = Dust.NewDustPerfect(dustPos, Main.rand.NextBool(3) ? 272 : 86, (i * MathHelper.Pi + Projectile.rotation * Math.Sign(Projectile.velocity.X)).ToRotationVector2() * 3f); + Dust dust = Dust.NewDustPerfect(dustPos, (Projectile.ai[2] == 1 ? 219 : Main.rand.NextBool(3) ? 272 : 86), (i * MathHelper.Pi + Projectile.rotation * Math.Sign(Projectile.velocity.X)).ToRotationVector2() * 3f); dust.noGravity = true; dust.scale = Main.rand.NextFloat(0.6f, 0.9f); } @@ -67,7 +89,7 @@ namespace CalamityMod.Projectiles.Ranged public override void OnKill(int timeLeft) { - Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), Projectile.damage / 2, Projectile.knockBack, Projectile.owner, 0, Projectile.ai[1]); + Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Vector2.Zero, ModContent.ProjectileType(), Projectile.damage / 2, Projectile.knockBack, Projectile.owner, 0, Projectile.ai[1], Projectile.ai[2] == 1 ? 1 : 0); if (Projectile.ai[1] == 0) { diff --git a/Projectiles/Ranged/NorfleetExplosion.cs b/Projectiles/Ranged/NorfleetExplosion.cs index d0a0bf3fde..66a58bd95a 100644 --- a/Projectiles/Ranged/NorfleetExplosion.cs +++ b/Projectiles/Ranged/NorfleetExplosion.cs @@ -40,9 +40,13 @@ namespace CalamityMod.Projectiles.Ranged Projectile.damage = 1; } - public override void OnKill(int timeLeft) + public override void AI() { - + if (Projectile.ai[2] == 1) + { + Projectile.friendly = false; + Projectile.hostile = true; + } } public override bool PreDraw(ref Color lightColor) diff --git a/Projectiles/Typeless/BossRushEndEffectThing.cs b/Projectiles/Typeless/BossRushEndEffectThing.cs index 06c25dedcc..b45a3230c2 100644 --- a/Projectiles/Typeless/BossRushEndEffectThing.cs +++ b/Projectiles/Typeless/BossRushEndEffectThing.cs @@ -1,5 +1,6 @@ using CalamityMod.Events; using CalamityMod.Items; +using CalamityMod.Systems; using Microsoft.Xna.Framework; using Terraria; using Terraria.Audio; @@ -35,10 +36,16 @@ namespace CalamityMod.Projectiles.Typeless BossRushEvent.SyncEndTimer((int)Time); float currentShakePower = MathHelper.Lerp(1f, 20f, Utils.GetLerpValue(140f, 180f, Time, true) * Utils.GetLerpValue(10f, 40f, Projectile.timeLeft, true)); - Main.LocalPlayer.Calamity().GeneralScreenShakePower = currentShakePower; + if (Projectile.timeLeft > 5) + Main.LocalPlayer.Calamity().GeneralScreenShakePower = currentShakePower; MoonlordDeathDrama.RequestLight(Utils.GetLerpValue(220f, 265f, Time, true) * Utils.GetLerpValue(10f, 30f, Projectile.timeLeft, true), Main.LocalPlayer.Center); + // Bit of an ugly solution, but this code prevents the end effect projectile from despawning while the end dialogue is playing. + // This fixes a bug where the first-time end dialogue did not play as intended. + if (Projectile.timeLeft < 5 && BossRushDialogueSystem.CurrentDialogueDelay != 0) + Projectile.timeLeft = 5; + Time++; } diff --git a/Sounds/Item/NuhUhUh.ogg b/Sounds/Item/NuhUhUh.ogg new file mode 100644 index 0000000000..2d9dcf16c5 Binary files /dev/null and b/Sounds/Item/NuhUhUh.ogg differ diff --git a/Systems/BossRushDialogueSystem.cs b/Systems/BossRushDialogueSystem.cs index 71dbd2a52b..518221d65e 100644 --- a/Systems/BossRushDialogueSystem.cs +++ b/Systems/BossRushDialogueSystem.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Systems public static BossRushDialoguePhase Phase = BossRushDialoguePhase.None; private static BossRushDialogueEvent[] currentSequence = null; - private static int currentSequenceIndex = 0; + public static int currentSequenceIndex = 0; public static int CurrentDialogueDelay = 0; @@ -59,80 +59,81 @@ namespace CalamityMod.Systems { // // Dialogue times were timed by Ozzatron reading them aloud with a stopwatch. + // CIT 11MAY2024: I decided to decrease all of these dialogue delays by 30 frames, in an attempt to cut down on unnecessary waiting around. // // Dialogue that occurs the first time you start Boss Rush BossRushDialogueEvent[] startDialogues = new BossRushDialogueEvent[] { - new("Mods.CalamityMod.Events.BossRushStartText_1", 360), - new("Mods.CalamityMod.Events.BossRushStartText_2", 435), - new("Mods.CalamityMod.Events.BossRushStartText_3", 240), - new("Mods.CalamityMod.Events.BossRushStartText_4", 435), - new("Mods.CalamityMod.Events.BossRushStartText_5", 480), - new("Mods.CalamityMod.Events.BossRushStartText_6", 270), - new("Mods.CalamityMod.Events.BossRushStartText_7", 465), - new("Mods.CalamityMod.Events.BossRushStartText_8", 480), - new("Mods.CalamityMod.Events.BossRushStartText_9", 330), - new("Mods.CalamityMod.Events.BossRushStartText_DoG", 180, skipFunc: () => !DownedBossSystem.downedDoG), - new("Mods.CalamityMod.Events.BossRushStartText_Yharon", 240, skipFunc: () => !DownedBossSystem.downedYharon), - new("Mods.CalamityMod.Events.BossRushStartText_DraedonSCal", 315, skipFunc: () => !DownedBossSystem.downedExoMechs || !DownedBossSystem.downedCalamitas), - new("Mods.CalamityMod.Events.BossRushStartText_10", 420), - new("Mods.CalamityMod.Events.BossRushStartText_11", 420), - new("Mods.CalamityMod.Events.BossRushStartText_12", 270), + new("Mods.CalamityMod.Events.BossRushStartText_1", 330), + new("Mods.CalamityMod.Events.BossRushStartText_2", 405), + new("Mods.CalamityMod.Events.BossRushStartText_3", 210), + new("Mods.CalamityMod.Events.BossRushStartText_4", 405), + new("Mods.CalamityMod.Events.BossRushStartText_5", 450), + new("Mods.CalamityMod.Events.BossRushStartText_6", 240), + new("Mods.CalamityMod.Events.BossRushStartText_7", 435), + new("Mods.CalamityMod.Events.BossRushStartText_8", 450), + new("Mods.CalamityMod.Events.BossRushStartText_9", 300), + new("Mods.CalamityMod.Events.BossRushStartText_DoG", 150, skipFunc: () => !DownedBossSystem.downedDoG), + new("Mods.CalamityMod.Events.BossRushStartText_Yharon", 210, skipFunc: () => !DownedBossSystem.downedYharon), + new("Mods.CalamityMod.Events.BossRushStartText_DraedonSCal", 285, skipFunc: () => !DownedBossSystem.downedExoMechs || !DownedBossSystem.downedCalamitas), + new("Mods.CalamityMod.Events.BossRushStartText_10", 390), + new("Mods.CalamityMod.Events.BossRushStartText_11", 390), + new("Mods.CalamityMod.Events.BossRushStartText_12", 240), }; // Dialogue that occurs when starting Boss Rush on repeat attempts BossRushDialogueEvent[] startDialoguesShort = new BossRushDialogueEvent[] { - new("Mods.CalamityMod.Events.BossRushStartText_Repeat", 120), + new("Mods.CalamityMod.Events.BossRushStartText_Repeat", 90), }; // Dialogue that occurs when beating Tier 1 of Boss Rush BossRushDialogueEvent[] tierOneDialogues = new BossRushDialogueEvent[] { - new("Mods.CalamityMod.Events.BossRushTierOneEndText_1", 360), - new("Mods.CalamityMod.Events.BossRushTierOneEndText_2", 255), + new("Mods.CalamityMod.Events.BossRushTierOneEndText_1", 330), + new("Mods.CalamityMod.Events.BossRushTierOneEndText_2", 225), }; // Dialogue that occurs when beating Tier 2 of Boss Rush BossRushDialogueEvent[] tierTwoDialogues = new BossRushDialogueEvent[] { - new("Mods.CalamityMod.Events.BossRushTierTwoEndText_1", 255), - new("Mods.CalamityMod.Events.BossRushTierTwoEndText_2", 300), + new("Mods.CalamityMod.Events.BossRushTierTwoEndText_1", 225), + new("Mods.CalamityMod.Events.BossRushTierTwoEndText_2", 270), }; // Dialogue that occurs when beating Tier 3 of Boss Rush BossRushDialogueEvent[] tierThreeDialogues = new BossRushDialogueEvent[] { - new("Mods.CalamityMod.Events.BossRushTierThreeEndText_1", 465), - new("Mods.CalamityMod.Events.BossRushTierThreeEndText_2", 330), + new("Mods.CalamityMod.Events.BossRushTierThreeEndText_1", 435), + new("Mods.CalamityMod.Events.BossRushTierThreeEndText_2", 300), }; // Dialogue that occurs when beating Tier 4 of Boss Rush BossRushDialogueEvent[] tierFourDialogues = new BossRushDialogueEvent[] { - new("Mods.CalamityMod.Events.BossRushTierFourEndText_1", 165), - new("Mods.CalamityMod.Events.BossRushTierFourEndText_2", 330), - new("Mods.CalamityMod.Events.BossRushTierFourEndText_3", 300), + new("Mods.CalamityMod.Events.BossRushTierFourEndText_1", 135), + new("Mods.CalamityMod.Events.BossRushTierFourEndText_2", 300), + new("Mods.CalamityMod.Events.BossRushTierFourEndText_3", 270), }; // Dialogue that occurs the first time you beat Boss Rush BossRushDialogueEvent[] endDialogues = new BossRushDialogueEvent[] { - new("Mods.CalamityMod.Events.BossRushEndText_1", 540), - new("Mods.CalamityMod.Events.BossRushEndText_2", 465), - new("Mods.CalamityMod.Events.BossRushEndText_3", 360), - new("Mods.CalamityMod.Events.BossRushEndText_4", 285), - new("Mods.CalamityMod.Events.BossRushEndText_5", 420), - new("Mods.CalamityMod.Events.BossRushEndText_6", 420), - new("Mods.CalamityMod.Events.BossRushEndText_7", 225), - new("Mods.CalamityMod.Events.BossRushEndText_8", 135), + new("Mods.CalamityMod.Events.BossRushEndText_1", 510), + new("Mods.CalamityMod.Events.BossRushEndText_2", 435), + new("Mods.CalamityMod.Events.BossRushEndText_3", 330), + new("Mods.CalamityMod.Events.BossRushEndText_4", 255), + new("Mods.CalamityMod.Events.BossRushEndText_5", 390), + new("Mods.CalamityMod.Events.BossRushEndText_6", 390), + new("Mods.CalamityMod.Events.BossRushEndText_7", 195), + new("Mods.CalamityMod.Events.BossRushEndText_8", 105), }; - // Dialogue that occurs the first time you beat Boss Rush + // Dialogue that occurs on subsequent times you beat Boss Rush BossRushDialogueEvent[] endDialoguesShort = new BossRushDialogueEvent[] { - new("Mods.CalamityMod.Events.BossRushEndText_Repeat", 510), + new("Mods.CalamityMod.Events.BossRushEndText_Repeat", 480), }; BossRushDialogue = new Dictionary() @@ -207,6 +208,10 @@ namespace CalamityMod.Systems if (GottaGoFast && CurrentDialogueDelay > GottaGoFastSpeed) CurrentDialogueDelay = GottaGoFastSpeed; } + else + { + CurrentDialogueDelay = 0; + } // If the end of a sequence has been reached, stay in this state indefinitely. // Allow the boss spawn countdown to hit zero and the next boss to appear without showing any dialogue or causing any delays. diff --git a/UI/DraedonSummoning/CodebreakerUI.Communication.cs b/UI/DraedonSummoning/CodebreakerUI.Communication.cs index 3e6f63c17c..5224045c0d 100644 --- a/UI/DraedonSummoning/CodebreakerUI.Communication.cs +++ b/UI/DraedonSummoning/CodebreakerUI.Communication.cs @@ -571,6 +571,8 @@ namespace CalamityMod.UI.DraedonSummoning { DialogVerticalOffset -= LatestDialogHeightIncrease; DialogVerticalOffset += DialogOffYCache; + DialogHeight -= DialogOffYCache; + DialogOffYCache = 0; } // Move to the next index in the dialog history once Draedon is finished speaking. diff --git a/description_workshop.txt b/description_workshop.txt index 5841686264..172d508e9c 100644 --- a/description_workshop.txt +++ b/description_workshop.txt @@ -1,5 +1,6 @@ [h1]Calamity Mod[/h1] [url=https://discord.gg/calamity]Discord[/url] [url=https://calamitymod.wiki.gg]Official Wiki[/url] +[b]LIMITED TIME![/b] [url=https://calamitymod.com/plush]Gimme Swag Plushie Campaign[/url] The Calamity Mod is a vast content mod that creates a new and refreshing experience for Terraria!