From d635e974e38dc62fc147dd10cb9a0f57ce16d8a6 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Tue, 9 Nov 2021 11:02:23 -0500 Subject: [PATCH] Right click with Armageddon to disable all dodges. --- CalPlayer/CalamityPlayer.cs | 23 ++-- CalPlayer/CalamityPlayerMiscEffects.cs | 5 +- ILEditing/ILChanges.cs | 182 +++++++++++++------------ Items/DifficultyItems/Armageddon.cs | 51 +++++-- Items/DifficultyItems/Revenge.cs | 18 +-- Localization/CalamityLocalization.cs | 18 +-- Utilities/DropHelper.cs | 36 ----- 7 files changed, 161 insertions(+), 172 deletions(-) diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 3d5fa5839e..e48434e5fc 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -29,7 +29,6 @@ using CalamityMod.NPCs.Calamitas; using CalamityMod.NPCs.Crags; using CalamityMod.NPCs.Cryogen; using CalamityMod.NPCs.DevourerofGods; -using CalamityMod.NPCs.ExoMechs; using CalamityMod.NPCs.ExoMechs.Apollo; using CalamityMod.NPCs.GreatSandShark; using CalamityMod.NPCs.Leviathan; @@ -47,11 +46,9 @@ using CalamityMod.NPCs.SupremeCalamitas; using CalamityMod.NPCs.Yharon; using CalamityMod.Particles; using CalamityMod.Projectiles.Boss; -using CalamityMod.Projectiles.DraedonsArsenal; using CalamityMod.Projectiles.Enemy; using CalamityMod.Projectiles.Environment; using CalamityMod.Projectiles.Melee; -using CalamityMod.Projectiles.Melee.Spears; using CalamityMod.Projectiles.Ranged; using CalamityMod.Projectiles.Rogue; using CalamityMod.Projectiles.Summon; @@ -77,11 +74,9 @@ using Terraria.Localization; using Terraria.ModLoader; using Terraria.ModLoader.IO; -using ProvidenceBoss = CalamityMod.NPCs.Providence.Providence; - namespace CalamityMod.CalPlayer { - public partial class CalamityPlayer : ModPlayer + public partial class CalamityPlayer : ModPlayer { #region Variables @@ -90,7 +85,6 @@ namespace CalamityMod.CalPlayer public static bool areThereAnyDamnEvents = false; public bool drawBossHPBar = true; public bool shouldDrawSmallText = true; - private const int saveVersion = 0; public int dashMod; public int projTypeJustHitBy; public int sCalDeathCount = 0; @@ -265,8 +259,9 @@ namespace CalamityMod.CalPlayer public const int ArcanumReflectCooldown = 5400; public const int EvolutionReflectCooldown = 7200; public int dodgeCooldownTimer = 0; + public bool disableAllDodges = false; - public bool canFireAtaxiaRangedProjectile = false; + public bool canFireAtaxiaRangedProjectile = false; public bool canFireAtaxiaRogueProjectile = false; public bool canFireGodSlayerRangedProjectile = false; public bool canFireBloodflareMageProjectile = false; @@ -1226,6 +1221,7 @@ namespace CalamityMod.CalPlayer { "reforgeTierSafety", reforgeTierSafety }, { "moveSpeedStat", moveSpeedStat }, { "defenseDamage", defenseDamage }, + { "disableAllDodges", disableAllDodges }, { "speedrunTimer", speedrunTimer }, { "bossTypeJustDowned", bossTypeJustDowned }, { "bossTypeJustDownedTime", bossTypeJustDownedTime } @@ -1318,8 +1314,8 @@ namespace CalamityMod.CalPlayer exactRogueLevel = tag.GetInt("exactRogueLevel"); moveSpeedStat = tag.GetInt("moveSpeedStat"); - defenseDamage = tag.GetInt("defenseDamage"); + disableAllDodges = tag.GetBool("disableAllDodges"); speedrunTimer = tag.GetInt("speedrunTimer"); bossTypeJustDowned = tag.GetInt("bossTypeJustDowned"); @@ -4132,7 +4128,7 @@ namespace CalamityMod.CalPlayer #region Dodges private bool HandleDodges() { - if (player.whoAmI != Main.myPlayer) + if (player.whoAmI != Main.myPlayer || disableAllDodges) return false; if (spectralVeil && spectralVeilImmunity > 0) @@ -4150,7 +4146,7 @@ namespace CalamityMod.CalPlayer } if (playerDashing && dashMod == 1 && player.dashDelay < 0 && dodgeScarf && !scarfCooldown && !eScarfCooldown) { - OnDodge(); + CounterScarfDodge(); return true; } @@ -4236,7 +4232,7 @@ namespace CalamityMod.CalPlayer NetMessage.SendData(MessageID.Dodge, -1, -1, null, player.whoAmI, 1f, 0f, 0f, 0, 0, 0); } - private void OnDodge() + private void CounterScarfDodge() { if (evasionScarf) player.AddBuff(ModContent.BuffType(), player.chaosState ? CalamityUtils.SecondsToFrames(20f) : CalamityUtils.SecondsToFrames(13f)); @@ -6077,7 +6073,8 @@ namespace CalamityMod.CalPlayer } } - if (dodgeCooldownTimer == 0) + // Reflects count as dodges. They share the timer and can be disabled by Armageddon right click. + if (dodgeCooldownTimer == 0 && !disableAllDodges) { // The Evolution if (projRefRare) diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 0f7f2b079e..6822e41342 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1392,7 +1392,8 @@ namespace CalamityMod.CalPlayer // Tarragon immunity effects if (modPlayer.tarraThrowing) { - if (modPlayer.tarragonImmunity) + // The iframes from the evasion are disabled by Armageddon. + if (modPlayer.tarragonImmunity && !modPlayer.disableAllDodges) { player.immune = true; player.immuneTime = 2; @@ -1404,7 +1405,7 @@ namespace CalamityMod.CalPlayer if (modPlayer.tarraThrowingCrits >= 25) { modPlayer.tarraThrowingCrits = 0; - if (player.whoAmI == Main.myPlayer) + if (player.whoAmI == Main.myPlayer && !modPlayer.disableAllDodges) player.AddBuff(ModContent.BuffType(), 180, false); } diff --git a/ILEditing/ILChanges.cs b/ILEditing/ILChanges.cs index 2d1d0a7246..17d50be52f 100644 --- a/ILEditing/ILChanges.cs +++ b/ILEditing/ILChanges.cs @@ -134,7 +134,7 @@ namespace CalamityMod.ILEditing IL.Terraria.Player.QuickMana += ApplyManaBurnIfNeeded; IL.Terraria.Player.ItemCheck += ApplyManaBurnIfNeeded; IL.Terraria.Player.AddBuff += AllowBuffTimeStackingForManaBurn; - IL.Terraria.Main.DoDraw += DrawFusableParticles; + IL.Terraria.Main.DoDraw += DrawFusableParticles; IL.Terraria.Main.DrawTiles += DrawCustomLava; IL.Terraria.GameContent.Liquid.LiquidRenderer.InternalDraw += DrawCustomLava2; IL.Terraria.Main.oldDrawWater += DrawCustomLava3; @@ -149,14 +149,14 @@ namespace CalamityMod.ILEditing IL.Terraria.Projectile.Damage += RemoveAerialBaneDamageBoost; IL.Terraria.Projectile.AI_001 += AdjustChlorophyteBullets; - // Movement speed balance - IL.Terraria.Player.Update += MaxRunSpeedAdjustment; + // Movement speed balance + IL.Terraria.Player.Update += MaxRunSpeedAdjustment; IL.Terraria.Player.Update += RunSpeedAdjustments; IL.Terraria.Player.Update += ReduceWingHoverVelocities; - // Mana regen balance - IL.Terraria.Player.Update += ManaRegenDelayAdjustment; - IL.Terraria.Player.UpdateManaRegen += ManaRegenAdjustment; + // Mana regen balance + IL.Terraria.Player.Update += ManaRegenDelayAdjustment; + IL.Terraria.Player.UpdateManaRegen += ManaRegenAdjustment; // World generation IL.Terraria.WorldGen.Pyramid += ReplacePharaohSetInPyramids; @@ -177,10 +177,10 @@ namespace CalamityMod.ILEditing IL.Terraria.NPC.NPCLoot += FixSplittingWormBannerDrops; } - /// - /// Unloads all IL Editing changes in the mod. - /// - internal static void Unload() + /// + /// Unloads all IL Editing changes in the mod. + /// + internal static void Unload() { VanillaSpawnTownNPCs = null; labDoorOpen = labDoorClosed = aLabDoorOpen = aLabDoorClosed = -1; @@ -210,23 +210,23 @@ namespace CalamityMod.ILEditing // Ravager platform fall fix On.Terraria.NPC.Collision_DecideFallThroughPlatforms -= EnableCalamityBossPlatformCollision; - // Damage and health balance - IL.Terraria.Main.DamageVar -= AdjustDamageVariance; + // Damage and health balance + IL.Terraria.Main.DamageVar -= AdjustDamageVariance; IL.Terraria.NPC.scaleStats -= RemoveExpertHardmodeScaling; IL.Terraria.Projectile.Damage -= RemoveAerialBaneDamageBoost; IL.Terraria.Projectile.AI_001 -= AdjustChlorophyteBullets; - // Movement speed balance - IL.Terraria.Player.Update -= MaxRunSpeedAdjustment; - IL.Terraria.Player.Update -= RunSpeedAdjustments; + // Movement speed balance + IL.Terraria.Player.Update -= MaxRunSpeedAdjustment; + IL.Terraria.Player.Update -= RunSpeedAdjustments; IL.Terraria.Player.Update -= ReduceWingHoverVelocities; - // Mana regen balance - IL.Terraria.Player.Update -= ManaRegenDelayAdjustment; - IL.Terraria.Player.UpdateManaRegen -= ManaRegenAdjustment; + // Mana regen balance + IL.Terraria.Player.Update -= ManaRegenDelayAdjustment; + IL.Terraria.Player.UpdateManaRegen -= ManaRegenAdjustment; - // World generation - IL.Terraria.WorldGen.Pyramid -= ReplacePharaohSetInPyramids; + // World generation + IL.Terraria.WorldGen.Pyramid -= ReplacePharaohSetInPyramids; IL.Terraria.WorldGen.MakeDungeon -= PreventDungeonHorizontalCollisions; IL.Terraria.WorldGen.DungeonHalls -= PreventDungeonHallCollisions; IL.Terraria.WorldGen.GrowLivingTree -= BlockLivingTreesNearOcean; @@ -310,7 +310,11 @@ namespace CalamityMod.ILEditing cursor.Emit(OpCodes.Ldarg_0); // Emit a delegate which places the player's Calamity dodge cooldown onto the stack. - cursor.EmitDelegate>((Player p) => p.Calamity().dodgeCooldownTimer); + // If your dodges are universally disabled by Armageddon, then they simply "never come off cooldown" and always have 1 frame left. + cursor.EmitDelegate>((Player p) => { + CalamityPlayer mp = p.Calamity(); + return mp.disableAllDodges ? 1 : mp.dodgeCooldownTimer; + }); // Bitwise OR the "RNG result" (always zero) with the dodge cooldown. This will only return zero if both values were zero. // The code path which calls NinjaDodge can ONLY occur if the result of this operation is zero, @@ -371,14 +375,14 @@ namespace CalamityMod.ILEditing return orig(i, j, forced); } - private static bool EnableCalamityBossPlatformCollision(On.Terraria.NPC.orig_Collision_DecideFallThroughPlatforms orig, NPC self) - { - if ((self.type == ModContent.NPCType() || self.type == ModContent.NPCType() || self.type == ModContent.NPCType()) && - self.target >= 0 && Main.player[self.target].position.Y > self.position.Y + self.height) - return true; + private static bool EnableCalamityBossPlatformCollision(On.Terraria.NPC.orig_Collision_DecideFallThroughPlatforms orig, NPC self) + { + if ((self.type == ModContent.NPCType() || self.type == ModContent.NPCType() || self.type == ModContent.NPCType()) && + self.target >= 0 && Main.player[self.target].position.Y > self.position.Y + self.height) + return true; - return orig(self); - } + return orig(self); + } private static void DisableTeleporters(On.Terraria.Wiring.orig_Teleport orig) { @@ -843,24 +847,24 @@ namespace CalamityMod.ILEditing cursor.Remove(); cursor.Emit(OpCodes.Ldc_R4, 150f); // Reduce homing range by 50%. } - #endregion + #endregion - #region Movement speed balance - private static void MaxRunSpeedAdjustment(ILContext il) - { - // Increase the base max run speed of the player to make early game less of a slog. - var cursor = new ILCursor(il); - if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(3f))) // The maxRunSpeed variable is set to this specific value before anything else occurs. - { - LogFailure("Base Max Run Speed Buff", "Could not locate the max run speed variable."); - return; - } - cursor.Remove(); - cursor.Emit(OpCodes.Ldc_R4, 4.5f); // Increase by 50%. - } + #region Movement speed balance + private static void MaxRunSpeedAdjustment(ILContext il) + { + // Increase the base max run speed of the player to make early game less of a slog. + var cursor = new ILCursor(il); + if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(3f))) // The maxRunSpeed variable is set to this specific value before anything else occurs. + { + LogFailure("Base Max Run Speed Buff", "Could not locate the max run speed variable."); + return; + } + cursor.Remove(); + cursor.Emit(OpCodes.Ldc_R4, 4.5f); // Increase by 50%. + } - private static void RunSpeedAdjustments(ILContext il) - { + private static void RunSpeedAdjustments(ILContext il) + { var cursor = new ILCursor(il); float horizontalSpeedCap = 3f; // +200%, aka triple speed. Vanilla caps at +60% float asphaltTopSpeedMultiplier = 1.75f; // +75%. Vanilla is +250% @@ -1021,57 +1025,57 @@ namespace CalamityMod.ILEditing cursor.Remove(); cursor.Emit(OpCodes.Ldc_R4, 10.8f); // Reduce by 10%. } - #endregion + #endregion - #region Mana regen balance - private static void ManaRegenDelayAdjustment(ILContext il) - { - // Decrease the max mana regen delay so that mage is less annoying to play without mana regen buffs. - // Decreases the max mana regen delay from a range of 31.5 - 199.5 to 4 - 52. - var cursor = new ILCursor(il); - if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(45f))) // The flat amount added to max regen delay in the formula. - { - LogFailure("Max Mana Regen Delay Reduction", "Could not locate the max mana regen flat variable."); - return; - } - cursor.Remove(); - cursor.Emit(OpCodes.Ldc_R4, 20f); // Decrease to 20f. + #region Mana regen balance + private static void ManaRegenDelayAdjustment(ILContext il) + { + // Decrease the max mana regen delay so that mage is less annoying to play without mana regen buffs. + // Decreases the max mana regen delay from a range of 31.5 - 199.5 to 4 - 52. + var cursor = new ILCursor(il); + if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(45f))) // The flat amount added to max regen delay in the formula. + { + LogFailure("Max Mana Regen Delay Reduction", "Could not locate the max mana regen flat variable."); + return; + } + cursor.Remove(); + cursor.Emit(OpCodes.Ldc_R4, 20f); // Decrease to 20f. - if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(0.7f))) // The multiplier for max mana regen delay. - { - LogFailure("Max Mana Regen Delay Reduction", "Could not locate the max mana regen delay multiplier variable."); - return; - } - cursor.Remove(); - cursor.Emit(OpCodes.Ldc_R4, 0.2f); // Decrease to 0.2f. - } + if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(0.7f))) // The multiplier for max mana regen delay. + { + LogFailure("Max Mana Regen Delay Reduction", "Could not locate the max mana regen delay multiplier variable."); + return; + } + cursor.Remove(); + cursor.Emit(OpCodes.Ldc_R4, 0.2f); // Decrease to 0.2f. + } - private static void ManaRegenAdjustment(ILContext il) - { - // Increase the base mana regen so that mage is less annoying to play without mana regen buffs. - var cursor = new ILCursor(il); - if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(0.8f))) // The multiplier for the mana regen formula: (float)statMana / (float)statManaMax2 * 0.8f + 0.2f. - { - LogFailure("Mana Regen Buff", "Could not locate the mana regen multiplier variable."); - return; - } - cursor.Remove(); - cursor.Emit(OpCodes.Ldc_R4, 0.25f); // Decrease to 0.25f. + private static void ManaRegenAdjustment(ILContext il) + { + // Increase the base mana regen so that mage is less annoying to play without mana regen buffs. + var cursor = new ILCursor(il); + if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(0.8f))) // The multiplier for the mana regen formula: (float)statMana / (float)statManaMax2 * 0.8f + 0.2f. + { + LogFailure("Mana Regen Buff", "Could not locate the mana regen multiplier variable."); + return; + } + cursor.Remove(); + cursor.Emit(OpCodes.Ldc_R4, 0.25f); // Decrease to 0.25f. - if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(0.2f))) // The flat added mana regen amount. - { - LogFailure("Mana Regen Buff", "Could not locate the flat mana regen variable."); - return; - } - cursor.Remove(); - cursor.Emit(OpCodes.Ldc_R4, 0.75f); // Increase to 0.75f. - } - #endregion + if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchLdcR4(0.2f))) // The flat added mana regen amount. + { + LogFailure("Mana Regen Buff", "Could not locate the flat mana regen variable."); + return; + } + cursor.Remove(); + cursor.Emit(OpCodes.Ldc_R4, 0.75f); // Increase to 0.75f. + } + #endregion - #region World generation + #region World generation - // Note: There is no need to replace the other Pharaoh piece, due to how the vanilla code works. - private static void ReplacePharaohSetInPyramids(ILContext il) + // Note: There is no need to replace the other Pharaoh piece, due to how the vanilla code works. + private static void ReplacePharaohSetInPyramids(ILContext il) { var cursor = new ILCursor(il); diff --git a/Items/DifficultyItems/Armageddon.cs b/Items/DifficultyItems/Armageddon.cs index faf4f3c1e4..fa61eb6e90 100644 --- a/Items/DifficultyItems/Armageddon.cs +++ b/Items/DifficultyItems/Armageddon.cs @@ -3,21 +3,24 @@ using CalamityMod.Events; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; -using Terraria.DataStructures; using Terraria.ID; -using Terraria.Localization; using Terraria.ModLoader; + namespace CalamityMod.Items.DifficultyItems { public class Armageddon : ModItem { + private static readonly Color textColor = Color.Fuchsia; + public override void SetStaticDefaults() { DisplayName.SetDefault("Armageddon"); - Tooltip.SetDefault("Makes any hit while a boss is alive instantly kill you\n" + - "Effect can be toggled on and off\n" + - "If a boss is defeated with this effect active it will drop 6 treasure bags, 5 in normal mode\n" + - "These extra bags will only drop if it's your first time killing the boss"); + Tooltip.SetDefault("Enables/disables Armageddon, can be used in any other difficulty mode\n" + + "While active, any hit while a boss is alive will instantly kill you\n" + + "If you defeat a boss for the first time with this mode active, they will drop 5 extra treasure bags\n" + + "These extra bags will drop even if you are not in Expert Mode\n" + + "Right click with this item to toggle whether your dodges are disabled\n" + + "Dodges can be disabled independently of whether or not Armageddon is not enabled"); } public override void SetDefaults() @@ -32,26 +35,44 @@ namespace CalamityMod.Items.DifficultyItems item.consumable = false; } + public override bool AltFunctionUse(Player player) => true; + public override bool UseItem(Player player) { + // Dodge toggling code is per-player and doesn't need any fancy netcode hedging. + if (player.altFunctionUse == 2) + { + // You still aren't allowed to toggle it during fights though. + if (CalamityPlayer.areThereAnyDamnBosses || CalamityWorld.DoGSecondStageCountdown > 0 || BossRushEvent.BossRushActive) + { + string key = "Mods.CalamityMod.ChangingTheRules"; + CalamityUtils.DisplayLocalizedText(key, textColor); + return true; + } + + CalamityPlayer mp = player.Calamity(); + mp.disableAllDodges = !mp.disableAllDodges; + string dodgeKey = mp.disableAllDodges ? "Mods.CalamityMod.ArmageddonDodgeDisable" : "Mods.CalamityMod.ArmageddonDodgeEnable"; + CalamityUtils.DisplayLocalizedText(dodgeKey, textColor); + return true; + } + // This world syncing code should only be run by one entity- the server, to prevent a race condition // with the packets. if (Main.netMode == NetmodeID.MultiplayerClient) return true; - if (CalamityPlayer.areThereAnyDamnBosses || CalamityWorld.DoGSecondStageCountdown > 0 || BossRushEvent.BossRushActive) - { + if (CalamityPlayer.areThereAnyDamnBosses || CalamityWorld.DoGSecondStageCountdown > 0 || BossRushEvent.BossRushActive) + { string key = "Mods.CalamityMod.ChangingTheRules"; - Color messageColor = Color.Fuchsia; - CalamityUtils.DisplayLocalizedText(key, messageColor); - return true; - } + CalamityUtils.DisplayLocalizedText(key, textColor); + return true; + } CalamityWorld.armageddon = !CalamityWorld.armageddon; CalamityWorld.DoGSecondStageCountdown = 0; - string key2 = CalamityWorld.armageddon ? "Mods.CalamityMod.ArmageddonText" : "Mods.CalamityMod.ArmageddonText2"; - Color messageColor2 = Color.Fuchsia; - CalamityUtils.DisplayLocalizedText(key2, messageColor2); + string toggleKey = CalamityWorld.armageddon ? "Mods.CalamityMod.ArmageddonText" : "Mods.CalamityMod.ArmageddonText2"; + CalamityUtils.DisplayLocalizedText(toggleKey, textColor); CalamityNetcode.SyncWorld(); diff --git a/Items/DifficultyItems/Revenge.cs b/Items/DifficultyItems/Revenge.cs index 57f3739142..6d292a20f6 100644 --- a/Items/DifficultyItems/Revenge.cs +++ b/Items/DifficultyItems/Revenge.cs @@ -16,26 +16,26 @@ namespace CalamityMod.Items.DifficultyItems DisplayName.SetDefault("Revengeance"); Tooltip.SetDefault("Enables/disables Revengeance Mode, can only be used in Expert Mode.\n" + - // Rage and Adrenaline lines + // Rage and Adrenaline lines "RAGE TOOLTIP LINE HERE\n" + "You gain Rage when in proximity of enemies or by using special items.\n" + "ADRENALINE TOOLTIP LINE HERE\n" + "You gain Adrenaline whenever a boss is alive. Getting hit drops Adrenaline back to 0.\n" + - // General enemy lines + // General enemy lines "All enemies drop 50% more coins and spawn 15% more frequently.\n" + "Certain non-boss enemies and projectiles deal between 10% and 25% more damage.\n" + "Makes certain enemies block life steal and nerfs the effectiveness of life steal.\n" + - // Misc lines - "Nerfs the effectiveness of the Titanium Armor set bonus.\n" + - "Defense damage is increased by 2.5%.\n" + + // Misc lines + "Nerfs the effectiveness of the Titanium Armor set bonus.\n" + + "Defense damage is increased by 2.5%.\n" + - // Boss lines - "All boss minions no longer drop hearts.\n" + + // Boss lines + "All boss minions no longer drop hearts.\n" + "Changes all boss AIs and some enemy AIs.\n" + - "Increases the health and damage of all bosses.\n" + - "Most bosses will enter later phases sooner if the fight has gone on for a long time."); + "Increases the health and damage of all bosses.\n" + + "Most bosses will enter later phases sooner if the fight has gone on for a long time."); } public override void SetDefaults() diff --git a/Localization/CalamityLocalization.cs b/Localization/CalamityLocalization.cs index 5cef0cdbd2..396c297519 100644 --- a/Localization/CalamityLocalization.cs +++ b/Localization/CalamityLocalization.cs @@ -131,15 +131,15 @@ namespace CalamityMod.Localization new [] { "DraedonExoPhase6Text1", "Absurd." }, new [] { "DraedonExoPhase6Text2", "I will no longer let my calculations impede my observation of this battle." }, new [] { "DraedonExoPhase6Text3", "I shall show you the full fury of my final machine." }, - new [] { "DraedonAresEnrageText", "How foolish. You cannot escape." }, + new [] { "DraedonAresEnrageText", "How foolish. You cannot escape." }, new [] { "DraedonResummonText", "Make your choice." }, new [] { "HardmodeOreTier1Text", "Your world has been blessed with Cobalt and Palladium!" }, - new [] { "HardmodeOreTier2Text", "Your world has been blessed with Mythril and Orichalcum!" }, - new [] { "HardmodeOreTier3Text", "Your world has been blessed with Adamantite and Titanium!" }, - new [] { "HardmodeOreTier4Text", "The hallow has been blessed with consecrated stone!" }, + new [] { "HardmodeOreTier2Text", "Your world has been blessed with Mythril and Orichalcum!" }, + new [] { "HardmodeOreTier3Text", "Your world has been blessed with Adamantite and Titanium!" }, + new [] { "HardmodeOreTier4Text", "The hallow has been blessed with consecrated stone!" }, - new [] { "BloodMoonText", "The Blood Moon is rising..." }, + new [] { "BloodMoonText", "The Blood Moon is rising..." }, new [] { "DargonBossText", "The dark sun awaits." }, new [] { "DargonBossText2", "My dragon deems you an unworthy opponent. You must acquire the power of the dark sun to witness his true power." }, @@ -150,11 +150,13 @@ namespace CalamityMod.Localization new [] { "DeathText", "Death is active; enjoy the fun." }, new [] { "DeathText2", "Death is not active; not fun enough for you?" }, - new [] { "MaliceText", "Malice is active; witness the horror!" }, - new [] { "MaliceText2", "Malice is not active." }, + new [] { "MaliceText", "Malice is active; witness the horror!" }, + new [] { "MaliceText2", "Malice is not active." }, - new [] { "ArmageddonText", "Bosses will now kill you instantly." }, + new [] { "ArmageddonText", "Bosses will now kill you instantly." }, new [] { "ArmageddonText2", "Bosses will no longer kill you instantly." }, + new [] { "ArmageddonDodgeDisable", "All of your dodges are now disabled." }, + new [] { "ArmageddonDodgeEnable", "All of your dodges are now re-enabled." }, new [] { "DefiledText", "Your soul is mine..." }, new [] { "DefiledText2", "Your soul is yours once more..." }, diff --git a/Utilities/DropHelper.cs b/Utilities/DropHelper.cs index c602406aca..0e9ded9deb 100644 --- a/Utilities/DropHelper.cs +++ b/Utilities/DropHelper.cs @@ -245,24 +245,6 @@ namespace CalamityMod #endregion #region Extra Boss Bags - /// - /// The number of extra loot bags bosses drop when Revengeance Mode is active.

- /// This is normally zero; Revengenace Mode provides no extra bags. - ///
- public static int RevExtraBags = 0; - - /// - /// The number of extra loot bags bosses drop when Death Mode is active.

- /// This is normally zero; Death Mode provides no extra bags. - ///
- public static int DeathExtraBags = 0; - - /// - /// The number of extra loot bags bosses drop when the Defiled Rune is active.

- /// This is normally zero; Defiled Rune provides no extra bags. - ///
- public static int DefiledExtraBags = 0; - /// /// The number of extra loot bags bosses drop when Armageddon is active.

/// This is normally 5. Bosses drop 5 bags on normal, and 6 on Expert+. @@ -295,24 +277,6 @@ namespace CalamityMod theBoss.DropBossBags(); bagsDropped++; - // If Rev is active, possibly drop extra bags. - if (CalamityWorld.revenge) - { - for (int i = 0; i < RevExtraBags; ++i) - theBoss.DropBossBags(); - - bagsDropped += RevExtraBags; - } - - // If Death is active, possibly drop extra bags. - if (CalamityWorld.death) - { - for (int i = 0; i < DeathExtraBags; ++i) - theBoss.DropBossBags(); - - bagsDropped += DeathExtraBags; - } - return bagsDropped; }