diff --git a/BiomeManagers/SulphurousSeaBiome.cs b/BiomeManagers/SulphurousSeaBiome.cs index 89b1ca7a58..04436a82c1 100644 --- a/BiomeManagers/SulphurousSeaBiome.cs +++ b/BiomeManagers/SulphurousSeaBiome.cs @@ -14,8 +14,8 @@ namespace CalamityMod.BiomeManagers { public class SulphurousSeaBiome : ModBiome { - public override ModWaterStyle WaterStyle => CalamityWorld.getFixedBoi ? ModContent.Find("CalamityMod/PissWater") : ModContent.Find("CalamityMod/SulphuricWater"); - public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => CalamityWorld.getFixedBoi ?ModContent.Find("CalamityMod/PissSeaSurfaceBGStyle") : ModContent.Find("CalamityMod/SulphurSeaSurfaceBGStyle"); + public override ModWaterStyle WaterStyle => Main.zenithWorld ? ModContent.Find("CalamityMod/PissWater") : ModContent.Find("CalamityMod/SulphuricWater"); + public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => Main.zenithWorld ?ModContent.Find("CalamityMod/PissSeaSurfaceBGStyle") : ModContent.Find("CalamityMod/SulphurSeaSurfaceBGStyle"); public override int BiomeTorchItemType => ModContent.ItemType(); public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh; public override string BestiaryIcon => "CalamityMod/BiomeManagers/SulphurousSeaIcon"; diff --git a/Buffs/StatDebuffs/ArmorCrunch.png b/Buffs/StatDebuffs/ArmorCrunch.png index 0728232dec..4f1e5013b7 100644 Binary files a/Buffs/StatDebuffs/ArmorCrunch.png and b/Buffs/StatDebuffs/ArmorCrunch.png differ diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index 4faae53e11..6b9ab5076b 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -5028,7 +5028,7 @@ namespace CalamityMod.CalPlayer if (proj.type == ProjectileID.TorchGod) { int fireDebuffTypes = CalamityWorld.death ? 9 : CalamityWorld.revenge ? 7 : Main.expertMode ? 5 : 3; - int choice = CalamityWorld.getFixedBoi ? 9 : Main.rand.Next(fireDebuffTypes); + int choice = Main.zenithWorld ? 9 : Main.rand.Next(fireDebuffTypes); switch (choice) { case 0: @@ -5145,7 +5145,7 @@ namespace CalamityMod.CalPlayer { Player.AddBuff(ModContent.BuffType(), 180); } - else if (proj.type == ProjectileID.RuneBlast && CalamityWorld.getFixedBoi) + else if (proj.type == ProjectileID.RuneBlast && Main.zenithWorld) { Player.AddBuff(ModContent.BuffType(), 600); } @@ -6516,7 +6516,7 @@ namespace CalamityMod.CalPlayer #region Nurse Modifications public override bool ModifyNurseHeal(NPC nurse, ref int health, ref bool removeDebuffs, ref string chatText) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { // https://github.com/tModLoader/tModLoader/wiki/IEntitySource#detailed-list // The meteor is considered to be spawned from the Nurse herself diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index f369493347..029ff4babb 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -170,7 +170,7 @@ namespace CalamityMod.CalPlayer } float ASPoisonLevel = 0f; - if (CalamityGlobalNPC.aquaticScourge >= 0 && CalamityWorld.getFixedBoi) + if (CalamityGlobalNPC.aquaticScourge >= 0 && Main.zenithWorld) { NPC AS = Main.npc[CalamityGlobalNPC.aquaticScourge]; //if the player is 50 blocks or more away from the head diff --git a/CalPlayer/CalamityPlayerMiscEffects.cs b/CalPlayer/CalamityPlayerMiscEffects.cs index 2d168a2fdf..aaf5aad52f 100644 --- a/CalPlayer/CalamityPlayerMiscEffects.cs +++ b/CalPlayer/CalamityPlayerMiscEffects.cs @@ -1391,7 +1391,7 @@ namespace CalamityMod.CalPlayer if (necroReviveCounter >= NecroArmorSetChange.PostMortemDuration * 60) Player.KillMe(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.NecroRevive").Format(Player.name)), 1000, -1); else if (necroReviveCounter % 60 == 59) - SoundEngine.PlaySound(SoundID.Item17, Player.Center); + SoundEngine.PlaySound(NecroArmorSetChange.TimerSound, Player.Center); } // Silva invincibility effects diff --git a/Items/Placeables/Banners/CalamityEyeBanner.png b/Items/Placeables/Banners/CalamityEyeBanner.png index e2dfb40f2c..bf1bd7655a 100644 Binary files a/Items/Placeables/Banners/CalamityEyeBanner.png and b/Items/Placeables/Banners/CalamityEyeBanner.png differ diff --git a/Items/SummonItems/CryoKey.cs b/Items/SummonItems/CryoKey.cs index 54970fc19d..209fb78018 100644 --- a/Items/SummonItems/CryoKey.cs +++ b/Items/SummonItems/CryoKey.cs @@ -55,7 +55,7 @@ namespace CalamityMod.Items.SummonItems public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale) { Texture2D texture = ModContent.Request("CalamityMod/Items/SummonItems/CryoKey").Value; - Color overlay = CalamityWorld.getFixedBoi ? Color.Red : Color.White; + Color overlay = Main.zenithWorld ? Color.Red : Color.White; spriteBatch.Draw(texture, position, null, overlay, 0f, origin, scale, 0, 0); return false; } @@ -63,7 +63,7 @@ namespace CalamityMod.Items.SummonItems public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI) { Texture2D texture = ModContent.Request("CalamityMod/Items/SummonItems/CryoKey").Value; - Color overlay = CalamityWorld.getFixedBoi ? Color.Red : lightColor; + Color overlay = Main.zenithWorld ? Color.Red : lightColor; spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, overlay, 0f, Vector2.Zero, 1f, 0, 0); return false; } @@ -74,7 +74,7 @@ namespace CalamityMod.Items.SummonItems TooltipLine name = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "ItemName"); TooltipLine line0 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0"); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { name.Text = "Pyro Key"; line0.Text = "Summons Cryogen when used in the tundra...?"; diff --git a/Items/SummonItems/EyeofDesolation.cs b/Items/SummonItems/EyeofDesolation.cs index aedc1134cb..14e53d86a1 100644 --- a/Items/SummonItems/EyeofDesolation.cs +++ b/Items/SummonItems/EyeofDesolation.cs @@ -27,7 +27,7 @@ namespace CalamityMod.Items.SummonItems public int spawnYAdd = 0; public override void SetStaticDefaults() { - ItemID.Sets.SortingPriorityBossSpawns[Type] = 10; // Pirate Map + ItemID.Sets.SortingPriorityBossSpawns[Type] = 10; // Pirate Map } public override void SetDefaults() @@ -59,7 +59,7 @@ namespace CalamityMod.Items.SummonItems else NetMessage.SendData(MessageID.SpawnBossUseLicenseStartEvent, -1, -1, null, player.whoAmI, ModContent.NPCType()); - if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld) { safeBox.X = spawnX = spawnXReset = (int)(player.Center.X - 1250f); spawnX2 = spawnXReset2 = (int)(player.Center.X + 1250f); @@ -105,7 +105,7 @@ namespace CalamityMod.Items.SummonItems Player player = Main.LocalPlayer; TooltipLine line3 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2"); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { line3.Text = "Creates a square arena of blocks, with you at its center\nEnrages during the day"; } diff --git a/Items/SummonItems/ProfanedShard.cs b/Items/SummonItems/ProfanedShard.cs index 14c0fed2ff..50f850a1af 100644 --- a/Items/SummonItems/ProfanedShard.cs +++ b/Items/SummonItems/ProfanedShard.cs @@ -37,7 +37,7 @@ namespace CalamityMod.Items.SummonItems public override bool CanUseItem(Player player) { - return !NPC.AnyNPCs(ModContent.NPCType()) && (Main.dayTime || CalamityWorld.getFixedBoi) && (player.ZoneHallow || player.ZoneUnderworldHeight) && !BossRushEvent.BossRushActive; + return !NPC.AnyNPCs(ModContent.NPCType()) && (Main.dayTime || Main.zenithWorld) && (player.ZoneHallow || player.ZoneUnderworldHeight) && !BossRushEvent.BossRushActive; } public override bool? UseItem(Player player) @@ -55,7 +55,7 @@ namespace CalamityMod.Items.SummonItems Player player = Main.LocalPlayer; TooltipLine line1 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1"); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { line1.Text = "Summons the Profaned Guardians when used in the Hallow or Underworld"; } diff --git a/Items/SummonItems/SandstormsCore.cs b/Items/SummonItems/SandstormsCore.cs index 180dd6ef56..d09997a07e 100644 --- a/Items/SummonItems/SandstormsCore.cs +++ b/Items/SummonItems/SandstormsCore.cs @@ -36,7 +36,7 @@ namespace CalamityMod.Items.SummonItems public override bool CanUseItem(Player player) { - return player.ZoneDesert && !(CalamityWorld.getFixedBoi && !player.Calamity().ZoneAstral) && !NPC.AnyNPCs(ModContent.NPCType()); + return player.ZoneDesert && !(Main.zenithWorld && !player.Calamity().ZoneAstral) && !NPC.AnyNPCs(ModContent.NPCType()); } public override bool? UseItem(Player player) @@ -55,7 +55,7 @@ namespace CalamityMod.Items.SummonItems Player player = Main.LocalPlayer; TooltipLine line0 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0"); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { line0.Text = "Summons the Great Sand Shark when used in the astral desert"; } diff --git a/Items/SummonItems/Terminus.cs b/Items/SummonItems/Terminus.cs index afdf116d9c..083b535c05 100644 --- a/Items/SummonItems/Terminus.cs +++ b/Items/SummonItems/Terminus.cs @@ -17,8 +17,8 @@ namespace CalamityMod.Items.SummonItems public override void SetDefaults() { Item.rare = ItemRarityID.Blue; - Item.width = CalamityWorld.getFixedBoi ? 54 : 28; - Item.height = CalamityWorld.getFixedBoi ? 78 : 28; + Item.width = Main.zenithWorld ? 54 : 28; + Item.height = Main.zenithWorld ? 78 : 28; Item.useAnimation = 45; Item.useTime = 45; Item.channel = true; @@ -30,7 +30,7 @@ namespace CalamityMod.Items.SummonItems public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Texture2D texture = ModContent.Request("CalamityMod/Items/SummonItems/Terminus_GFB").Value; Color overlay = Color.White; @@ -43,7 +43,7 @@ namespace CalamityMod.Items.SummonItems public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Texture2D texture = ModContent.Request("CalamityMod/Items/SummonItems/Terminus_GFB").Value; spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, 0, 0); @@ -58,7 +58,7 @@ namespace CalamityMod.Items.SummonItems Player player = Main.LocalPlayer; TooltipLine name = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "ItemName"); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { name.Text = "Ogscule"; } diff --git a/Items/VanillaArmorChanges/NecroArmorSetChange.cs b/Items/VanillaArmorChanges/NecroArmorSetChange.cs index e117cdff2a..74a3401914 100644 --- a/Items/VanillaArmorChanges/NecroArmorSetChange.cs +++ b/Items/VanillaArmorChanges/NecroArmorSetChange.cs @@ -1,4 +1,5 @@ using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; @@ -17,6 +18,7 @@ namespace CalamityMod.Items.VanillaArmorChanges public override string ArmorSetName => "Necro"; public const int PostMortemDuration = 7; + public static readonly SoundStyle TimerSound = new("CalamityMod/Sounds/Custom/TickingTimer"); public override void UpdateSetBonusText(ref string setBonusText) { diff --git a/Items/Weapons/Magic/PlasmaRifle.cs b/Items/Weapons/Magic/PlasmaRifle.cs index 94ce7bba6e..2f5f1f0980 100644 --- a/Items/Weapons/Magic/PlasmaRifle.cs +++ b/Items/Weapons/Magic/PlasmaRifle.cs @@ -4,6 +4,7 @@ using CalamityMod.Rarities; using CalamityMod.Sounds; using Microsoft.Xna.Framework; using Terraria; +using Terraria.Audio; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -13,9 +14,12 @@ namespace CalamityMod.Items.Weapons.Magic public class PlasmaRifle : ModItem, ILocalizedModType { public new string LocalizationCategory => "Items.Weapons.Magic"; + + public static readonly SoundStyle HeavyShotSound = new("CalamityMod/Sounds/Item/PlasmaRifleMain"); + public static readonly SoundStyle FastShotSound = new("CalamityMod/Sounds/Item/PlasmaRifleAlt"); + public override void SetStaticDefaults() { - ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true; } @@ -46,11 +50,11 @@ namespace CalamityMod.Items.Weapons.Magic { if (player.altFunctionUse == 2) { - Item.UseSound = CommonCalamitySounds.PlasmaBoltSound; + Item.UseSound = FastShotSound; } else { - Item.UseSound = CommonCalamitySounds.PlasmaBlastSound; + Item.UseSound = HeavyShotSound; } return base.CanUseItem(player); } diff --git a/Items/Weapons/Magic/YharimsCrystal.cs b/Items/Weapons/Magic/YharimsCrystal.cs index 210a42a3b6..ed9d8d6515 100644 --- a/Items/Weapons/Magic/YharimsCrystal.cs +++ b/Items/Weapons/Magic/YharimsCrystal.cs @@ -42,17 +42,17 @@ namespace CalamityMod.Items.Weapons.Magic public override void ModifyTooltips(List list) { TooltipLine name = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "ItemName"); - if (name != null && CalamityWorld.getFixedBoi) + if (name != null && Main.zenithWorld) name.Text = "yermes christal"; TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0"); - if (line != null && CalamityWorld.getFixedBoi) + if (line != null && Main.zenithWorld) line.Text = "...throughs a pice of dnimite"; } public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Projectile.NewProjectile(source, player.Center, Vector2.Zero, ProjectileID.Dynamite, 250, 0, player.whoAmI); return false; diff --git a/Items/Weapons/Melee/Lacerator.cs b/Items/Weapons/Melee/Lacerator.cs index 6be2875ffd..e4b63a544f 100644 --- a/Items/Weapons/Melee/Lacerator.cs +++ b/Items/Weapons/Melee/Lacerator.cs @@ -49,7 +49,7 @@ namespace CalamityMod.Items.Weapons.Melee Player player = Main.LocalPlayer; TooltipLine line3 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2"); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { line3.Text = "May be viable weapon against DoG..."; } diff --git a/Items/Weapons/Ranged/HalibutCannon.cs b/Items/Weapons/Ranged/HalibutCannon.cs index c18594f274..d6ae8306e9 100644 --- a/Items/Weapons/Ranged/HalibutCannon.cs +++ b/Items/Weapons/Ranged/HalibutCannon.cs @@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Ranged { TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0"); - if (line != null && CalamityWorld.getFixedBoi) + if (line != null && Main.zenithWorld) line.Text = "No, it sucks"; } @@ -50,7 +50,7 @@ namespace CalamityMod.Items.Weapons.Ranged SoundEngine.PlaySound(SoundID.Item38, player.Center); // Really jammed in GFB - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) return Main.rand.NextBool(5); int bulletAmt = Main.rand.Next(25, 36); diff --git a/Items/Weapons/Rogue/FinalDawn.cs b/Items/Weapons/Rogue/FinalDawn.cs index df403e53d9..d1c890d385 100644 --- a/Items/Weapons/Rogue/FinalDawn.cs +++ b/Items/Weapons/Rogue/FinalDawn.cs @@ -2,6 +2,7 @@ using CalamityMod.Rarities; using Terraria; using Terraria.ID; +using Terraria.Audio; using Terraria.ModLoader; using static Terraria.ModLoader.ModContent; @@ -9,6 +10,7 @@ namespace CalamityMod.Items.Weapons.Rogue { public class FinalDawn : RogueWeapon { + public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/FinalDawnSlash"); public override void SetDefaults() { Item.damage = 1500; diff --git a/Items/Weapons/Rogue/Supernova.cs b/Items/Weapons/Rogue/Supernova.cs index fe7afed56b..4ef4dc7e96 100644 --- a/Items/Weapons/Rogue/Supernova.cs +++ b/Items/Weapons/Rogue/Supernova.cs @@ -5,6 +5,7 @@ using CalamityMod.Rarities; using CalamityMod.Tiles.Furniture.CraftingStations; using Microsoft.Xna.Framework; using Terraria; +using Terraria.Audio; using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -13,6 +14,7 @@ namespace CalamityMod.Items.Weapons.Rogue { public class Supernova : RogueWeapon { + public static readonly SoundStyle ExplosionSound = new("CalamityMod/Sounds/Item/SupernovaBoom") { Volume = 0.8f }; public override void SetDefaults() { Item.width = 34; diff --git a/NPCs/Abyss/Bloatfish.cs b/NPCs/Abyss/Bloatfish.cs index c08815207c..f045165f51 100644 --- a/NPCs/Abyss/Bloatfish.cs +++ b/NPCs/Abyss/Bloatfish.cs @@ -216,7 +216,7 @@ namespace CalamityMod.NPCs.Abyss Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("Bloatfish3").Type, NPC.scale); } } - if (NPC.scale < 2f || CalamityWorld.getFixedBoi) + if (NPC.scale < 2f || Main.zenithWorld) { NPC.scale += 0.05f; } diff --git a/NPCs/Abyss/ColossalSquid.cs b/NPCs/Abyss/ColossalSquid.cs index 31bc97c515..6cbd44064a 100644 --- a/NPCs/Abyss/ColossalSquid.cs +++ b/NPCs/Abyss/ColossalSquid.cs @@ -347,7 +347,7 @@ namespace CalamityMod.NPCs.Abyss (Main.player[NPC.target].Center - NPC.Center).Length() < Main.player[NPC.target].Calamity().GetAbyssAggro(240f)) || NPC.justHit) { - if (CalamityWorld.getFixedBoi && Main.netMode != NetmodeID.MultiplayerClient && !clone && !hasBeenHit) + if (Main.zenithWorld && Main.netMode != NetmodeID.MultiplayerClient && !clone && !hasBeenHit) { // spawn some baby colossal squids in gfb for (int i = 0; i < 3; i++) @@ -635,7 +635,7 @@ namespace CalamityMod.NPCs.Abyss public override void ModifyTypeName(ref string typeName) { - if (CalamityWorld.getFixedBoi && clone) + if (Main.zenithWorld && clone) { typeName = CalamityUtils.GetTextValue("NPCs.TinySquid"); } diff --git a/NPCs/Abyss/EidolonWyrmHead.cs b/NPCs/Abyss/EidolonWyrmHead.cs index 5866fd9aee..00257390a3 100644 --- a/NPCs/Abyss/EidolonWyrmHead.cs +++ b/NPCs/Abyss/EidolonWyrmHead.cs @@ -101,7 +101,7 @@ namespace CalamityMod.NPCs.Abyss public override void AI() { bool adultWyrmAlive = false; - SoundStyle roar = CalamityWorld.getFixedBoi ? Sunskater.DeathSound with { Pitch = Sunskater.DeathSound.Pitch - 0.5f } : CommonCalamitySounds.WyrmScreamSound; + SoundStyle roar = Main.zenithWorld ? Sunskater.DeathSound with { Pitch = Sunskater.DeathSound.Pitch - 0.5f } : CommonCalamitySounds.WyrmScreamSound; if (CalamityGlobalNPC.adultEidolonWyrmHead != -1) { if (Main.npc[CalamityGlobalNPC.adultEidolonWyrmHead].active) diff --git a/NPCs/Abyss/ReaperShark.cs b/NPCs/Abyss/ReaperShark.cs index d9e60f29fe..60496871b6 100644 --- a/NPCs/Abyss/ReaperShark.cs +++ b/NPCs/Abyss/ReaperShark.cs @@ -605,7 +605,7 @@ namespace CalamityMod.NPCs.Abyss NPC.netUpdate = true; return; } - if (CalamityWorld.getFixedBoi && Main.netMode != NetmodeID.MultiplayerClient && NPC.ai[2] % 5 == 0) + if (Main.zenithWorld && Main.netMode != NetmodeID.MultiplayerClient && NPC.ai[2] % 5 == 0) { Vector2 direction = vector - player.Center; direction.Normalize(); diff --git a/NPCs/AcidRain/Mauler.cs b/NPCs/AcidRain/Mauler.cs index 06cc4038a2..aa1cb9206f 100644 --- a/NPCs/AcidRain/Mauler.cs +++ b/NPCs/AcidRain/Mauler.cs @@ -482,7 +482,7 @@ namespace CalamityMod.NPCs.AcidRain public override void OnKill() { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { 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; diff --git a/NPCs/AcidRain/NuclearTerror.cs b/NPCs/AcidRain/NuclearTerror.cs index e538f2b6f4..a6dace01e6 100644 --- a/NPCs/AcidRain/NuclearTerror.cs +++ b/NPCs/AcidRain/NuclearTerror.cs @@ -194,7 +194,7 @@ namespace CalamityMod.NPCs.AcidRain Walking = false; - if (CalamityWorld.getFixedBoi && !hasDoneDeathray && NPC.life <= NPC.lifeMax * 0.1f) + if (Main.zenithWorld && !hasDoneDeathray && NPC.life <= NPC.lifeMax * 0.1f) { DeathrayTime++; MasterSpark(); diff --git a/NPCs/AcidRain/Orthocera.cs b/NPCs/AcidRain/Orthocera.cs index 06fbcf0503..b58099ebf3 100644 --- a/NPCs/AcidRain/Orthocera.cs +++ b/NPCs/AcidRain/Orthocera.cs @@ -206,7 +206,7 @@ namespace CalamityMod.NPCs.AcidRain // Prevent yeeting into the sky at the speed of light. NPC.velocity = Vector2.Clamp(NPC.velocity, new Vector2(-maxSpeed), new Vector2(maxSpeed)); - if (CalamityWorld.getFixedBoi && !(!NPC.wet && NPC.collideY)) + if (Main.zenithWorld && !(!NPC.wet && NPC.collideY)) { // Spread the wrath of the damned NPC.Calamity().newAI[0]++; diff --git a/NPCs/AcidRain/Trilobite.cs b/NPCs/AcidRain/Trilobite.cs index 7f29bbacdf..172d3f8f05 100644 --- a/NPCs/AcidRain/Trilobite.cs +++ b/NPCs/AcidRain/Trilobite.cs @@ -169,7 +169,7 @@ namespace CalamityMod.NPCs.AcidRain projDamage = (int)Math.Round(projDamage * 0.8); Vector2 spikeVelocity = -NPC.velocity.RotatedByRandom(0.18f); - if (CalamityWorld.getFixedBoi) // more true to the original concept art. + if (Main.zenithWorld) // more true to the original concept art. { spikeVelocity = -projectile.velocity; spikeVelocity.Normalize(); diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBody.cs b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBody.cs index db495c0d30..83cc814255 100644 --- a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBody.cs +++ b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBody.cs @@ -196,7 +196,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm public override void ModifyTypeName(ref string typeName) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { typeName = CalamityUtils.GetTextValue("NPCs.Jared"); } diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAlt.cs b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAlt.cs index 468e085aee..6699b7716f 100644 --- a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAlt.cs +++ b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAlt.cs @@ -196,7 +196,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm public override void ModifyTypeName(ref string typeName) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { typeName = CalamityUtils.GetTextValue("NPCs.Jared"); } diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs index c3ca3aec15..38537eb792 100644 --- a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs +++ b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHead.cs @@ -77,7 +77,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm //Sounds public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/Scare"); - public static readonly SoundStyle RoarSound = new("CalamityMod/Sounds/Custom/EidolonWyrmRoarClose"); + public static readonly SoundStyle ChargeSound = new("CalamityMod/Sounds/Custom/AdultEidolonCharge"); + public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/AdultEidolonDeath"); public override void SetStaticDefaults() { @@ -113,7 +114,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm NPC.noGravity = true; NPC.noTileCollide = true; NPC.HitSound = SoundID.NPCHit1; - NPC.DeathSound = SoundID.NPCDeath6; + NPC.DeathSound = DeathSound; NPC.netAlways = true; NPC.boss = true; NPC.Calamity().VulnerableToHeat = false; @@ -121,7 +122,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm NPC.Calamity().VulnerableToElectricity = true; NPC.Calamity().VulnerableToWater = false; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { NPC.defense = 999; NPC.DR_NERD(0.9f); @@ -530,7 +531,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm if (calamityGlobalNPC.newAI[2] == chargePhaseGateValue + 1f) { if (Main.player[Main.myPlayer].active && !Main.player[Main.myPlayer].dead && Vector2.Distance(Main.player[Main.myPlayer].Center, NPC.Center) < soundDistance) - SoundEngine.PlaySound(RoarSound, Main.player[Main.myPlayer].Center); + SoundEngine.PlaySound(ChargeSound, Main.player[Main.myPlayer].Center); } // Lock into the charge phase and use this for a charge time check @@ -718,7 +719,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm if (calamityGlobalNPC.newAI[2] == chargePhaseGateValue + 1f) { if (Main.player[Main.myPlayer].active && !Main.player[Main.myPlayer].dead && Vector2.Distance(Main.player[Main.myPlayer].Center, NPC.Center) < soundDistance) - SoundEngine.PlaySound(RoarSound, Main.player[Main.myPlayer].Center); + SoundEngine.PlaySound(ChargeSound, Main.player[Main.myPlayer].Center); } // Lock into the charge phase and use this for a charge time check @@ -830,7 +831,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm if (calamityGlobalNPC.newAI[2] == chargePhaseGateValue + 1f) { if (Main.player[Main.myPlayer].active && !Main.player[Main.myPlayer].dead && Vector2.Distance(Main.player[Main.myPlayer].Center, NPC.Center) < soundDistance) - SoundEngine.PlaySound(RoarSound, Main.player[Main.myPlayer].Center); + SoundEngine.PlaySound(ChargeSound, Main.player[Main.myPlayer].Center); } // Lock into the charge phase and use this for a charge time check @@ -1110,7 +1111,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm if (calamityGlobalNPC.newAI[2] == lightningChargePhaseGateValue + 1f) { if (Main.player[Main.myPlayer].active && !Main.player[Main.myPlayer].dead && Vector2.Distance(Main.player[Main.myPlayer].Center, NPC.Center) < soundDistance) - SoundEngine.PlaySound(RoarSound, Main.player[Main.myPlayer].Center); + SoundEngine.PlaySound(ChargeSound, Main.player[Main.myPlayer].Center); } // Lock into the charge phase and use this for a charge time check @@ -1484,7 +1485,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm public override void ModifyTypeName(ref string typeName) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { typeName = CalamityUtils.GetTextValue("NPCs.Jared"); } diff --git a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTail.cs b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTail.cs index 1169613e78..a9208e336d 100644 --- a/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTail.cs +++ b/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTail.cs @@ -158,7 +158,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm public override void ModifyTypeName(ref string typeName) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { typeName = CalamityUtils.GetTextValue("NPCs.Jared"); } diff --git a/NPCs/AquaticScourge/AquaticScourgeBody.cs b/NPCs/AquaticScourge/AquaticScourgeBody.cs index 556ab6e053..0ca6d85187 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBody.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBody.cs @@ -104,7 +104,7 @@ namespace CalamityMod.NPCs.AquaticScourge vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); Color color = NPC.GetAlpha(drawColor); - if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityWorld.getFixedBoi) + if (CalamityWorld.revenge || BossRushEvent.BossRushActive || Main.zenithWorld) { if (Main.npc[(int)NPC.ai[2]].Calamity().newAI[3] > 300f) color = Color.Lerp(color, Color.SandyBrown, MathHelper.Clamp((Main.npc[(int)NPC.ai[2]].Calamity().newAI[3] - 300f) / 180f, 0f, 1f)); diff --git a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs index 900104310a..d7d271a5e4 100644 --- a/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs +++ b/NPCs/AquaticScourge/AquaticScourgeBodyAlt.cs @@ -103,7 +103,7 @@ namespace CalamityMod.NPCs.AquaticScourge vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); Color color = NPC.GetAlpha(drawColor); - if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityWorld.getFixedBoi) + if (CalamityWorld.revenge || BossRushEvent.BossRushActive || Main.zenithWorld) { if (Main.npc[(int)NPC.ai[2]].Calamity().newAI[3] > 300f) color = Color.Lerp(color, Color.SandyBrown, MathHelper.Clamp((Main.npc[(int)NPC.ai[2]].Calamity().newAI[3] - 300f) / 180f, 0f, 1f)); diff --git a/NPCs/AquaticScourge/AquaticScourgeHead.cs b/NPCs/AquaticScourge/AquaticScourgeHead.cs index 7be129ad7b..09d22fef31 100644 --- a/NPCs/AquaticScourge/AquaticScourgeHead.cs +++ b/NPCs/AquaticScourge/AquaticScourgeHead.cs @@ -144,7 +144,7 @@ namespace CalamityMod.NPCs.AquaticScourge vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); Color color = NPC.GetAlpha(drawColor); - if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityWorld.getFixedBoi) + if (CalamityWorld.revenge || BossRushEvent.BossRushActive || Main.zenithWorld) { if (NPC.Calamity().newAI[3] > 300f) color = Color.Lerp(color, Color.SandyBrown, MathHelper.Clamp((NPC.Calamity().newAI[3] - 300f) / 180f, 0f, 1f)); diff --git a/NPCs/AquaticScourge/AquaticScourgeTail.cs b/NPCs/AquaticScourge/AquaticScourgeTail.cs index 8646f8c6b3..bf8942d039 100644 --- a/NPCs/AquaticScourge/AquaticScourgeTail.cs +++ b/NPCs/AquaticScourge/AquaticScourgeTail.cs @@ -103,7 +103,7 @@ namespace CalamityMod.NPCs.AquaticScourge vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY); Color color = NPC.GetAlpha(drawColor); - if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityWorld.getFixedBoi) + if (CalamityWorld.revenge || BossRushEvent.BossRushActive || Main.zenithWorld) { if (Main.npc[(int)NPC.ai[2]].Calamity().newAI[3] > 300f) color = Color.Lerp(color, Color.SandyBrown, MathHelper.Clamp((Main.npc[(int)NPC.ai[2]].Calamity().newAI[3] - 300f) / 180f, 0f, 1f)); diff --git a/NPCs/Astral/Atlas.cs b/NPCs/Astral/Atlas.cs index 799bf8ce5b..82267fff17 100644 --- a/NPCs/Astral/Atlas.cs +++ b/NPCs/Astral/Atlas.cs @@ -278,7 +278,7 @@ namespace CalamityMod.NPCs.Astral swingYeet = false; - if (Main.rand.NextBool(1000) || CalamityWorld.getFixedBoi) //Launch the player very fast very rarely + if (Main.rand.NextBool(1000) || Main.zenithWorld) //Launch the player very fast very rarely { horMult = 12f; verMult = 2.3f; diff --git a/NPCs/Astral/HiveEnemy.cs b/NPCs/Astral/HiveEnemy.cs index 112969ab6c..b5d83c43b1 100644 --- a/NPCs/Astral/HiveEnemy.cs +++ b/NPCs/Astral/HiveEnemy.cs @@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.Astral NPC.Calamity().VulnerableToHeat = true; NPC.Calamity().VulnerableToSickness = false; SpawnModBiomes = new int[1] { ModContent.GetInstance().Type }; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { NPC.scale = 3f; } diff --git a/NPCs/AstrumAureus/AstrumAureus.cs b/NPCs/AstrumAureus/AstrumAureus.cs index 0a08c0fe12..85847f8051 100644 --- a/NPCs/AstrumAureus/AstrumAureus.cs +++ b/NPCs/AstrumAureus/AstrumAureus.cs @@ -84,7 +84,7 @@ namespace CalamityMod.NPCs.AstrumAureus if (Main.getGoodWorld) NPC.scale *= 0.8f; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) NPC.scale *= 1.5f; } @@ -230,7 +230,7 @@ namespace CalamityMod.NPCs.AstrumAureus if (NPC.spriteDirection == 1) spriteEffects = SpriteEffects.FlipHorizontally; - if (NPC.ai[0] == 0f || (slimePhaseHP && CalamityWorld.getFixedBoi)) + if (NPC.ai[0] == 0f || (slimePhaseHP && Main.zenithWorld)) { NPCTexture = TextureAssets.Npc[NPC.type].Value; GlowMaskTexture = ModContent.Request("CalamityMod/NPCs/AstrumAureus/AstrumAureusGlow").Value; @@ -283,7 +283,7 @@ namespace CalamityMod.NPCs.AstrumAureus float rotation = NPC.rotation; float offsetY = NPC.gfxOffY; Color color36 = Color.White; - if (CalamityWorld.getFixedBoi && slimePhaseHP) + if (Main.zenithWorld && slimePhaseHP) { color36 = slimePhase == 0 ? Color.Yellow : Color.Violet; } @@ -310,14 +310,14 @@ namespace CalamityMod.NPCs.AstrumAureus Vector2 vector43 = NPC.Center - screenPos; vector43 -= new Vector2(NPCTexture.Width, NPCTexture.Height / frameCount) * scale / 2f; vector43 += vector11 * scale + new Vector2(0f, 4f + offsetY); - Color toUse = CalamityWorld.getFixedBoi && slimePhaseHP ? color36 : drawColor; + Color toUse = Main.zenithWorld && slimePhaseHP ? color36 : drawColor; spriteBatch.Draw(NPCTexture, vector43, frame, NPC.GetAlpha(toUse), rotation, vector11, scale, spriteEffects, 0f); - if (NPC.ai[0] != 1 || (slimePhaseHP && CalamityWorld.getFixedBoi)) //draw only if not recharging + if (NPC.ai[0] != 1 || (slimePhaseHP && Main.zenithWorld)) //draw only if not recharging { Color color = new Color(127 - NPC.alpha, 127 - NPC.alpha, 127 - NPC.alpha, 0).MultiplyRGBA(Color.Gold); Color color40 = Color.Lerp(Color.White, color, 0.5f); - if (CalamityWorld.getFixedBoi && slimePhaseHP) + if (Main.zenithWorld && slimePhaseHP) { color40 = slimePhase == 0 ? Color.Violet : Color.Yellow; } diff --git a/NPCs/AstrumAureus/AureusSpawn.cs b/NPCs/AstrumAureus/AureusSpawn.cs index 157d20934f..5409d53773 100644 --- a/NPCs/AstrumAureus/AureusSpawn.cs +++ b/NPCs/AstrumAureus/AureusSpawn.cs @@ -377,7 +377,7 @@ namespace CalamityMod.NPCs.AstrumAureus public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { - int debuffType = CalamityWorld.getFixedBoi ? ModContent.BuffType() : ModContent.BuffType(); + int debuffType = Main.zenithWorld ? ModContent.BuffType() : ModContent.BuffType(); target.AddBuff(debuffType, (int)(180 * NPC.scale), true); } } diff --git a/NPCs/AstrumDeus/AstrumDeusBody.cs b/NPCs/AstrumDeus/AstrumDeusBody.cs index 85a6a7054e..88aefe12f6 100644 --- a/NPCs/AstrumDeus/AstrumDeusBody.cs +++ b/NPCs/AstrumDeus/AstrumDeusBody.cs @@ -180,7 +180,7 @@ namespace CalamityMod.NPCs.AstrumDeus public override void HitEffect(NPC.HitInfo hit) { - if (NPC.life <= 0 && CalamityWorld.getFixedBoi) // I value people's computers + if (NPC.life <= 0 && Main.zenithWorld) // I value people's computers { NPC.position.X = NPC.position.X + (NPC.width / 2); NPC.position.Y = NPC.position.Y + (NPC.height / 2); diff --git a/NPCs/AstrumDeus/AstrumDeusHead.cs b/NPCs/AstrumDeus/AstrumDeusHead.cs index ef8ea1ac13..7c94d45e9e 100644 --- a/NPCs/AstrumDeus/AstrumDeusHead.cs +++ b/NPCs/AstrumDeus/AstrumDeusHead.cs @@ -35,6 +35,8 @@ namespace CalamityMod.NPCs.AstrumDeus public class AstrumDeusHead : ModNPC { public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/AstrumDeusSpawn"); + public static readonly SoundStyle LaserSound = new("CalamityMod/Sounds/Custom/AstrumDeusLaser"); + public static readonly SoundStyle MineSound = new("CalamityMod/Sounds/Custom/AstrumDeusMine"); public static readonly SoundStyle SplitSound = new("CalamityMod/Sounds/Custom/AstrumDeusSplit"); public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/AstrumDeusDeath"); @@ -92,7 +94,7 @@ namespace CalamityMod.NPCs.AstrumDeus NPC.Calamity().VulnerableToSickness = false; SpawnModBiomes = new int[1] { ModContent.GetInstance().Type }; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { if (CalamityWorld.death) // killing 10 worms with half of the og's health is ridiculous NPC.lifeMax /= 3; @@ -218,7 +220,7 @@ namespace CalamityMod.NPCs.AstrumDeus { if (NPC.life <= 0) { - if (CalamityWorld.getFixedBoi && Main.rand.NextBool(5)) // I value people's computers + if (Main.zenithWorld && Main.rand.NextBool(5)) // I value people's computers { NPC.position.X = NPC.position.X + (NPC.width / 2); NPC.position.Y = NPC.position.Y + (NPC.height / 2); diff --git a/NPCs/AstrumDeus/AstrumDeusTail.cs b/NPCs/AstrumDeus/AstrumDeusTail.cs index 11ea7b80ef..4c520b3185 100644 --- a/NPCs/AstrumDeus/AstrumDeusTail.cs +++ b/NPCs/AstrumDeus/AstrumDeusTail.cs @@ -156,7 +156,7 @@ namespace CalamityMod.NPCs.AstrumDeus public override void HitEffect(NPC.HitInfo hit) { - if (NPC.life <= 0 && CalamityWorld.getFixedBoi) // I value people's computers + if (NPC.life <= 0 && Main.zenithWorld) // I value people's computers { NPC.position.X = NPC.position.X + (NPC.width / 2); NPC.position.Y = NPC.position.Y + (NPC.height / 2); diff --git a/NPCs/BrimstoneElemental/Brimling.cs b/NPCs/BrimstoneElemental/Brimling.cs index 88e7307a0e..228d8a576b 100644 --- a/NPCs/BrimstoneElemental/Brimling.cs +++ b/NPCs/BrimstoneElemental/Brimling.cs @@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental NPC.Calamity().VulnerableToWater = true; SpawnModBiomes = new int[1] { ModContent.GetInstance().Type }; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) NPC.scale *= 0.7f; } diff --git a/NPCs/BrimstoneElemental/BrimstoneElemental.cs b/NPCs/BrimstoneElemental/BrimstoneElemental.cs index 04c81e882a..08783dd3f1 100644 --- a/NPCs/BrimstoneElemental/BrimstoneElemental.cs +++ b/NPCs/BrimstoneElemental/BrimstoneElemental.cs @@ -310,7 +310,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental npcOffset += origin * NPC.scale + new Vector2(0f, NPC.gfxOffY); // Give brimmy an outline based on current elemental mode - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Color baseColor = Color.Red; switch (currentMode) diff --git a/NPCs/Bumblebirb/Bumblefuck.cs b/NPCs/Bumblebirb/Bumblefuck.cs index 38b26fac9c..9adde4d48f 100644 --- a/NPCs/Bumblebirb/Bumblefuck.cs +++ b/NPCs/Bumblebirb/Bumblefuck.cs @@ -131,7 +131,7 @@ namespace CalamityMod.NPCs.Bumblebirb bool birbSpawn = NPC.ai[0] == 4f && NPC.ai[1] > 0f; // Animation goes nyoom - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { NPC.frameCounter += 4; } @@ -412,7 +412,7 @@ namespace CalamityMod.NPCs.Bumblebirb public override void BossLoot(ref string name, ref int potionType) { - name = CalamityWorld.getFixedBoi ? "A Bumblebirb" : "A Dragonfolly"; + name = Main.zenithWorld ? "A Bumblebirb" : "A Dragonfolly"; potionType = ItemID.SuperHealingPotion; } @@ -465,7 +465,7 @@ namespace CalamityMod.NPCs.Bumblebirb DownedBossSystem.downedDragonfolly = true; CalamityNetcode.SyncWorld(); - if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld) { int spacing = 40; int amt = 7; @@ -490,7 +490,7 @@ namespace CalamityMod.NPCs.Bumblebirb public override void ModifyTypeName(ref string typeName) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { typeName = CalamityUtils.GetTextValue("NPCs.Bumblebirb"); } diff --git a/NPCs/Bumblebirb/Bumblefuck2.cs b/NPCs/Bumblebirb/Bumblefuck2.cs index 8308000e4c..467ef7d666 100644 --- a/NPCs/Bumblebirb/Bumblefuck2.cs +++ b/NPCs/Bumblebirb/Bumblefuck2.cs @@ -55,7 +55,7 @@ namespace CalamityMod.NPCs.Bumblebirb if (Main.rand.NextBool(4) && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) Item.NewItem(NPC.GetSource_Loot(), (int)NPC.position.X, (int)NPC.position.Y, NPC.width, NPC.height, ItemID.Heart); - if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld) { SoundEngine.PlaySound(CommonCalamitySounds.LightningSound, NPC.Center - Vector2.UnitY * 300f); for (int i = 0; i < 5; i++) @@ -72,7 +72,7 @@ namespace CalamityMod.NPCs.Bumblebirb public override void FindFrame(int frameHeight) { NPC.frameCounter += NPC.ai[0] == 2.1f ? 1.5 : 1D; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { NPC.frameCounter += 2D; } @@ -124,7 +124,7 @@ namespace CalamityMod.NPCs.Bumblebirb public override void ModifyTypeName(ref string typeName) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { typeName = CalamityUtils.GetTextValue("NPCs.Bumblebirb"); } diff --git a/NPCs/CalClone/CalamitasClone.cs b/NPCs/CalClone/CalamitasClone.cs index 888e6d5206..768d992b2b 100644 --- a/NPCs/CalClone/CalamitasClone.cs +++ b/NPCs/CalClone/CalamitasClone.cs @@ -157,7 +157,7 @@ namespace CalamityMod.NPCs.CalClone texture = ModContent.Request("CalamityMod/NPCs/CalClone/CalamitasCloneGlow").Value; Color color = Color.Lerp(Color.White, Color.Red, 0.5f); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { color = Color.CornflowerBlue; } diff --git a/NPCs/CalamityAI.cs b/NPCs/CalamityAI.cs index 95f2feda5f..9055cce30c 100644 --- a/NPCs/CalamityAI.cs +++ b/NPCs/CalamityAI.cs @@ -42,7 +42,7 @@ namespace CalamityMod.NPCs bool revenge = CalamityWorld.revenge || bossRush; bool death = CalamityWorld.death || bossRush; - bool getFuckedAI = CalamityWorld.getFixedBoi; + bool getFuckedAI = Main.zenithWorld; if (head) CalamityGlobalNPC.aquaticScourge = npc.whoAmI; @@ -758,7 +758,7 @@ namespace CalamityMod.NPCs } } - if (CalamityWorld.getFixedBoi) // in gfb, Brimmy channels the power of the other elementals. + if (Main.zenithWorld) // in gfb, Brimmy channels the power of the other elementals. { int newMode; if (lifeRatio <= 0.8f && lifeRatio > 0.6f) @@ -907,7 +907,7 @@ namespace CalamityMod.NPCs if (npc.alpha >= 255) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { SoundEngine.PlaySound(SoundID.Item68, npc.Center); int type = ModContent.ProjectileType(); @@ -1202,7 +1202,7 @@ namespace CalamityMod.NPCs Projectile.NewProjectile(npc.GetSource_FromAI(), source, laserVelocity2, type, damage, 0f, Main.myPlayer, 0f, npc.whoAmI); if (Main.getGoodWorld) Projectile.NewProjectile(npc.GetSource_FromAI(), source, -laserVelocity2, type, damage, 0f, Main.myPlayer, 0f, npc.whoAmI); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Projectile.NewProjectile(npc.GetSource_FromAI(), source, new Vector2(-laserVelocity2.X, laserVelocity2.Y), type, damage, 0f, Main.myPlayer, 0f, npc.whoAmI); Projectile.NewProjectile(npc.GetSource_FromAI(), source, new Vector2(laserVelocity2.X, -laserVelocity2.Y), type, damage, 0f, Main.myPlayer, 0f, npc.whoAmI); @@ -1243,7 +1243,7 @@ namespace CalamityMod.NPCs if (Main.getGoodWorld) Projectile.NewProjectile(npc.GetSource_FromAI(), source, -laserVelocity, ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, npc.whoAmI); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Projectile.NewProjectile(npc.GetSource_FromAI(), source, new Vector2(-laserVelocity.X, laserVelocity.Y), ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, npc.whoAmI); Projectile.NewProjectile(npc.GetSource_FromAI(), source, new Vector2(laserVelocity.X, -laserVelocity.Y), ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 0f, npc.whoAmI); @@ -1260,7 +1260,7 @@ namespace CalamityMod.NPCs Projectile.NewProjectile(npc.GetSource_FromAI(), source.X, source.Y, npc.localAI[0], npc.localAI[1], ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 1f, npc.whoAmI); if (Main.getGoodWorld) Projectile.NewProjectile(npc.GetSource_FromAI(), source.X, source.Y, -npc.localAI[0], -npc.localAI[1], ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 1f, npc.whoAmI); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Projectile.NewProjectile(npc.GetSource_FromAI(), source.X, source.Y, -npc.localAI[0], npc.localAI[1], ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 1f, npc.whoAmI); Projectile.NewProjectile(npc.GetSource_FromAI(), source.X, source.Y, npc.localAI[0], -npc.localAI[1], ModContent.ProjectileType(), 0, 0f, Main.myPlayer, 1f, npc.whoAmI); @@ -1608,7 +1608,7 @@ namespace CalamityMod.NPCs { int type = ModContent.ProjectileType(); int damage = npc.GetProjectileDamage(type); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { type = ModContent.ProjectileType(); } @@ -2207,7 +2207,7 @@ namespace CalamityMod.NPCs npc.velocity.Y = num872 * num873; npc.ai[1] = 2f; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { SoundEngine.PlaySound(SupremeCalamitas.SupremeCalamitas.BrimstoneShotSound, npc.Center); @@ -2514,7 +2514,7 @@ namespace CalamityMod.NPCs npc.velocity.Y = num872 * num873; npc.ai[1] = 2f; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { SoundEngine.PlaySound(SupremeCalamitas.SupremeCalamitas.BrimstoneShotSound, npc.Center); @@ -2701,7 +2701,7 @@ namespace CalamityMod.NPCs bool geldonPhase1 = lifeRatio > 0.6f && lifeRatio <= 0.7f; bool geldonPhase2 = lifeRatio <= 0.1f; - if (CalamityWorld.getFixedBoi && (geldonPhase1 || geldonPhase2)) + if (Main.zenithWorld && (geldonPhase1 || geldonPhase2)) { AstrumAureus.AstrumAureus astrumAureus = npc.ModNPC(); astrumAureus.slimeProjCounter++; @@ -3087,10 +3087,10 @@ namespace CalamityMod.NPCs if (npc.velocity.Y == 0f) { // Play stomp sound. Gotta specify the filepath to avoid confusion between the namespace and npc - SoundStyle soundToPlay = CalamityWorld.getFixedBoi ? NPCs.ExoMechs.Ares.AresGaussNuke.NukeExplosionSound : NPCs.AstrumAureus.AstrumAureus.StompSound; + SoundStyle soundToPlay = Main.zenithWorld ? NPCs.ExoMechs.Ares.AresGaussNuke.NukeExplosionSound : NPCs.AstrumAureus.AstrumAureus.StompSound; SoundEngine.PlaySound(soundToPlay, npc.Center); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { float screenShakePower = 16 * Utils.GetLerpValue(1300f, 0f, npc.Distance(Main.LocalPlayer.Center), true); if (Main.LocalPlayer.Calamity().GeneralScreenShakePower < screenShakePower) @@ -3137,7 +3137,7 @@ namespace CalamityMod.NPCs SoundEngine.PlaySound(SoundID.Item33, npc.Center); if (Main.netMode != NetmodeID.MultiplayerClient) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { int type = Main.rand.NextBool(2) ? ModContent.ProjectileType() : ModContent.ProjectileType(); int damage = npc.GetProjectileDamage(type); @@ -3560,7 +3560,7 @@ namespace CalamityMod.NPCs int phase1Length = death ? 80 : revenge ? 70 : expertMode ? 60 : 50; int phase2Length = phase1Length / 2; int gfbLength = phase1Length / 10; - int maxLength = CalamityWorld.getFixedBoi && doubleWormPhase ? gfbLength : doubleWormPhase ? phase2Length : phase1Length; + int maxLength = Main.zenithWorld && doubleWormPhase ? gfbLength : doubleWormPhase ? phase2Length : phase1Length; // Become gradually more pissed as more worms are killed int gfbMaxWormCount = 10; @@ -3655,7 +3655,7 @@ namespace CalamityMod.NPCs // Do not spawn worms client side. The server handles this. if (Main.netMode != NetmodeID.MultiplayerClient) { - int wormamt = CalamityWorld.getFixedBoi ? 5 : 1; + int wormamt = Main.zenithWorld ? 5 : 1; for (int i = 0; i < wormamt; i++) { // Now that the original worm doesn't exist, startCount can be zero. @@ -3709,7 +3709,7 @@ namespace CalamityMod.NPCs } } - if (CalamityWorld.getFixedBoi && calamityGlobalNPC.newAI[1] < 10f) // desync the deuses + if (Main.zenithWorld && calamityGlobalNPC.newAI[1] < 10f) // desync the deuses { float pushForce = 0.25f; for (int k = 0; k < Main.maxNPCs; k++) @@ -3758,7 +3758,7 @@ namespace CalamityMod.NPCs npc.realLife = (int)npc.ai[2]; // Emit light - if (!CalamityWorld.getFixedBoi) + if (!Main.zenithWorld) Lighting.AddLight((int)((npc.position.X + (npc.width / 2)) / 16f), (int)((npc.position.Y + (npc.height / 2)) / 16f), 0.2f, 0.05f, 0.2f); // Dust and alpha effects @@ -4195,7 +4195,7 @@ namespace CalamityMod.NPCs if (Vector2.Distance(player.Center, npc.Center) > 80f) { - SoundEngine.PlaySound(shootGodRays ? SoundID.Item91 : SoundID.Item12, npc.Center); + SoundEngine.PlaySound(AstrumDeusHead.LaserSound, npc.Center); float num941 = (death ? 16f : revenge ? 14f : 13f) + enrageScale * 4f; Vector2 vector104 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + (npc.height / 2)); float num942 = player.position.X + player.width * 0.5f - vector104.X; @@ -4967,10 +4967,10 @@ namespace CalamityMod.NPCs // Sound if (calamityGlobalNPC.newAI[1] == newPhaseTimer - 60f) { - float squawkpitch = CalamityWorld.getFixedBoi ? 1.3f : 0.25f; + float squawkpitch = Main.zenithWorld ? 1.3f : 0.25f; SoundEngine.PlaySound(SoundID.DD2_BetsyScream with { Pitch = squawkpitch }, npc.Center); - if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld) { int spacing = 20; int amt = 5; @@ -5005,10 +5005,10 @@ namespace CalamityMod.NPCs // Sound if (calamityGlobalNPC.newAI[0] == newPhaseTimer - 60f) { - float squawkpitch = CalamityWorld.getFixedBoi ? 1.3f : 0.25f; + float squawkpitch = Main.zenithWorld ? 1.3f : 0.25f; SoundEngine.PlaySound(SoundID.DD2_BetsyScream with { Pitch = squawkpitch }, npc.Center); - if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld) { int spacing = 20; int amt = 3; @@ -5503,10 +5503,10 @@ namespace CalamityMod.NPCs // Sound if (npc.ai[1] == birbSpawnPhaseTimer - 60f) { - float squawkpitch = CalamityWorld.getFixedBoi ? 1.3f : 0.25f; + float squawkpitch = Main.zenithWorld ? 1.3f : 0.25f; SoundEngine.PlaySound(SoundID.DD2_BetsyScream with { Pitch = squawkpitch }, npc.Center); - if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld) { int spacing = 30; int amt = 3; @@ -5572,7 +5572,7 @@ namespace CalamityMod.NPCs npc.netUpdate = true; } - if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld) { int spacing = 30; int amt = 3; @@ -5678,7 +5678,7 @@ namespace CalamityMod.NPCs value44.Normalize(); value44 *= scaleFactor20; npc.velocity = (npc.velocity * (num1377 - 1f) + value44) / num1377; - if (Main.getGoodWorld && !CalamityWorld.getFixedBoi) + if (Main.getGoodWorld && !Main.zenithWorld) npc.velocity *= 1.15f; } else if (npc.velocity.Length() > 2f) @@ -5728,7 +5728,7 @@ namespace CalamityMod.NPCs value45.Normalize(); value45 *= scaleFactor21; npc.velocity = (npc.velocity * (num1378 - 1f) + value45) / num1378; - if (Main.getGoodWorld && !CalamityWorld.getFixedBoi) + if (Main.getGoodWorld && !Main.zenithWorld) npc.velocity *= 1.15f; npc.netSpam = 5; @@ -5757,7 +5757,7 @@ namespace CalamityMod.NPCs vector242.Normalize(); vector242 *= scaleFactor22; npc.velocity = (npc.velocity * (num1379 - 1f) + vector242) / num1379; - if (Main.getGoodWorld && !CalamityWorld.getFixedBoi) + if (Main.getGoodWorld && !Main.zenithWorld) npc.velocity *= 1.15f; if (npc.velocity.X < 0f) @@ -5773,7 +5773,7 @@ namespace CalamityMod.NPCs if (npc.ai[1] > 10f) { npc.velocity = vector242; - if (Main.getGoodWorld && !CalamityWorld.getFixedBoi) + if (Main.getGoodWorld && !Main.zenithWorld) npc.velocity *= 1.15f; if (npc.velocity.X < 0f) @@ -5960,7 +5960,7 @@ namespace CalamityMod.NPCs int num13 = maxToothBallBelches * toothBallSpinPhaseDivisor; float spinTime = num13 / 2f; float toothBallSpinToothBallVelocity = bossRush ? 14f : death ? 9.5f : 9f; - float scaleFactor4 = CalamityWorld.getFixedBoi ? 44f : 22f; + float scaleFactor4 = Main.zenithWorld ? 44f : 22f; float num15 = MathHelper.TwoPi / spinTime; int num16 = 75; @@ -6014,7 +6014,7 @@ namespace CalamityMod.NPCs if (calamityGlobalNPC.newAI[0] % 60f == 0f) SoundEngine.PlaySound(OldDuke.OldDuke.HuffSound, player.Center); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { float screenShakePower = 10 * Utils.GetLerpValue(800f, 0f, npc.Distance(Main.LocalPlayer.Center), true); if (Main.LocalPlayer.Calamity().GeneralScreenShakePower < screenShakePower) @@ -7667,7 +7667,7 @@ namespace CalamityMod.NPCs { Dust.NewDust(npc.position, npc.width, npc.height, (int)CalamityDusts.Brimstone, 0f, -1f, 0, default, 1f); } - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { float screenShakePower = 2 * Utils.GetLerpValue(1300f, 0f, npc.Distance(Main.LocalPlayer.Center), true); if (Main.LocalPlayer.Calamity().GeneralScreenShakePower < screenShakePower) diff --git a/NPCs/CalamityGlobalAI.cs b/NPCs/CalamityGlobalAI.cs index 46431c9411..77f0a9f8a6 100644 --- a/NPCs/CalamityGlobalAI.cs +++ b/NPCs/CalamityGlobalAI.cs @@ -5221,9 +5221,9 @@ namespace CalamityMod.NPCs } if (npc.justHit) - npc.ai[0] = (npc.type == NPCID.RuneWizard && CalamityWorld.getFixedBoi) ? 5f : 2f; + npc.ai[0] = (npc.type == NPCID.RuneWizard && Main.zenithWorld) ? 5f : 2f; - npc.ai[0] += (npc.type == NPCID.RuneWizard && CalamityWorld.getFixedBoi) ? 5f : 2f; + npc.ai[0] += (npc.type == NPCID.RuneWizard && Main.zenithWorld) ? 5f : 2f; if (npc.type == NPCID.Necromancer || npc.type == NPCID.NecromancerArmored) { @@ -6603,7 +6603,7 @@ namespace CalamityMod.NPCs if (Main.getGoodWorld) { projAmt = Main.rand.Next(8, 14); - if (Main.rand.NextBool(1000) || CalamityWorld.getFixedBoi) + if (Main.rand.NextBool(1000) || Main.zenithWorld) projAmt = Main.rand.Next(80, 131); } diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index 4c56698e7f..85583861ca 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -1313,7 +1313,7 @@ namespace CalamityMod.NPCs else if (CalamityLists.DestroyerIDs.Contains(npc.type)) { npc.lifeMax = (int)(npc.lifeMax * 1.25); - npc.scale *= CalamityWorld.getFixedBoi ? 2.5f : CalamityWorld.death ? 1.7f : 1.5f; + npc.scale *= Main.zenithWorld ? 2.5f : CalamityWorld.death ? 1.7f : 1.5f; npc.npcSlots = 10f; } else if (npc.type == NPCID.Probe) @@ -1321,7 +1321,7 @@ namespace CalamityMod.NPCs if (CalamityWorld.death) npc.lifeMax = (int)(npc.lifeMax * 2.0); - npc.scale *= CalamityWorld.getFixedBoi ? 2f : CalamityWorld.death ? 1.3f : 1.2f; + npc.scale *= Main.zenithWorld ? 2f : CalamityWorld.death ? 1.3f : 1.2f; } else if (npc.type == NPCID.SkeletronPrime) { @@ -2812,7 +2812,7 @@ namespace CalamityMod.NPCs } // Setting this in SetDefaults will disable expert mode scaling, so put it here instead - if (CalamityLists.ZeroContactDamageNPCList.Contains(npc.type) && (npc.type != NPCID.RuneWizard || !CalamityWorld.getFixedBoi)) + if (CalamityLists.ZeroContactDamageNPCList.Contains(npc.type) && (npc.type != NPCID.RuneWizard || !Main.zenithWorld)) npc.damage = npc.defDamage = 0; // Don't do damage for 42 frames after spawning in @@ -2874,7 +2874,7 @@ namespace CalamityMod.NPCs } } - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { if (npc.type == NPCID.QueenBee) return QueenBeeAI.BuffedQueenBeeAI(npc, Mod); @@ -4396,7 +4396,7 @@ namespace CalamityMod.NPCs break; case NPCID.RuneWizard: - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) target.AddBuff(BuffType(), 600); break; @@ -5496,7 +5496,7 @@ namespace CalamityMod.NPCs if (Main.LocalPlayer.Calamity().trippy || (npc.type == NPCID.KingSlime && CalamityWorld.LegendaryMode && CalamityWorld.revenge)) return new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, npc.alpha); - if (npc.type == NPCID.QueenBee && CalamityWorld.getFixedBoi) + if (npc.type == NPCID.QueenBee && Main.zenithWorld) { if (npc.life / (float)npc.lifeMax < 0.5f) return new Color(0, 255, 0, npc.alpha); @@ -5838,7 +5838,7 @@ namespace CalamityMod.NPCs } } - if (CalamityWorld.getFixedBoi && NPC.AnyNPCs(NPCType())) + if (Main.zenithWorld && NPC.AnyNPCs(NPCType())) { Main.spriteBatch.End(); Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.Default, RasterizerState.CullNone, null, Main.GameViewMatrix.ZoomMatrix); diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index 3f812c9d08..6f3fc0aae4 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -2101,7 +2101,7 @@ namespace CalamityMod.NPCs } bool normalShark = npc.type == NPCID.SandShark || npc.type == NPCID.SandsharkHallow || npc.type == NPCID.SandsharkCorrupt || npc.type == NPCID.SandsharkCrimson; - if (NPC.downedPlantBoss && (normalShark || (npc.type == ModContent.NPCType() && CalamityWorld.getFixedBoi)) && !NPC.AnyNPCs(ModContent.NPCType())) + if (NPC.downedPlantBoss && (normalShark || (npc.type == ModContent.NPCType() && Main.zenithWorld)) && !NPC.AnyNPCs(ModContent.NPCType())) { CalamityMod.sharkKillCount++; if (CalamityMod.sharkKillCount == 4) diff --git a/NPCs/CeaselessVoid/CeaselessVoid.cs b/NPCs/CeaselessVoid/CeaselessVoid.cs index 90c5b2c4b4..421649dd9d 100644 --- a/NPCs/CeaselessVoid/CeaselessVoid.cs +++ b/NPCs/CeaselessVoid/CeaselessVoid.cs @@ -263,7 +263,7 @@ namespace CalamityMod.NPCs.CeaselessVoid { NPC.soundDelay = 8; float pitchVar = 0; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { pitchVar = Main.rand.Next(-60, 41) * 0.01f; } diff --git a/NPCs/CeaselessVoid/DarkEnergy.cs b/NPCs/CeaselessVoid/DarkEnergy.cs index 72b497ed20..3db158de3a 100644 --- a/NPCs/CeaselessVoid/DarkEnergy.cs +++ b/NPCs/CeaselessVoid/DarkEnergy.cs @@ -273,8 +273,8 @@ namespace CalamityMod.NPCs.CeaselessVoid public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo) { - int debufftype = CalamityWorld.getFixedBoi ? BuffID.Obstructed : BuffID.VortexDebuff; - int duration = CalamityWorld.getFixedBoi ? 30 : 60; + int debufftype = Main.zenithWorld ? BuffID.Obstructed : BuffID.VortexDebuff; + int duration = Main.zenithWorld ? 30 : 60; if (hurtInfo.Damage > 0) target.AddBuff(debufftype, duration, true); } diff --git a/NPCs/Crabulon/CrabShroom.cs b/NPCs/Crabulon/CrabShroom.cs index c948fd0826..acfa3e5db0 100644 --- a/NPCs/Crabulon/CrabShroom.cs +++ b/NPCs/Crabulon/CrabShroom.cs @@ -128,7 +128,7 @@ namespace CalamityMod.NPCs.Crabulon } } - public override Color? GetAlpha(Color drawColor) => CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, drawColor.A) * NPC.Opacity : null; + public override Color? GetAlpha(Color drawColor) => Main.zenithWorld ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, drawColor.A) * NPC.Opacity : null; public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) { @@ -138,10 +138,10 @@ namespace CalamityMod.NPCs.Crabulon Texture2D texture = TextureAssets.Npc[NPC.type].Value; Texture2D glow = ModContent.Request("CalamityMod/NPCs/Crabulon/CrabShroomGlow").Value; - Color colorToShift = CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : Color.Cyan; + Color colorToShift = Main.zenithWorld ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : Color.Cyan; Color glowColor = Color.Lerp(Color.White, colorToShift, 0.5f); - int ClonesAroundShroom = CalamityWorld.getFixedBoi ? 4 : 0; + int ClonesAroundShroom = Main.zenithWorld ? 4 : 0; for (int c = 0; c < 1 + ClonesAroundShroom; c++) { Vector2 drawOrigin = new Vector2(texture.Width / 2, texture.Height / Main.npcFrameCount[NPC.type] / 2); diff --git a/NPCs/Crabulon/Crabulon.cs b/NPCs/Crabulon/Crabulon.cs index 8af24d2fb9..7e2e370881 100644 --- a/NPCs/Crabulon/Crabulon.cs +++ b/NPCs/Crabulon/Crabulon.cs @@ -540,7 +540,7 @@ namespace CalamityMod.NPCs.Crabulon int num624 = Dust.NewDust(new Vector2(NPC.position.X - 20f, NPC.position.Y + NPC.height), NPC.width + 20, 4, 56, 0f, 0f, 100, default, 1.5f); Main.dust[num624].velocity *= 0.2f; } - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { int x = num622 / 16; int y = (int)(NPC.position.Y + NPC.height) / 16; @@ -769,7 +769,7 @@ namespace CalamityMod.NPCs.Crabulon } } - public override Color? GetAlpha(Color drawColor) => CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, drawColor.A) * NPC.Opacity : null; + public override Color? GetAlpha(Color drawColor) => Main.zenithWorld ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, drawColor.A) * NPC.Opacity : null; public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) { @@ -783,10 +783,10 @@ namespace CalamityMod.NPCs.Crabulon Texture2D glowWalk = ModContent.Request("CalamityMod/NPCs/Crabulon/CrabulonAltGlow").Value; Texture2D textureAttack = ModContent.Request("CalamityMod/NPCs/Crabulon/CrabulonAttack").Value; Texture2D glowAttack = ModContent.Request("CalamityMod/NPCs/Crabulon/CrabulonAttackGlow").Value; - Color colorToShift = CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : Color.Cyan; + Color colorToShift = Main.zenithWorld ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : Color.Cyan; Color glowColor = Color.Lerp(Color.White, colorToShift, 0.5f); - int ClonesOnEachSide = CalamityWorld.getFixedBoi ? 2 : 0; + int ClonesOnEachSide = Main.zenithWorld ? 2 : 0; for (int c = 0 - ClonesOnEachSide; c < 1 + ClonesOnEachSide; c++) { Vector2 drawOrigin = new Vector2(textureIdle.Width / 2, textureIdle.Height / Main.npcFrameCount[NPC.type] / 2); @@ -871,7 +871,7 @@ namespace CalamityMod.NPCs.Crabulon DownedBossSystem.downedCrabulon = true; CalamityNetcode.SyncWorld(); - if (CalamityWorld.getFixedBoi && Main.netMode != NetmodeID.MultiplayerClient) + if (Main.zenithWorld && Main.netMode != NetmodeID.MultiplayerClient) { for (int i = 0; i < Main.rand.Next(10, 23); i++) { diff --git a/NPCs/Crags/RenegadeWarlock.cs b/NPCs/Crags/RenegadeWarlock.cs index a68a3b13f5..edfaf92d92 100644 --- a/NPCs/Crags/RenegadeWarlock.cs +++ b/NPCs/Crags/RenegadeWarlock.cs @@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.Crags } if (Main.netMode != NetmodeID.Server) { - int count = CalamityWorld.getFixedBoi ? 20 : 1; // remember that old oversight in the draedon update? + int count = Main.zenithWorld ? 20 : 1; // remember that old oversight in the draedon update? for (int g = 0; g < count; g++) { Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find("RenegadeWarlock").Type, NPC.scale); diff --git a/NPCs/Cryogen/Cryogen.cs b/NPCs/Cryogen/Cryogen.cs index d949549efd..677556c7c9 100644 --- a/NPCs/Cryogen/Cryogen.cs +++ b/NPCs/Cryogen/Cryogen.cs @@ -103,7 +103,7 @@ namespace CalamityMod.NPCs.Cryogen if (Main.getGoodWorld) NPC.scale *= 0.8f; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { NPC.Calamity().VulnerableToHeat = false; NPC.Calamity().VulnerableToCold = true; @@ -119,7 +119,7 @@ namespace CalamityMod.NPCs.Cryogen public override void BossHeadSlot(ref int index) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) index = pyroIconIndex; else index = cryoIconIndex; @@ -213,14 +213,14 @@ namespace CalamityMod.NPCs.Cryogen bool phase7 = lifeRatio < (death ? 0.25f : 0.15f) && revenge; // Projectile and sound variables - int iceBlast = CalamityWorld.getFixedBoi ? ModContent.ProjectileType() : ModContent.ProjectileType(); - int iceBomb = CalamityWorld.getFixedBoi ? ModContent.ProjectileType() : ModContent.ProjectileType(); - int iceRain = CalamityWorld.getFixedBoi ? ModContent.ProjectileType() : ModContent.ProjectileType(); - int dustType = CalamityWorld.getFixedBoi ? 235 : 67; + int iceBlast = Main.zenithWorld ? ModContent.ProjectileType() : ModContent.ProjectileType(); + int iceBomb = Main.zenithWorld ? ModContent.ProjectileType() : ModContent.ProjectileType(); + int iceRain = Main.zenithWorld ? ModContent.ProjectileType() : ModContent.ProjectileType(); + int dustType = Main.zenithWorld ? 235 : 67; - SoundStyle frostSound = CalamityWorld.getFixedBoi ? SoundID.Item20 : SoundID.Item28; - NPC.HitSound = CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound; - NPC.DeathSound = CalamityWorld.getFixedBoi ? SoundID.NPCDeath14 : DeathSound; + SoundStyle frostSound = Main.zenithWorld ? SoundID.Item20 : SoundID.Item28; + NPC.HitSound = Main.zenithWorld ? SoundID.NPCHit41 : HitSound; + NPC.DeathSound = Main.zenithWorld ? SoundID.NPCDeath14 : DeathSound; // Reset damage NPC.damage = NPC.defDamage; @@ -290,7 +290,7 @@ namespace CalamityMod.NPCs.Cryogen if (CalamityWorld.LegendaryMode && CalamityWorld.revenge) { - int spawnType = CalamityWorld.getFixedBoi ? NPCID.RedDevil : NPCID.IceGolem; + int spawnType = Main.zenithWorld ? NPCID.RedDevil : NPCID.IceGolem; if (!NPC.AnyNPCs(spawnType)) { int num167 = 1000; @@ -338,7 +338,7 @@ namespace CalamityMod.NPCs.Cryogen if (calamityGlobalNPC.newAI[3] >= (bossRush ? 660f : 900f)) { calamityGlobalNPC.newAI[3] = 0f; - SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center); + SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center); int totalProjectiles = 3; float radians = MathHelper.TwoPi / totalProjectiles; int type = iceBomb; @@ -369,7 +369,7 @@ namespace CalamityMod.NPCs.Cryogen NPC.TargetClosest(); if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height)) { - SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center); + SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center); int totalProjectiles = bossRush ? 24 : 16; float radians = MathHelper.TwoPi / totalProjectiles; int type = iceBlast; @@ -429,7 +429,7 @@ namespace CalamityMod.NPCs.Cryogen NPC.TargetClosest(); if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height)) { - SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center); + SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center); int totalProjectiles = bossRush ? 18 : 12; float radians = MathHelper.TwoPi / totalProjectiles; int type = iceBlast; @@ -503,7 +503,7 @@ namespace CalamityMod.NPCs.Cryogen { if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height)) { - SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center); + SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center); int type = iceRain; int damage = NPC.GetProjectileDamage(type); float maxVelocity = 9f + enrageScale; @@ -603,7 +603,7 @@ namespace CalamityMod.NPCs.Cryogen NPC.TargetClosest(); if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height)) { - SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center); + SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center); int totalProjectiles = bossRush ? 18 : 12; float radians = MathHelper.TwoPi / totalProjectiles; int type = iceBlast; @@ -649,7 +649,7 @@ namespace CalamityMod.NPCs.Cryogen { if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height)) { - SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center); + SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center); int type = iceRain; int damage = NPC.GetProjectileDamage(type); float maxVelocity = 9f + enrageScale; @@ -751,7 +751,7 @@ namespace CalamityMod.NPCs.Cryogen NPC.localAI[0] = 0f; if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height)) { - SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center); + SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center); int totalProjectiles = bossRush ? 18 : 12; float radians = MathHelper.TwoPi / totalProjectiles; int type = iceBlast; @@ -861,7 +861,7 @@ namespace CalamityMod.NPCs.Cryogen if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height)) { NPC.localAI[0] = 0f; - SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center); + SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center); int type = iceRain; int damage = NPC.GetProjectileDamage(type); float velocity = 9f + enrageScale; @@ -921,13 +921,13 @@ namespace CalamityMod.NPCs.Cryogen int chance = 100; if (DateTime.Now.Month == 4 && DateTime.Now.Day == 1) chance = 20; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) chance = 1; if (Main.rand.NextBool(chance)) { - string key = CalamityWorld.getFixedBoi ? "Mods.CalamityMod.Status.Boss.PyrogenBossText" : "Mods.CalamityMod.Status.Boss.CryogenBossText"; - Color messageColor = CalamityWorld.getFixedBoi ? Color.Orange : Color.Cyan; + string key = Main.zenithWorld ? "Mods.CalamityMod.Status.Boss.PyrogenBossText" : "Mods.CalamityMod.Status.Boss.CryogenBossText"; + Color messageColor = Main.zenithWorld ? Color.Orange : Color.Cyan; CalamityUtils.DisplayLocalizedText(key, messageColor); } } @@ -944,7 +944,7 @@ namespace CalamityMod.NPCs.Cryogen { if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height)) { - SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center); + SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center); int type = iceBlast; int damage = NPC.GetProjectileDamage(type); float velocity = 1.5f + enrageScale * 0.5f; @@ -955,7 +955,7 @@ namespace CalamityMod.NPCs.Cryogen float radians = MathHelper.TwoPi / totalProjectiles; float newVelocity = velocity - (velocity * (phase7 ? 0.25f : 0.5f) * i); float velocityX = 0f; - float ai = CalamityWorld.getFixedBoi ? 2f : NPC.target; + float ai = Main.zenithWorld ? 2f : NPC.target; if (i > 0) { double angleA = radians * (phase7 ? 0.25 : 0.5) * (totalSpreads - i); @@ -1058,7 +1058,7 @@ namespace CalamityMod.NPCs.Cryogen if (calamityGlobalNPC.newAI[3] >= (bossRush ? 50f : 75f)) { calamityGlobalNPC.newAI[3] = 0f; - SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center); + SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center); int totalProjectiles = 2; float radians = MathHelper.TwoPi / totalProjectiles; int type = iceBomb; @@ -1137,9 +1137,9 @@ namespace CalamityMod.NPCs.Cryogen private void HandlePhaseTransition(int newPhase) { - SoundStyle sound = CalamityWorld.getFixedBoi ? SoundID.NPCDeath14 : TransitionSound; + SoundStyle sound = Main.zenithWorld ? SoundID.NPCDeath14 : TransitionSound; SoundEngine.PlaySound(sound, NPC.Center); - if (Main.netMode != NetmodeID.Server && !CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.Server && !Main.zenithWorld) { int chipGoreAmount = newPhase >= 5 ? 3 : newPhase >= 3 ? 2 : 1; for (int i = 1; i < chipGoreAmount; i++) @@ -1175,7 +1175,7 @@ namespace CalamityMod.NPCs.Cryogen public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { float compactness = NPC.width * 0.6f; if (compactness < 10f) @@ -1204,13 +1204,13 @@ namespace CalamityMod.NPCs.Cryogen if (NPC.spriteDirection == 1) spriteEffects = SpriteEffects.FlipHorizontally; - NPC.DrawBackglow(CalamityWorld.getFixedBoi ? Color.Red : BackglowColor, 4f, spriteEffects, NPC.frame, screenPos); + NPC.DrawBackglow(Main.zenithWorld ? Color.Red : BackglowColor, 4f, spriteEffects, NPC.frame, screenPos); Vector2 origin = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / Main.npcFrameCount[NPC.type] / 2); Vector2 drawPos = NPC.Center - screenPos; drawPos -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[NPC.type]) * NPC.scale / 2f; drawPos += origin * NPC.scale + new Vector2(0f, NPC.gfxOffY); - Color overlay = CalamityWorld.getFixedBoi ? Color.Red : drawColor; + Color overlay = Main.zenithWorld ? Color.Red : drawColor; spriteBatch.Draw(texture, drawPos, NPC.frame, NPC.GetAlpha(overlay), NPC.rotation, origin, NPC.scale, spriteEffects, 0f); return false; @@ -1224,7 +1224,7 @@ namespace CalamityMod.NPCs.Cryogen public override void ModifyTypeName(ref string typeName) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { typeName = CalamityUtils.GetTextValue("NPCs.Pyrogen"); } @@ -1232,7 +1232,7 @@ namespace CalamityMod.NPCs.Cryogen public override void HitEffect(NPC.HitInfo hit) { - int dusttype = CalamityWorld.getFixedBoi ? 235 : 67; + int dusttype = Main.zenithWorld ? 235 : 67; for (int k = 0; k < 3; k++) { Dust.NewDust(NPC.position, NPC.width, NPC.height, dusttype, hit.HitDirection, -1f, 0, default, 1f); @@ -1257,7 +1257,7 @@ namespace CalamityMod.NPCs.Cryogen num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, dusttype, 0f, 0f, 100, default, 2f); Main.dust[num624].velocity *= 2f; } - if (Main.netMode != NetmodeID.Server && !CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.Server && !Main.zenithWorld) { float randomSpread = Main.rand.Next(-200, 201) / 100f; for (int i = 1; i < 4; i++) @@ -1370,7 +1370,7 @@ namespace CalamityMod.NPCs.Cryogen { if (hurtInfo.Damage > 0) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { target.AddBuff(ModContent.BuffType(), 240, true); target.AddBuff(ModContent.BuffType(), 120, true); diff --git a/NPCs/Cryogen/CryogenShield.cs b/NPCs/Cryogen/CryogenShield.cs index 09e9b765ae..3b4a3b944e 100644 --- a/NPCs/Cryogen/CryogenShield.cs +++ b/NPCs/Cryogen/CryogenShield.cs @@ -42,7 +42,7 @@ namespace CalamityMod.NPCs.Cryogen NPC.Opacity = 0f; NPC.HitSound = Cryogen.HitSound; NPC.DeathSound = BreakSound; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { NPC.Calamity().VulnerableToHeat = false; NPC.Calamity().VulnerableToCold = true; @@ -58,8 +58,8 @@ namespace CalamityMod.NPCs.Cryogen public override void AI() { - NPC.HitSound = CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : Cryogen.HitSound; - NPC.DeathSound = CalamityWorld.getFixedBoi ? SoundID.NPCDeath14 : BreakSound; + NPC.HitSound = Main.zenithWorld ? SoundID.NPCHit41 : Cryogen.HitSound; + NPC.DeathSound = Main.zenithWorld ? SoundID.NPCDeath14 : BreakSound; NPC.Opacity += 0.012f; if (NPC.Opacity > 1f) @@ -113,7 +113,7 @@ namespace CalamityMod.NPCs.Cryogen { if (hurtInfo.Damage > 0) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { target.AddBuff(ModContent.BuffType(), 240, true); target.AddBuff(ModContent.BuffType(), 120, true); @@ -130,13 +130,13 @@ namespace CalamityMod.NPCs.Cryogen { Texture2D texture = ModContent.Request("CalamityMod/NPCs/Cryogen/CryogenShield").Value; - NPC.DrawBackglow(CalamityWorld.getFixedBoi ? Color.Red : Cryogen.BackglowColor, 4f, SpriteEffects.None, NPC.frame, screenPos); + NPC.DrawBackglow(Main.zenithWorld ? Color.Red : Cryogen.BackglowColor, 4f, SpriteEffects.None, NPC.frame, screenPos); Vector2 origin = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / Main.npcFrameCount[NPC.type] / 2); Vector2 drawPos = NPC.Center - screenPos; drawPos -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[NPC.type]) * NPC.scale / 2f; drawPos += origin * NPC.scale + new Vector2(0f, NPC.gfxOffY); - Color overlay = CalamityWorld.getFixedBoi ? Color.Red : drawColor; + Color overlay = Main.zenithWorld ? Color.Red : drawColor; spriteBatch.Draw(texture, drawPos, NPC.frame, NPC.GetAlpha(overlay), NPC.rotation, origin, NPC.scale, SpriteEffects.None, 0f); return false; } @@ -148,7 +148,7 @@ namespace CalamityMod.NPCs.Cryogen public override void ModifyTypeName(ref string typeName) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { typeName = CalamityUtils.GetTextValue("NPCs.PyrogenShield"); } @@ -156,7 +156,7 @@ namespace CalamityMod.NPCs.Cryogen public override void HitEffect(NPC.HitInfo hit) { - int dusttype = CalamityWorld.getFixedBoi ? 235 : 67; + int dusttype = Main.zenithWorld ? 235 : 67; for (int k = 0; k < 3; k++) { Dust.NewDust(NPC.position, NPC.width, NPC.height, dusttype, hit.HitDirection, -1f, 0, default, 1f); @@ -183,7 +183,7 @@ namespace CalamityMod.NPCs.Cryogen Main.dust[num624].velocity *= 2f; } - if (Main.netMode != NetmodeID.Server && !CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.Server && !Main.zenithWorld) { int totalGores = 16; double radians = MathHelper.TwoPi / totalGores; diff --git a/NPCs/DesertScourge/DesertNuisanceBody.cs b/NPCs/DesertScourge/DesertNuisanceBody.cs index 246bf9693a..04b8e38642 100644 --- a/NPCs/DesertScourge/DesertNuisanceBody.cs +++ b/NPCs/DesertScourge/DesertNuisanceBody.cs @@ -169,7 +169,7 @@ namespace CalamityMod.NPCs.DesertScourge public override Color? GetAlpha(Color drawColor) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Color lightColor = Color.Orange * drawColor.A; return lightColor * NPC.Opacity; diff --git a/NPCs/DesertScourge/DesertNuisanceHead.cs b/NPCs/DesertScourge/DesertNuisanceHead.cs index 4433efda47..9afb460426 100644 --- a/NPCs/DesertScourge/DesertNuisanceHead.cs +++ b/NPCs/DesertScourge/DesertNuisanceHead.cs @@ -63,7 +63,7 @@ namespace CalamityMod.NPCs.DesertScourge NPC.Calamity().VulnerableToSickness = true; NPC.Calamity().VulnerableToWater = true; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) NPC.scale *= 2; } @@ -459,7 +459,7 @@ namespace CalamityMod.NPCs.DesertScourge public override Color? GetAlpha(Color drawColor) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Color lightColor = Color.Orange * drawColor.A; return lightColor * NPC.Opacity; diff --git a/NPCs/DesertScourge/DesertNuisanceTail.cs b/NPCs/DesertScourge/DesertNuisanceTail.cs index 77a318f307..7b4d1f1be7 100644 --- a/NPCs/DesertScourge/DesertNuisanceTail.cs +++ b/NPCs/DesertScourge/DesertNuisanceTail.cs @@ -166,7 +166,7 @@ namespace CalamityMod.NPCs.DesertScourge public override Color? GetAlpha(Color drawColor) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Color lightColor = Color.Orange * drawColor.A; return lightColor * NPC.Opacity; diff --git a/NPCs/DesertScourge/DesertScourgeBody.cs b/NPCs/DesertScourge/DesertScourgeBody.cs index 6c8e6a9992..2b44b423b2 100644 --- a/NPCs/DesertScourge/DesertScourgeBody.cs +++ b/NPCs/DesertScourge/DesertScourgeBody.cs @@ -173,7 +173,7 @@ namespace CalamityMod.NPCs.DesertScourge public override void OnHitByProjectile(Projectile projectile, NPC.HitInfo hit, int damageDone) { // Sometimes "Deflect" projectiles in gfb into water blasts. - if (Main.rand.NextBool(20) && CalamityWorld.getFixedBoi) + if (Main.rand.NextBool(20) && Main.zenithWorld) { if (Main.netMode != NetmodeID.Server) { @@ -197,7 +197,7 @@ namespace CalamityMod.NPCs.DesertScourge public override Color? GetAlpha(Color drawColor) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Color lightColor = Color.MediumBlue * drawColor.A; return lightColor * NPC.Opacity; diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index 8c8000f0c3..999509a5a1 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -96,7 +96,7 @@ namespace CalamityMod.NPCs.DesertScourge if (Main.getGoodWorld) NPC.scale *= 0.4f; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) NPC.scale *= 4f; @@ -217,7 +217,7 @@ namespace CalamityMod.NPCs.DesertScourge if (Main.netMode != NetmodeID.MultiplayerClient) { // become moist if in an aquatic biome - if (CalamityWorld.getFixedBoi && (player.ZoneBeach || player.Calamity().ZoneAbyss || player.Calamity().ZoneSunkenSea || player.Calamity().ZoneSulphur) && NPC.CountNPCS(ModContent.NPCType()) < 1) + if (Main.zenithWorld && (player.ZoneBeach || player.Calamity().ZoneAbyss || player.Calamity().ZoneSunkenSea || player.Calamity().ZoneSulphur) && NPC.CountNPCS(ModContent.NPCType()) < 1) { NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType()); NPC.active = false; @@ -282,7 +282,7 @@ namespace CalamityMod.NPCs.DesertScourge perturbedSpeed *= Main.rand.NextFloat() + 0.5f; Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + Vector2.Normalize(perturbedSpeed) * 5f, perturbedSpeed, type, damage, 0f, Main.myPlayer); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + Vector2.Normalize(perturbedSpeed) * 3f, perturbedSpeed, type2, damage, 0f, Main.myPlayer); } } @@ -799,7 +799,7 @@ namespace CalamityMod.NPCs.DesertScourge public override Color? GetAlpha(Color drawColor) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Color lightColor = Color.MediumBlue * drawColor.A; return lightColor * NPC.Opacity; diff --git a/NPCs/DesertScourge/DesertScourgeTail.cs b/NPCs/DesertScourge/DesertScourgeTail.cs index 0588550973..606841f272 100644 --- a/NPCs/DesertScourge/DesertScourgeTail.cs +++ b/NPCs/DesertScourge/DesertScourgeTail.cs @@ -183,7 +183,7 @@ namespace CalamityMod.NPCs.DesertScourge public override Color? GetAlpha(Color drawColor) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Color lightColor = Color.MediumBlue * drawColor.A; return lightColor * NPC.Opacity; diff --git a/NPCs/DevourerofGods/DevourerofGodsBody.cs b/NPCs/DevourerofGods/DevourerofGodsBody.cs index e5b9642256..8c15f48e28 100644 --- a/NPCs/DevourerofGods/DevourerofGodsBody.cs +++ b/NPCs/DevourerofGods/DevourerofGodsBody.cs @@ -50,7 +50,7 @@ namespace CalamityMod.NPCs.DevourerofGods NPC.height = 56; NPC.defense = 70; CalamityGlobalNPC global = NPC.Calamity(); - if (!CalamityWorld.getFixedBoi) + if (!Main.zenithWorld) { global.DR = 0.925f; global.unbreakableDR = true; @@ -429,7 +429,7 @@ namespace CalamityMod.NPCs.DevourerofGods public override void ModifyHitByProjectile(Projectile projectile, ref NPC.HitModifiers modifiers) { // viable???, done here since it's conditional - if (CalamityWorld.getFixedBoi && projectile.type == ModContent.ProjectileType()) + if (Main.zenithWorld && projectile.type == ModContent.ProjectileType()) { modifiers.SourceDamage *= 40f; } diff --git a/NPCs/DevourerofGods/DevourerofGodsHead.cs b/NPCs/DevourerofGods/DevourerofGodsHead.cs index 695ce19851..4f7b62713c 100644 --- a/NPCs/DevourerofGods/DevourerofGodsHead.cs +++ b/NPCs/DevourerofGods/DevourerofGodsHead.cs @@ -391,7 +391,7 @@ namespace CalamityMod.NPCs.DevourerofGods } // Sound pitch - extrapitch = CalamityWorld.getFixedBoi ? 0.3f : 0f; + extrapitch = Main.zenithWorld ? 0.3f : 0f; // Velocity variables float fallSpeed = bossRush ? 19f : death ? 17.5f : 16f; @@ -1571,7 +1571,7 @@ namespace CalamityMod.NPCs.DevourerofGods if (!tail && NPC.ai[0] == 0f) { int Previous = NPC.whoAmI; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { maxLength = 2; minLength = 1; @@ -2650,7 +2650,7 @@ namespace CalamityMod.NPCs.DevourerofGods public override void ModifyHitByProjectile(Projectile projectile, ref NPC.HitModifiers modifiers) { // viable???, done here since it's conditional - if (CalamityWorld.getFixedBoi && projectile.type == ModContent.ProjectileType()) + if (Main.zenithWorld && projectile.type == ModContent.ProjectileType()) { modifiers.SourceDamage *= 40f; } diff --git a/NPCs/DevourerofGods/DevourerofGodsTail.cs b/NPCs/DevourerofGods/DevourerofGodsTail.cs index aff5a65feb..6b60f0ff0e 100644 --- a/NPCs/DevourerofGods/DevourerofGodsTail.cs +++ b/NPCs/DevourerofGods/DevourerofGodsTail.cs @@ -384,7 +384,7 @@ namespace CalamityMod.NPCs.DevourerofGods if (NPC.soundDelay == 0) { NPC.soundDelay = 8; - float extrapitch = CalamityWorld.getFixedBoi ? 0.3f : 0f; + float extrapitch = Main.zenithWorld ? 0.3f : 0f; SoundEngine.PlaySound(CommonCalamitySounds.OtherwordlyHitSound with { Pitch = CommonCalamitySounds.OtherwordlyHitSound.Pitch + extrapitch }, NPC.Center); } if (NPC.life <= 0) @@ -427,7 +427,7 @@ namespace CalamityMod.NPCs.DevourerofGods public override void ModifyHitByProjectile(Projectile projectile, ref NPC.HitModifiers modifiers) { // viable???, done here since it's conditional - if (CalamityWorld.getFixedBoi && projectile.type == ModContent.ProjectileType()) + if (Main.zenithWorld && projectile.type == ModContent.ProjectileType()) { modifiers.SourceDamage *= 40f; } diff --git a/NPCs/ExoMechs/Apollo/Apollo.cs b/NPCs/ExoMechs/Apollo/Apollo.cs index 4db7e060cb..6a020d25c7 100644 --- a/NPCs/ExoMechs/Apollo/Apollo.cs +++ b/NPCs/ExoMechs/Apollo/Apollo.cs @@ -1206,7 +1206,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo NPC.netSpam -= 5; // Plasma bolts on charge - if (Main.netMode != NetmodeID.MultiplayerClient && (!(CalamityWorld.getFixedBoi && !exoMechdusa) || (CalamityWorld.LegendaryMode && revenge))) // I'm not that evil (you aren't, but I am - Fab) + if (Main.netMode != NetmodeID.MultiplayerClient && (!(Main.zenithWorld && !exoMechdusa) || (CalamityWorld.LegendaryMode && revenge))) // I'm not that evil (you aren't, but I am - Fab) { int totalProjectiles = bossRush ? 16 : death ? 12 : 8; float radians = MathHelper.TwoPi / totalProjectiles; @@ -1294,7 +1294,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo // Reset phase and variables if (calamityGlobalNPC.newAI[2] >= maxCharges - 1) { - if (CalamityWorld.getFixedBoi && !exoMechdusa) + if (Main.zenithWorld && !exoMechdusa) { pickNewLocation = NPC.localAI[2] == 0f; calamityGlobalNPC.newAI[3] = 0f; diff --git a/NPCs/ExoMechs/Ares/AresBody.cs b/NPCs/ExoMechs/Ares/AresBody.cs index 6e9067eb0c..d75e3a8467 100644 --- a/NPCs/ExoMechs/Ares/AresBody.cs +++ b/NPCs/ExoMechs/Ares/AresBody.cs @@ -969,7 +969,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares if (calamityGlobalNPC.newAI[2] >= deathrayTelegraphDuration + deathrayDuration) { - if (!CalamityWorld.getFixedBoi || exoMechdusa) + if (!Main.zenithWorld || exoMechdusa) { AIState = (float)Phase.Normal; calamityGlobalNPC.newAI[2] = 0f; diff --git a/NPCs/ExoMechs/Artemis/Artemis.cs b/NPCs/ExoMechs/Artemis/Artemis.cs index a2f60a3e2b..f092ec1d93 100644 --- a/NPCs/ExoMechs/Artemis/Artemis.cs +++ b/NPCs/ExoMechs/Artemis/Artemis.cs @@ -1131,7 +1131,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis // Reset phase and variables if (calamityGlobalNPC.newAI[2] >= deathrayTelegraphDuration + deathrayDuration) { - if (CalamityWorld.getFixedBoi && !exoMechdusa) + if (Main.zenithWorld && !exoMechdusa) { calamityGlobalNPC.newAI[3] = 0f; AIState = (float)Phase.Deathray; diff --git a/NPCs/ExoMechs/Draedon.cs b/NPCs/ExoMechs/Draedon.cs index c9c58bc064..3860fb2fb4 100644 --- a/NPCs/ExoMechs/Draedon.cs +++ b/NPCs/ExoMechs/Draedon.cs @@ -205,7 +205,7 @@ namespace CalamityMod.NPCs.ExoMechs NPC.spriteDirection = (PlayerToFollow.Center.X < NPC.Center.X).ToDirectionInt(); // Exo Mechdusa bool setting - if (!exoMechdusa && CalamityWorld.DraedonMechdusa && CalamityWorld.getFixedBoi) + if (!exoMechdusa && CalamityWorld.DraedonMechdusa && Main.zenithWorld) { exoMechdusa = true; CalamityWorld.DraedonMechdusa = false; @@ -512,7 +512,7 @@ namespace CalamityMod.NPCs.ExoMechs TalkTimer++; - if (ExoMechIsPresent && CalamityWorld.getFixedBoi && GeneralTimer % 60 == 0 && !exoMechdusa) + if (ExoMechIsPresent && Main.zenithWorld && GeneralTimer % 60 == 0 && !exoMechdusa) { SoundEngine.PlaySound(SoundID.Item33, NPC.Center); if (Main.netMode != NetmodeID.MultiplayerClient) @@ -535,7 +535,7 @@ namespace CalamityMod.NPCs.ExoMechs // Define a hover destination offset if one hasn't been decided yet. if (Main.netMode != NetmodeID.MultiplayerClient && HoverDestinationOffset == Vector2.Zero) { - float factor = CalamityWorld.getFixedBoi && !exoMechdusa ? 300f : 700f; + float factor = Main.zenithWorld && !exoMechdusa ? 300f : 700f; HoverDestinationOffset = -Vector2.UnitY * factor; NPC.netUpdate = true; } @@ -553,8 +553,8 @@ namespace CalamityMod.NPCs.ExoMechs offsetDirection = Main.rand.NextVector2Unit(); while (Vector2.Dot(directionToTarget, offsetDirection) > 0.2f); - float factormin = CalamityWorld.getFixedBoi && !exoMechdusa ? 300f : 750f; - float factormax = CalamityWorld.getFixedBoi && !exoMechdusa ? 700f : 1100f; + float factormin = Main.zenithWorld && !exoMechdusa ? 300f : 750f; + float factormax = Main.zenithWorld && !exoMechdusa ? 700f : 1100f; HoverDestinationOffset = offsetDirection * Main.rand.NextFloat(factormin, factormax); NPC.netUpdate = true; } @@ -883,7 +883,7 @@ namespace CalamityMod.NPCs.ExoMechs spriteBatch.Draw(glowmask, drawPosition, frame, Color.White * NPC.Opacity, NPC.rotation, origin, NPC.scale, direction, 0f); } - if (CalamityWorld.getFixedBoi && !HasBeenKilled && HologramEffectTimer >= HologramFadeinTime && !exoMechdusa) + if (Main.zenithWorld && !HasBeenKilled && HologramEffectTimer >= HologramFadeinTime && !exoMechdusa) { CalamityUtils.EnterShaderRegion(spriteBatch); Color outlineColor = Color.Lerp(Color.Magenta, Color.White, 0.4f); diff --git a/NPCs/ExoMechs/Thanatos/ThanatosHead.cs b/NPCs/ExoMechs/Thanatos/ThanatosHead.cs index 01b0ba8a9a..44bf264ad4 100644 --- a/NPCs/ExoMechs/Thanatos/ThanatosHead.cs +++ b/NPCs/ExoMechs/Thanatos/ThanatosHead.cs @@ -230,7 +230,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos } public float GetSlowdownAreaEdgeRadius(bool lastMechAlive) => - (BossRushEvent.BossRushActive ? 400f : CalamityWorld.death ? 600f : CalamityWorld.revenge ? 700f : Main.expertMode ? 800f : 1000f) * (lastMechAlive ? 0.6f : 1f) * (CalamityWorld.getFixedBoi && !exoMechdusa ? 2 : Main.getGoodWorld ? 0.5f : 1f); + (BossRushEvent.BossRushActive ? 400f : CalamityWorld.death ? 600f : CalamityWorld.revenge ? 700f : Main.expertMode ? 800f : 1000f) * (lastMechAlive ? 0.6f : 1f) * (Main.zenithWorld && !exoMechdusa ? 2 : Main.getGoodWorld ? 0.5f : 1f); public int CheckForOtherMechs(ref Player target, out bool exoPrimeAlive, out bool exoTwinsAlive) { @@ -916,7 +916,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos if (calamityGlobalNPC.newAI[2] >= deathrayTelegraphDuration + deathrayDuration) { - if (CalamityWorld.getFixedBoi && !exoMechdusa) + if (Main.zenithWorld && !exoMechdusa) { AIState = (float)Phase.Deathray; } diff --git a/NPCs/GreatSandShark/GreatSandShark.cs b/NPCs/GreatSandShark/GreatSandShark.cs index 126ee79e80..bf6ee60e87 100644 --- a/NPCs/GreatSandShark/GreatSandShark.cs +++ b/NPCs/GreatSandShark/GreatSandShark.cs @@ -63,7 +63,7 @@ namespace CalamityMod.NPCs.GreatSandShark NPC.DeathSound = SoundID.NPCDeath1; NPC.timeLeft = NPC.activeTime * 30; NPC.rarity = 2; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { NPC.Calamity().VulnerableToHeat = true; NPC.Calamity().VulnerableToSickness = false; @@ -333,7 +333,7 @@ namespace CalamityMod.NPCs.GreatSandShark if (spawnFlag && Main.netMode != NetmodeID.MultiplayerClient) { - int npcType = CalamityWorld.getFixedBoi ? ModContent.NPCType() : NPCID.SandShark; + int npcType = Main.zenithWorld ? ModContent.NPCType() : NPCID.SandShark; NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y + 50, npcType, 0, 0f, 0f, 0f, 0f, 255); SoundEngine.PlaySound(RoarSound, NPC.position); } @@ -447,7 +447,7 @@ namespace CalamityMod.NPCs.GreatSandShark Main.dust[num624].velocity.X *= 2f; } int spawnX = (int)(NPC.width / 2); - int projType = CalamityWorld.getFixedBoi ? ModContent.ProjectileType() : ModContent.ProjectileType(); + int projType = Main.zenithWorld ? ModContent.ProjectileType() : ModContent.ProjectileType(); for (int sand = 0; sand < 5; sand++) Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center.X + (float)Main.rand.Next(-spawnX, spawnX), NPC.Center.Y, (float)Main.rand.Next(-3, 4), (float)Main.rand.Next(-12, -6), projType, 40, 0f, Main.myPlayer); @@ -547,7 +547,7 @@ namespace CalamityMod.NPCs.GreatSandShark NPC.rotation = MathHelper.Clamp(NPC.rotation, -0.1f, 0.1f); } - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { NPC.Calamity().newAI[0]++; if (NPC.Calamity().newAI[0] >= 120) @@ -589,7 +589,7 @@ namespace CalamityMod.NPCs.GreatSandShark } Color color24 = NPC.GetAlpha(drawColor); Color color25 = Lighting.GetColor((int)((double)NPC.position.X + (double)NPC.width * 0.5) / 16, (int)(((double)NPC.position.Y + (double)NPC.height * 0.5) / 16.0)); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { color24 = Color.Silver; color25 = Color.Orange; diff --git a/NPCs/HiveMind/HiveBlob.cs b/NPCs/HiveMind/HiveBlob.cs index a0c758ea1c..731fb249ba 100644 --- a/NPCs/HiveMind/HiveBlob.cs +++ b/NPCs/HiveMind/HiveBlob.cs @@ -67,7 +67,7 @@ namespace CalamityMod.NPCs.HiveMind bool revenge = CalamityWorld.revenge || BossRushEvent.BossRushActive; bool death = CalamityWorld.death || BossRushEvent.BossRushActive; - bool getFuckedAI = CalamityWorld.getFixedBoi; + bool getFuckedAI = Main.zenithWorld; int num750 = CalamityGlobalNPC.hiveMind; if (num750 < 0 || !Main.npc[num750].active) diff --git a/NPCs/HiveMind/HiveBlob2.cs b/NPCs/HiveMind/HiveBlob2.cs index c0cdee08ae..fc37d69184 100644 --- a/NPCs/HiveMind/HiveBlob2.cs +++ b/NPCs/HiveMind/HiveBlob2.cs @@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.HiveMind bool revenge = CalamityWorld.revenge || BossRushEvent.BossRushActive; bool death = CalamityWorld.death || BossRushEvent.BossRushActive; - bool getFuckedAI = CalamityWorld.getFixedBoi; + bool getFuckedAI = Main.zenithWorld; int num750 = CalamityGlobalNPC.hiveMind; if (num750 < 0 || !Main.npc[num750].active) @@ -195,7 +195,7 @@ namespace CalamityMod.NPCs.HiveMind { Dust.NewDust(NPC.position, NPC.width, NPC.height, 14, hit.HitDirection, -1f, 0, default, 1f); } - if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld) { //Spawn even more blobs on death for (int i = 1; i < 3; i++) diff --git a/NPCs/HiveMind/HiveMind.cs b/NPCs/HiveMind/HiveMind.cs index e4d21aba87..de50a0e82e 100644 --- a/NPCs/HiveMind/HiveMind.cs +++ b/NPCs/HiveMind/HiveMind.cs @@ -352,7 +352,7 @@ namespace CalamityMod.NPCs.HiveMind } //Spawn a Hive Cyst - if (CalamityWorld.getFixedBoi && NPC.CountNPCS(ModContent.NPCType()) < 3) + if (Main.zenithWorld && NPC.CountNPCS(ModContent.NPCType()) < 3) NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + Main.rand.Next(NPC.width), (int)NPC.position.Y + Main.rand.Next(NPC.height), ModContent.NPCType()); } @@ -512,7 +512,7 @@ namespace CalamityMod.NPCs.HiveMind int maxBlobs = death ? 15 : revenge ? 7 : expertMode ? 6 : 5; if (Main.getGoodWorld) maxBlobs *= 2; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) maxBlobs = 50; for (int i = 0; i < maxBlobs; i++) @@ -1053,7 +1053,7 @@ namespace CalamityMod.NPCs.HiveMind if (phase2) { - if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi ? NPC.CountNPCS(ModContent.NPCType()) < 10 : (Main.rand.NextBool(15) && NPC.CountNPCS(ModContent.NPCType()) < 2)) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld ? NPC.CountNPCS(ModContent.NPCType()) < 10 : (Main.rand.NextBool(15) && NPC.CountNPCS(ModContent.NPCType()) < 2)) { Vector2 spawnAt = NPC.Center + new Vector2(0f, NPC.height / 2f); NPC.NewNPC(NPC.GetSource_FromThis(), (int)spawnAt.X, (int)spawnAt.Y, ModContent.NPCType()); diff --git a/NPCs/HiveMind/HiveTumor.cs b/NPCs/HiveMind/HiveTumor.cs index afa56cdea2..dc61d39f11 100644 --- a/NPCs/HiveMind/HiveTumor.cs +++ b/NPCs/HiveMind/HiveTumor.cs @@ -59,7 +59,7 @@ namespace CalamityMod.NPCs.HiveMind { float timeToSpawn = 120f; - if (CalamityWorld.getFixedBoi && NPC.AnyNPCs(ModContent.NPCType())) + if (Main.zenithWorld && NPC.AnyNPCs(ModContent.NPCType())) { //Passively spawns random enemies NPC.ai[0]++; diff --git a/NPCs/Leviathan/Anahita.cs b/NPCs/Leviathan/Anahita.cs index b86d0c84b6..c430494c9e 100644 --- a/NPCs/Leviathan/Anahita.cs +++ b/NPCs/Leviathan/Anahita.cs @@ -77,7 +77,7 @@ namespace CalamityMod.NPCs.Leviathan if (Main.getGoodWorld) NPC.scale *= 0.8f; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) NPC.scale *= 4f; } @@ -336,7 +336,7 @@ namespace CalamityMod.NPCs.Leviathan } // Play sound - float extrapitch = CalamityWorld.getFixedBoi ? -0.5f : 0; + float extrapitch = Main.zenithWorld ? -0.5f : 0; if (Main.rand.NextBool(300)) SoundEngine.PlaySound(SoundID.Zombie35 with { Pitch = SoundID.Zombie35.Pitch + extrapitch}, NPC.Center); @@ -585,7 +585,7 @@ namespace CalamityMod.NPCs.Leviathan { NPC.rotation = NPC.velocity.X * 0.02f; - float basey = CalamityWorld.getFixedBoi ? -100 : -350; + float basey = Main.zenithWorld ? -100 : -350; Vector2 targetVector = player.Center + new Vector2(0f, basey) * NPC.scale; float velocity = death ? 13.5f : 12f; velocity += 6f * enrageScale; diff --git a/NPCs/Leviathan/AquaticAberration.cs b/NPCs/Leviathan/AquaticAberration.cs index d81a610577..51a647a232 100644 --- a/NPCs/Leviathan/AquaticAberration.cs +++ b/NPCs/Leviathan/AquaticAberration.cs @@ -255,7 +255,7 @@ namespace CalamityMod.NPCs.Leviathan Item.NewItem(NPC.GetSource_Loot(), (int)NPC.position.X, (int)NPC.position.Y, NPC.width, NPC.height, ItemID.Heart); // Explode into bubbles on gfb - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { if (Main.netMode != NetmodeID.MultiplayerClient) { diff --git a/NPCs/Leviathan/Leviathan.cs b/NPCs/Leviathan/Leviathan.cs index 4394e55b44..e9b65e17e9 100644 --- a/NPCs/Leviathan/Leviathan.cs +++ b/NPCs/Leviathan/Leviathan.cs @@ -86,7 +86,7 @@ namespace CalamityMod.NPCs.Leviathan if (Main.getGoodWorld) NPC.scale *= 1.3f; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) NPC.scale *= 0.3f; } @@ -173,7 +173,7 @@ namespace CalamityMod.NPCs.Leviathan if (soundDelay > 0) soundDelay--; - extrapitch = CalamityWorld.getFixedBoi ? 0.3f : 0f; + extrapitch = Main.zenithWorld ? 0.3f : 0f; if (Main.rand.NextBool(600) && !spawnAnimation) SoundEngine.PlaySound(((sirenAlive && !death) ? soundChoice : soundChoiceRage) with { Pitch = soundChoice.Pitch + extrapitch }, vector); @@ -395,7 +395,7 @@ namespace CalamityMod.NPCs.Leviathan vector40.X += num415 * 4f; vector40.Y += num416 * 4f; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { type = (CalamityWorld.LegendaryMode && CalamityWorld.revenge) ? ProjectileID.BouncyBoulder : ProjectileID.Boulder; vector40.Y -= 5; //Shoot a bit more up since boulders are affected by gravity @@ -403,7 +403,7 @@ namespace CalamityMod.NPCs.Leviathan } int proj = Projectile.NewProjectile(NPC.GetSource_FromAI(), vector40.X, vector40.Y, num415, num416, type, damage, 0f, Main.myPlayer); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) Main.projectile[proj].scale *= 5f; if (soundDelay <= 0) @@ -516,7 +516,7 @@ namespace CalamityMod.NPCs.Leviathan return; } - float gfbchargeboost = CalamityWorld.getFixedBoi ? 1100 : 0; + float gfbchargeboost = Main.zenithWorld ? 1100 : 0; float chargeDistance = ((sirenAlive && !phase4) ? 1100f : 900f) * NPC.scale + gfbchargeboost; chargeDistance -= 50f * enrageScale; if (!sirenAlive || phase4) diff --git a/NPCs/NormalNPCs/AeroSlime.cs b/NPCs/NormalNPCs/AeroSlime.cs index feb3970359..42cfd3a448 100644 --- a/NPCs/NormalNPCs/AeroSlime.cs +++ b/NPCs/NormalNPCs/AeroSlime.cs @@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void ModifyTypeName(ref string typeName) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { typeName = "YuH"; } diff --git a/NPCs/NormalNPCs/ArmoredDiggerBody.cs b/NPCs/NormalNPCs/ArmoredDiggerBody.cs index a198aad241..7b5e104bf5 100644 --- a/NPCs/NormalNPCs/ArmoredDiggerBody.cs +++ b/NPCs/NormalNPCs/ArmoredDiggerBody.cs @@ -68,7 +68,7 @@ namespace CalamityMod.NPCs.NormalNPCs } if (flag) { - if (!CalamityWorld.getFixedBoi) + if (!Main.zenithWorld) { NPC.life = 0; NPC.HitEffect(0, 10.0); @@ -115,7 +115,7 @@ namespace CalamityMod.NPCs.NormalNPCs num6 *= num8; num7 *= num8; int num9 = 30; - int num10 = CalamityWorld.getFixedBoi ? ModContent.ProjectileType() : ProjectileID.SaucerScrap; + int num10 = Main.zenithWorld ? ModContent.ProjectileType() : ProjectileID.SaucerScrap; vector.X += num6 * 5f; vector.Y += num7 * 5f; Projectile.NewProjectile(NPC.GetSource_FromAI(), vector.X, vector.Y, num6, num7, num10, num9, 0f, Main.myPlayer, 0f, 0f); @@ -182,7 +182,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void ModifyTypeName(ref string typeName) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { typeName = CalamityUtils.GetTextValue("NPCs.MechanizedSerpent"); } @@ -190,7 +190,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override Color? GetAlpha(Color drawColor) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Color lightColor = Color.Orange * drawColor.A; return lightColor * NPC.Opacity; diff --git a/NPCs/NormalNPCs/ArmoredDiggerHead.cs b/NPCs/NormalNPCs/ArmoredDiggerHead.cs index 86af0933ab..00ecff1d81 100644 --- a/NPCs/NormalNPCs/ArmoredDiggerHead.cs +++ b/NPCs/NormalNPCs/ArmoredDiggerHead.cs @@ -189,7 +189,7 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.localAI[1] = 0f; } float num17 = death ? 13.5f : 10f; - if (Main.player[NPC.target].dead || (!CalamityWorld.getFixedBoi && (double)Main.player[NPC.target].position.Y < Main.rockLayer * 16.0)) + if (Main.player[NPC.target].dead || (!Main.zenithWorld && (double)Main.player[NPC.target].position.Y < Main.rockLayer * 16.0)) { flag2 = false; NPC.velocity.Y = NPC.velocity.Y + 1f; @@ -459,13 +459,13 @@ namespace CalamityMod.NPCs.NormalNPCs npcLoot.Add(ModContent.ItemType(), 1, 2, 4); npcLoot.Add(ModContent.ItemType(), 1, 4, 8); npcLoot.Add(ModContent.ItemType(), 1, 4, 8); - npcLoot.AddIf(() => CalamityWorld.getFixedBoi, ModContent.ItemType(), 1, 3, 6); - npcLoot.AddIf(() => CalamityWorld.getFixedBoi, ModContent.ItemType(), 10); + npcLoot.AddIf(() => Main.zenithWorld, ModContent.ItemType(), 1, 3, 6); + npcLoot.AddIf(() => Main.zenithWorld, ModContent.ItemType(), 10); } public override void ModifyTypeName(ref string typeName) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { typeName = CalamityUtils.GetTextValue("NPCs.MechanizedSerpent"); } @@ -473,7 +473,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override Color? GetAlpha(Color drawColor) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Color lightColor = Color.Orange * drawColor.A; return lightColor * NPC.Opacity; diff --git a/NPCs/NormalNPCs/ArmoredDiggerTail.cs b/NPCs/NormalNPCs/ArmoredDiggerTail.cs index 90aa6d846e..cad5a06399 100644 --- a/NPCs/NormalNPCs/ArmoredDiggerTail.cs +++ b/NPCs/NormalNPCs/ArmoredDiggerTail.cs @@ -65,7 +65,7 @@ namespace CalamityMod.NPCs.NormalNPCs { flag = true; } - if (flag && !CalamityWorld.getFixedBoi) + if (flag && !Main.zenithWorld) { NPC.life = 0; NPC.HitEffect(0, 10.0); @@ -130,7 +130,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void ModifyTypeName(ref string typeName) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { typeName = CalamityUtils.GetTextValue("NPCs.MechanizedSerpent"); } @@ -138,7 +138,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override Color? GetAlpha(Color drawColor) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Color lightColor = Color.Orange * drawColor.A; return lightColor * NPC.Opacity; diff --git a/NPCs/NormalNPCs/Cnidrion.cs b/NPCs/NormalNPCs/Cnidrion.cs index 433e0f2f8a..17ddd744a7 100644 --- a/NPCs/NormalNPCs/Cnidrion.cs +++ b/NPCs/NormalNPCs/Cnidrion.cs @@ -107,7 +107,7 @@ namespace CalamityMod.NPCs.NormalNPCs { num823 = 4f; } - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { num823 = 8f; } diff --git a/NPCs/NormalNPCs/Horse.cs b/NPCs/NormalNPCs/Horse.cs index b11842fe50..1c56f06b40 100644 --- a/NPCs/NormalNPCs/Horse.cs +++ b/NPCs/NormalNPCs/Horse.cs @@ -201,7 +201,7 @@ namespace CalamityMod.NPCs.NormalNPCs { if (NPC.ai[0] == 0f) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { SoundEngine.PlaySound(SoundID.ScaryScream, Main.player[NPC.target].Center); } diff --git a/NPCs/NormalNPCs/ScornEater.cs b/NPCs/NormalNPCs/ScornEater.cs index 4afbbd3137..f4b9c69033 100644 --- a/NPCs/NormalNPCs/ScornEater.cs +++ b/NPCs/NormalNPCs/ScornEater.cs @@ -127,7 +127,7 @@ namespace CalamityMod.NPCs.NormalNPCs else NPC.velocity.Y = 12f; } - if (!CalamityWorld.getFixedBoi) + if (!Main.zenithWorld) SoundEngine.PlaySound(JumpSound, NPC.Center); } NPC.netUpdate = true; diff --git a/NPCs/NormalNPCs/Sunskater.cs b/NPCs/NormalNPCs/Sunskater.cs index d50011ecc4..973d5872b0 100644 --- a/NPCs/NormalNPCs/Sunskater.cs +++ b/NPCs/NormalNPCs/Sunskater.cs @@ -40,7 +40,7 @@ namespace CalamityMod.NPCs.NormalNPCs AIType = -1; NPC.value = Item.buyPrice(0, 0, 5, 0); NPC.HitSound = SoundID.NPCHit50; - NPC.DeathSound = CalamityWorld.getFixedBoi ? AresGaussNuke.NukeExplosionSound : DeathSound; + NPC.DeathSound = Main.zenithWorld ? AresGaussNuke.NukeExplosionSound : DeathSound; NPC.knockBackResist = 0.7f; Banner = NPC.type; BannerItem = ModContent.ItemType(); @@ -243,7 +243,7 @@ namespace CalamityMod.NPCs.NormalNPCs { Dust.NewDust(NPC.position, NPC.width, NPC.height, 64, hit.HitDirection, -1f, 0, default, 1f); } - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { float screenShakePower = 16 * Utils.GetLerpValue(1300f, 0f, NPC.Distance(Main.LocalPlayer.Center), true); if (Main.LocalPlayer.Calamity().GeneralScreenShakePower < screenShakePower) diff --git a/NPCs/NormalNPCs/SuperDummyNPC.cs b/NPCs/NormalNPCs/SuperDummyNPC.cs index 872b4f8d9c..051382127a 100644 --- a/NPCs/NormalNPCs/SuperDummyNPC.cs +++ b/NPCs/NormalNPCs/SuperDummyNPC.cs @@ -44,7 +44,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override bool PreAI() { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { deathCounter++; // If you don't attack the Dummy for a minute in gfb, it becomes sentient @@ -63,7 +63,7 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.lifeRegen += 2000000; } - public override bool CanHitPlayer(Player target, ref int cooldownSlot) => CalamityWorld.getFixedBoi; + public override bool CanHitPlayer(Player target, ref int cooldownSlot) => Main.zenithWorld; public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) => false; diff --git a/NPCs/NormalNPCs/ThiccWaifu.cs b/NPCs/NormalNPCs/ThiccWaifu.cs index 2519821f7f..c21e32a343 100644 --- a/NPCs/NormalNPCs/ThiccWaifu.cs +++ b/NPCs/NormalNPCs/ThiccWaifu.cs @@ -395,7 +395,7 @@ namespace CalamityMod.NPCs.NormalNPCs texture = ModContent.Request(Texture).Value; Main.EntitySpriteDraw(texture, NPC.Center - screenPos, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, NPC.frame.Size() * 0.5f, NPC.scale, direction, 0); } - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { // I ran out of ideas, so Cloud just gets a hat like how I wanted GSS to Texture2D hattexture = ModContent.Request("CalamityMod/Particles/WulfrumHat").Value; diff --git a/NPCs/NormalNPCs/WildBumblefuck.cs b/NPCs/NormalNPCs/WildBumblefuck.cs index b5de7efc98..255964bd69 100644 --- a/NPCs/NormalNPCs/WildBumblefuck.cs +++ b/NPCs/NormalNPCs/WildBumblefuck.cs @@ -78,7 +78,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType(), 1, 5, 7); public override void OnKill() { - if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld) { SoundEngine.PlaySound(CommonCalamitySounds.LightningSound, NPC.Center - Vector2.UnitY * 300f); for (int i = 0; i < 5; i++) @@ -95,7 +95,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void FindFrame(int frameHeight) { NPC.frameCounter += NPC.ai[0] == 2.1f ? 1.5 : 1D; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { NPC.frameCounter += 2D; } diff --git a/NPCs/NormalNPCs/WulfrumGyrator.cs b/NPCs/NormalNPCs/WulfrumGyrator.cs index 14a551c276..bde7dbfffc 100644 --- a/NPCs/NormalNPCs/WulfrumGyrator.cs +++ b/NPCs/NormalNPCs/WulfrumGyrator.cs @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void FindFrame(int frameHeight) { NPC.frameCounter++; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { NPC.frameCounter += 1; } diff --git a/NPCs/OldDuke/OldDuke.cs b/NPCs/OldDuke/OldDuke.cs index 67c719b5f2..e2335a17e5 100644 --- a/NPCs/OldDuke/OldDuke.cs +++ b/NPCs/OldDuke/OldDuke.cs @@ -126,7 +126,7 @@ namespace CalamityMod.NPCs.OldDuke public override void ModifyTypeName(ref string typeName) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { typeName = CalamityUtils.GetTextValue("NPCs.BoomerDuke"); } @@ -476,7 +476,7 @@ namespace CalamityMod.NPCs.OldDuke if (hurtInfo.Damage > 0) { target.AddBuff(ModContent.BuffType(), 480); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { target.AddBuff(BuffID.Rabies, Main.rand.Next(180, 601)); } diff --git a/NPCs/OldDuke/OldDukeToothBall.cs b/NPCs/OldDuke/OldDukeToothBall.cs index 3dd51d0a8a..3c5e4dfa83 100644 --- a/NPCs/OldDuke/OldDukeToothBall.cs +++ b/NPCs/OldDuke/OldDukeToothBall.cs @@ -194,7 +194,7 @@ namespace CalamityMod.NPCs.OldDuke } } - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { if (Main.netMode != NetmodeID.MultiplayerClient) { diff --git a/NPCs/Perforator/PerforatorBodyMedium.cs b/NPCs/Perforator/PerforatorBodyMedium.cs index 4918191c2a..5adbea1d33 100644 --- a/NPCs/Perforator/PerforatorBodyMedium.cs +++ b/NPCs/Perforator/PerforatorBodyMedium.cs @@ -201,7 +201,7 @@ namespace CalamityMod.NPCs.Perforator if (Main.rand.NextBool(4) && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) Item.NewItem(NPC.GetSource_Loot(), (int)NPC.position.X, (int)NPC.position.Y, NPC.width, NPC.height, ItemID.Heart); - if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld) { int type = ModContent.ProjectileType(); int damage = NPC.GetProjectileDamage(type); diff --git a/NPCs/Perforator/PerforatorHeadLarge.cs b/NPCs/Perforator/PerforatorHeadLarge.cs index 23e6ce7c76..cef5bfc68c 100644 --- a/NPCs/Perforator/PerforatorHeadLarge.cs +++ b/NPCs/Perforator/PerforatorHeadLarge.cs @@ -308,7 +308,7 @@ namespace CalamityMod.NPCs.Perforator int type = ModContent.ProjectileType(); int damage = NPC.GetProjectileDamage(type); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) NPC.Calamity().newAI[3]++; if (NPC.Calamity().newAI[3] > 180f) //Effectively 10 seconds but give a little headstart in case players kill it too fast diff --git a/NPCs/Perforator/PerforatorHeadMedium.cs b/NPCs/Perforator/PerforatorHeadMedium.cs index 016ffd2abd..f50b597cc8 100644 --- a/NPCs/Perforator/PerforatorHeadMedium.cs +++ b/NPCs/Perforator/PerforatorHeadMedium.cs @@ -470,7 +470,7 @@ namespace CalamityMod.NPCs.Perforator if (Main.rand.NextBool(4) && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) Item.NewItem(NPC.GetSource_Loot(), (int)NPC.position.X, (int)NPC.position.Y, NPC.width, NPC.height, ItemID.Heart); - if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld) { int type = ModContent.ProjectileType(); int damage = NPC.GetProjectileDamage(type); diff --git a/NPCs/Perforator/PerforatorHeadSmall.cs b/NPCs/Perforator/PerforatorHeadSmall.cs index 651b7cbba0..2ab3602615 100644 --- a/NPCs/Perforator/PerforatorHeadSmall.cs +++ b/NPCs/Perforator/PerforatorHeadSmall.cs @@ -274,7 +274,7 @@ namespace CalamityMod.NPCs.Perforator } } - if (CalamityWorld.getFixedBoi && CalamityGlobalNPC.perfHive >= 0) + if (Main.zenithWorld && CalamityGlobalNPC.perfHive >= 0) NPC.ai[0]++; //GFB movement diff --git a/NPCs/Perforator/PerforatorTailMedium.cs b/NPCs/Perforator/PerforatorTailMedium.cs index 63646b0f66..3f89c5fada 100644 --- a/NPCs/Perforator/PerforatorTailMedium.cs +++ b/NPCs/Perforator/PerforatorTailMedium.cs @@ -192,7 +192,7 @@ namespace CalamityMod.NPCs.Perforator if (Main.rand.NextBool(4) && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) Item.NewItem(NPC.GetSource_Loot(), (int)NPC.position.X, (int)NPC.position.Y, NPC.width, NPC.height, ItemID.Heart); - if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld) { int type = ModContent.ProjectileType(); int damage = NPC.GetProjectileDamage(type); diff --git a/NPCs/PlagueEnemies/PlaguebringerMiniboss.cs b/NPCs/PlagueEnemies/PlaguebringerMiniboss.cs index 0063c2d395..b01897a951 100644 --- a/NPCs/PlagueEnemies/PlaguebringerMiniboss.cs +++ b/NPCs/PlagueEnemies/PlaguebringerMiniboss.cs @@ -57,7 +57,7 @@ namespace CalamityMod.NPCs.PlagueEnemies BannerItem = ModContent.ItemType(); NPC.Calamity().VulnerableToSickness = false; NPC.Calamity().VulnerableToElectricity = true; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { NPC.scale = 2f; } diff --git a/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs b/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs index 3e0f5276d3..e7740b8569 100644 --- a/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs +++ b/NPCs/PlaguebringerGoliath/PlagueHomingMissile.cs @@ -217,7 +217,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath SoundEngine.PlaySound(SoundID.Item14, NPC.Center); NPC.position.X = NPC.position.X + (float)(NPC.width / 2); NPC.position.Y = NPC.position.Y + (float)(NPC.height / 2); - NPC.width = NPC.height = CalamityWorld.getFixedBoi ? 300 : 216; + NPC.width = NPC.height = Main.zenithWorld ? 300 : 216; NPC.position.X = NPC.position.X - (float)(NPC.width / 2); NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2); for (int num621 = 0; num621 < 15; num621++) @@ -247,7 +247,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath { if (hurtInfo.Damage > 0) { - if (CalamityWorld.getFixedBoi) // it is the plague, you get very sick. + if (Main.zenithWorld) // it is the plague, you get very sick. { target.AddBuff(ModContent.BuffType(), 240, true); target.AddBuff(BuffID.Poisoned, 240, true); diff --git a/NPCs/PlaguebringerGoliath/PlagueMine.cs b/NPCs/PlaguebringerGoliath/PlagueMine.cs index 0280809177..a263dc5bae 100644 --- a/NPCs/PlaguebringerGoliath/PlagueMine.cs +++ b/NPCs/PlaguebringerGoliath/PlagueMine.cs @@ -132,7 +132,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath { if (hurtInfo.Damage > 0) { - if (CalamityWorld.getFixedBoi) // it is the plague, you get very sick. + if (Main.zenithWorld) // it is the plague, you get very sick. { target.AddBuff(ModContent.BuffType(), 300, true); target.AddBuff(BuffID.Poisoned, 300, true); @@ -147,7 +147,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath SoundEngine.PlaySound(SoundID.Item14, NPC.Center); NPC.position.X = NPC.position.X + (float)(NPC.width / 2); NPC.position.Y = NPC.position.Y + (float)(NPC.height / 2); - NPC.width = NPC.height = CalamityWorld.getFixedBoi ? 300 : 216; + NPC.width = NPC.height = Main.zenithWorld ? 300 : 216; NPC.position.X = NPC.position.X - (float)(NPC.width / 2); NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2); for (int num621 = 0; num621 < 15; num621++) diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs index ddb2a2ae4f..2b59ff4262 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs @@ -818,7 +818,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath break; } - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { type = ModContent.ProjectileType(); } @@ -907,13 +907,13 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath baseVelocity.Normalize(); baseVelocity *= speed; - if (Main.rand.NextBool(10) && CalamityWorld.getFixedBoi) + if (Main.rand.NextBool(10) && Main.zenithWorld) { type = ModContent.ProjectileType(); baseVelocity *= 0.75f; gaussMode = true; } - else if (Main.rand.NextBool(2) && CalamityWorld.getFixedBoi) + else if (Main.rand.NextBool(2) && Main.zenithWorld) { type = ModContent.ProjectileType(); baseVelocity *= 0.4f; @@ -1346,7 +1346,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath { if (hurtInfo.Damage > 0) { - if (CalamityWorld.getFixedBoi) // it is the plague, you get very sick. + if (Main.zenithWorld) // it is the plague, you get very sick. { target.AddBuff(ModContent.BuffType(), 480, true); target.AddBuff(BuffID.Poisoned, 480, true); diff --git a/NPCs/Polterghast/PhantomFuckYou.cs b/NPCs/Polterghast/PhantomFuckYou.cs index 60098897d1..5b025c96e1 100644 --- a/NPCs/Polterghast/PhantomFuckYou.cs +++ b/NPCs/Polterghast/PhantomFuckYou.cs @@ -38,7 +38,7 @@ namespace CalamityMod.NPCs.Polterghast NPC.HitSound = SoundID.NPCHit36; NPC.DeathSound = SoundID.NPCDeath39; NPC.Calamity().VulnerableToSickness = false; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { NPC.dontTakeDamage = true; } diff --git a/NPCs/Polterghast/Polterghast.cs b/NPCs/Polterghast/Polterghast.cs index 4997c46825..99f2b09206 100644 --- a/NPCs/Polterghast/Polterghast.cs +++ b/NPCs/Polterghast/Polterghast.cs @@ -57,10 +57,10 @@ namespace CalamityMod.NPCs.Polterghast private bool threeAM = false; private int nameStage = 1; public static readonly SoundStyle HitSound = new("CalamityMod/Sounds/NPCHit/PolterghastHit"); - public static readonly SoundStyle P2Sound = new("CalamityMod/Sounds/Custom/PolterghastP2Transition"); - public static readonly SoundStyle P3Sound = new("CalamityMod/Sounds/Custom/PolterghastP3Transition"); - public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/PolterghastSpawn"); - public static readonly SoundStyle PhantomSound = new("CalamityMod/Sounds/Custom/PolterghastPhantomSpawn"); + public static readonly SoundStyle P2Sound = new("CalamityMod/Sounds/Custom/Polterghast/PolterghastP2Transition"); + public static readonly SoundStyle P3Sound = new("CalamityMod/Sounds/Custom/Polterghast/PolterghastP3Transition"); + public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/Polterghast/PolterghastSpawn"); + public static readonly SoundStyle PhantomSound = new("CalamityMod/Sounds/Custom/Polterghast/PolterghastPhantomSpawn"); public List creepySounds = new List { @@ -80,7 +80,7 @@ namespace CalamityMod.NPCs.Polterghast NPCs.Abyss.ReaperShark.EnragedRoarSound, NPCs.Abyss.LuminousCorvina.ScreamSound, NPCs.Abyss.DevilFish.MaskBreakSound, - NPCs.AdultEidolonWyrm.AdultEidolonWyrmHead.RoarSound, + NPCs.AdultEidolonWyrm.AdultEidolonWyrmHead.ChargeSound, NPCs.GreatSandShark.GreatSandShark.RoarSound, NPCs.AcidRain.Mauler.RoarSound, NPCs.AstrumDeus.AstrumDeusHead.DeathSound, @@ -229,7 +229,7 @@ namespace CalamityMod.NPCs.Polterghast bool chargePhase = calamityGlobalNPC.newAI[0] >= chargePhaseGateValue; int chargeAmt = getPissed ? 4 : phase3 ? 3 : phase2 ? 2 : 1; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) chargeAmt = phase4 ? int.MaxValue : getPissed ? 6 : phase3 ? 4 : phase2 ? 3 : 2; float chargeVelocity = getPissed ? 28f : phase3 ? 24f : phase2 ? 22f : 20f; @@ -239,7 +239,7 @@ namespace CalamityMod.NPCs.Polterghast bool reset = NPC.ai[2] >= chargePhaseGateValue + 120f; float speedUpDistance = 480f - 360f * (1f - lifeRatio); - if ((Main.time >= 27000 && Main.time < 30600 && Main.dayTime == false && CalamityWorld.getFixedBoi) || threeAM) + if ((Main.time >= 27000 && Main.time < 30600 && Main.dayTime == false && Main.zenithWorld) || threeAM) { threeAM = true; chargeVelocity *= 2; @@ -295,7 +295,7 @@ namespace CalamityMod.NPCs.Polterghast } // Play a random creepy sound every once in a while in the zenith seed - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { soundTimer++; int gate = threeAM ? 60 : phase4 ? 300 : phase3 ? 420 : phase2 ? 540 : 600; @@ -324,7 +324,7 @@ namespace CalamityMod.NPCs.Polterghast NPC.NewNPC(NPC.GetSource_FromAI(), (int)vector.X, (int)vector.Y, ModContent.NPCType(), NPC.whoAmI, 0f, 0f, 0f, 0f, 255); NPC.NewNPC(NPC.GetSource_FromAI(), (int)vector.X, (int)vector.Y, ModContent.NPCType(), NPC.whoAmI, 0f, 0f, 0f, 0f, 255); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { for (int I = 0; I < 3; I++) { @@ -956,7 +956,7 @@ namespace CalamityMod.NPCs.Polterghast { NPC.NewNPC(NPC.GetSource_FromAI(), (int)vector.X, (int)vector.Y, ModContent.NPCType()); - if (expertMode && !CalamityWorld.getFixedBoi) + if (expertMode && !Main.zenithWorld) { for (int I = 0; I < 3; I++) { @@ -1068,7 +1068,7 @@ namespace CalamityMod.NPCs.Polterghast } } - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { NPC.GivenName = CalamityUtils.GetTextValue("NPCs.Polterplasm"); } @@ -1098,7 +1098,7 @@ namespace CalamityMod.NPCs.Polterghast string sulfSeaBoostMessage = "Mods.CalamityMod.Status.Progression.GhostBossText4"; Color sulfSeaBoostColor = AcidRainEvent.TextColor; - if ((Main.rand.NextBool(20) && DateTime.Now.Month == 4 && DateTime.Now.Day == 1) || CalamityWorld.getFixedBoi) + if ((Main.rand.NextBool(20) && DateTime.Now.Month == 4 && DateTime.Now.Day == 1) || Main.zenithWorld) { sulfSeaBoostMessage = "Mods.CalamityMod.Status.Progression.AprilFools2"; // Goddamn boomer duke moments } diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs b/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs index 02b6afffa1..771029062b 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianCommander.cs @@ -267,7 +267,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians } } - if (Main.npc[CalamityGlobalNPC.doughnutBossHealer].ai[0] == 599 && CalamityWorld.getFixedBoi && Main.netMode != NetmodeID.MultiplayerClient) + if (Main.npc[CalamityGlobalNPC.doughnutBossHealer].ai[0] == 599 && Main.zenithWorld && Main.netMode != NetmodeID.MultiplayerClient) { // Gain more health once the healer's channel heal is done NPC.lifeMax += 7500; @@ -287,11 +287,11 @@ namespace CalamityMod.NPCs.ProfanedGuardians Player player = Main.player[NPC.target]; - if ((!Main.dayTime && !CalamityWorld.getFixedBoi) || !player.active || player.dead || Vector2.Distance(Main.player[NPC.target].Center, NPC.Center) > CalamityGlobalNPC.CatchUpDistance200Tiles) + if ((!Main.dayTime && !Main.zenithWorld) || !player.active || player.dead || Vector2.Distance(Main.player[NPC.target].Center, NPC.Center) > CalamityGlobalNPC.CatchUpDistance200Tiles) { NPC.TargetClosest(false); player = Main.player[NPC.target]; - if ((!Main.dayTime && !CalamityWorld.getFixedBoi) || !player.active || player.dead || Vector2.Distance(Main.player[NPC.target].Center, NPC.Center) > CalamityGlobalNPC.CatchUpDistance200Tiles) + if ((!Main.dayTime && !Main.zenithWorld) || !player.active || player.dead || Vector2.Distance(Main.player[NPC.target].Center, NPC.Center) > CalamityGlobalNPC.CatchUpDistance200Tiles) { if (NPC.velocity.Y > 3f) NPC.velocity.Y = 3f; @@ -1024,7 +1024,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians texture2D15 = ModContent.Request("CalamityMod/NPCs/ProfanedGuardians/ProfanedGuardianCommanderGlow").Value; Color color37 = Color.Lerp(Color.White, Color.Yellow, 0.5f); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { texture2D15 = ModContent.Request("CalamityMod/NPCs/ProfanedGuardians/ProfanedGuardianCommanderGlowNight").Value; color37 = Color.Cyan; diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs b/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs index 41fec9b078..3ec2e7bb77 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianDefender.cs @@ -213,7 +213,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians } } - if (Main.npc[CalamityGlobalNPC.doughnutBossHealer].ai[0] == 599 && CalamityWorld.getFixedBoi && Main.netMode != NetmodeID.MultiplayerClient) + if (Main.npc[CalamityGlobalNPC.doughnutBossHealer].ai[0] == 599 && Main.zenithWorld && Main.netMode != NetmodeID.MultiplayerClient) { // gain more health once the healer's channel heal is done NPC.lifeMax += 7500; @@ -388,7 +388,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians } // This causes bugs due to the return - /*if (CalamityWorld.getFixedBoi) + /*if (Main.zenithWorld) { if (Math.Abs(NPC.Center.X - player.Center.X) > 10f) { @@ -749,7 +749,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians texture2D15 = ModContent.Request("CalamityMod/NPCs/ProfanedGuardians/ProfanedGuardianDefenderGlow").Value; Color color37 = Color.Lerp(Color.White, Color.Yellow, 0.5f); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { texture2D15 = ModContent.Request("CalamityMod/NPCs/ProfanedGuardians/ProfanedGuardianDefenderGlowNight").Value; color37 = Color.Cyan; @@ -904,7 +904,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians public override void ModifyHitByProjectile(Projectile projectile, ref NPC.HitModifiers modifiers) { // eat projectiles but take more damage based on piercing in the zenith seed - if (CalamityWorld.getFixedBoi && !projectile.minion) + if (Main.zenithWorld && !projectile.minion) { if (projectile.penetrate <= -1 || projectile.penetrate > 5) { diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianHealer.cs b/NPCs/ProfanedGuardians/ProfanedGuardianHealer.cs index f99a895b54..01507dffef 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianHealer.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianHealer.cs @@ -162,7 +162,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians // Percent life remaining float lifeRatio = NPC.life / (float)NPC.lifeMax; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) NPC.ai[0]++; if (NPC.ai[0] >= 300f) NPC.ai[1] = 1f; @@ -188,7 +188,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians NPC.spriteDirection = NPC.direction; } - if (NPC.ai[1] == 1f && CalamityWorld.getFixedBoi) + if (NPC.ai[1] == 1f && Main.zenithWorld) { NPC.ai[2]++; NPC.velocity = Vector2.Zero; @@ -464,7 +464,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians texture2D15 = ModContent.Request("CalamityMod/NPCs/ProfanedGuardians/ProfanedGuardianHealerGlow").Value; Color color37 = Color.Lerp(Color.White, Color.Yellow, 0.5f); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { texture2D15 = ModContent.Request("CalamityMod/NPCs/ProfanedGuardians/ProfanedGuardianHealerGlowNight").Value; color37 = Color.Cyan; diff --git a/NPCs/Providence/ProvSky.cs b/NPCs/Providence/ProvSky.cs index b79a4af1bb..a7c400cafd 100644 --- a/NPCs/Providence/ProvSky.cs +++ b/NPCs/Providence/ProvSky.cs @@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.Providence if (maxDepth >= 0 && minDepth < 0) { float intensity = GetIntensity(); - Color color = CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : Main.dayTime ? new Color(255, 200, 100) : new Color(100, 150, 255); + Color color = Main.zenithWorld ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : Main.dayTime ? new Color(255, 200, 100) : new Color(100, 150, 255); spriteBatch.Draw(TextureAssets.BlackTile.Value, new Rectangle(0, 0, Main.screenWidth, Main.screenHeight), color * intensity); } } diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index 70cba956b5..942d852cd2 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -251,7 +251,7 @@ namespace CalamityMod.NPCs.Providence // Night bool and Color shifting bool bossRush = BossRushEvent.BossRushActive; - bool getFuckedAI = CalamityWorld.getFixedBoi; + bool getFuckedAI = Main.zenithWorld; int timeToShift = 30; //Switches color every half-second if (getFuckedAI) { diff --git a/NPCs/Ravager/RavagerBody.cs b/NPCs/Ravager/RavagerBody.cs index cf005e7e0e..76843becb1 100644 --- a/NPCs/Ravager/RavagerBody.cs +++ b/NPCs/Ravager/RavagerBody.cs @@ -237,7 +237,7 @@ namespace CalamityMod.NPCs.Ravager } } - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { bool finalStand = lifeRatio < 0.2f; //At 20% body health, does the funny final attack NPC.localAI[1]++; diff --git a/NPCs/Ravager/RavagerHead.cs b/NPCs/Ravager/RavagerHead.cs index 6c8519c162..5779b396d6 100644 --- a/NPCs/Ravager/RavagerHead.cs +++ b/NPCs/Ravager/RavagerHead.cs @@ -119,7 +119,7 @@ namespace CalamityMod.NPCs.Ravager num285++; } } - else if (Main.netMode != NetmodeID.MultiplayerClient && !CalamityWorld.getFixedBoi) //GFB does something else + else if (Main.netMode != NetmodeID.MultiplayerClient && !Main.zenithWorld) //GFB does something else { NPC.NewNPC(NPC.GetSource_Death(), (int)NPC.Center.X, (int)NPC.position.Y + NPC.height, ModContent.NPCType(), NPC.whoAmI); } diff --git a/NPCs/Signus/Signus.cs b/NPCs/Signus/Signus.cs index 23de6f81c6..00f8b7956d 100644 --- a/NPCs/Signus/Signus.cs +++ b/NPCs/Signus/Signus.cs @@ -202,7 +202,7 @@ namespace CalamityMod.NPCs.Signus int stealthSoundGate = 300; int maxStealth = 360; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { if (stealthTimer < maxStealth) { @@ -552,7 +552,7 @@ namespace CalamityMod.NPCs.Signus { if (Main.netMode != NetmodeID.MultiplayerClient) { - int totalLamps = (Main.getGoodWorld && !CalamityWorld.getFixedBoi) ? 10 : 5; + int totalLamps = (Main.getGoodWorld && !Main.zenithWorld) ? 10 : 5; if (NPC.CountNPCS(ModContent.NPCType()) < totalLamps) { bool buffed = false; @@ -564,7 +564,7 @@ namespace CalamityMod.NPCs.Signus for (int x = 0; x < totalLamps; x++) { int type = ModContent.NPCType(); - if (Main.rand.NextBool(10) && CalamityWorld.getFixedBoi) + if (Main.rand.NextBool(10) && Main.zenithWorld) { type = ModContent.NPCType(); } @@ -684,8 +684,8 @@ namespace CalamityMod.NPCs.Signus SoundEngine.PlaySound(SoundID.Item73, NPC.Center); int type = (CalamityWorld.LegendaryMode && revenge) ? ModContent.ProjectileType() : ModContent.ProjectileType(); int damage = (CalamityWorld.LegendaryMode && revenge) ? 60 : NPC.GetProjectileDamage(type); - Vector2 velocity = CalamityWorld.getFixedBoi ? new Vector2(Main.rand.Next(-10, 11), Main.rand.Next(-10, 11)) : Vector2.Zero; - if (Main.getGoodWorld && !CalamityWorld.getFixedBoi) + Vector2 velocity = Main.zenithWorld ? new Vector2(Main.rand.Next(-10, 11), Main.rand.Next(-10, 11)) : Vector2.Zero; + if (Main.getGoodWorld && !Main.zenithWorld) { velocity = new Vector2(Main.rand.Next(-5, 6), Main.rand.Next(-5, 6)); } @@ -842,7 +842,7 @@ namespace CalamityMod.NPCs.Signus spriteBatch.Draw(NPCTexture, vector43, new Rectangle?(frame), NPC.GetAlpha(drawColor) * transparency, rotation, vector11, scale, spriteEffects, 0f); Color color40 = Color.Lerp(Color.White, Color.Fuchsia, 0.5f); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { color40 = Color.MediumBlue; } @@ -862,7 +862,7 @@ namespace CalamityMod.NPCs.Signus } } - if (CalamityWorld.getFixedBoi) // make Sig's eyes more visible in the zenith seed due to the color change + if (Main.zenithWorld) // make Sig's eyes more visible in the zenith seed due to the color change { CalamityUtils.EnterShaderRegion(spriteBatch); Color outlineColor = Color.Lerp(Color.Blue, Color.White, 0.4f); diff --git a/NPCs/SlimeGod/CorruptSlimeSpawn.cs b/NPCs/SlimeGod/CorruptSlimeSpawn.cs index acefa9666d..ffc7f29428 100644 --- a/NPCs/SlimeGod/CorruptSlimeSpawn.cs +++ b/NPCs/SlimeGod/CorruptSlimeSpawn.cs @@ -75,7 +75,7 @@ namespace CalamityMod.NPCs.SlimeGod } public override void OnKill() { - if (CalamityWorld.getFixedBoi && Main.netMode != NetmodeID.MultiplayerClient) + if (Main.zenithWorld && Main.netMode != NetmodeID.MultiplayerClient) { int type = ModContent.ProjectileType(); int damage = NPC.GetProjectileDamage(type); diff --git a/NPCs/SlimeGod/CorruptSlimeSpawn2.cs b/NPCs/SlimeGod/CorruptSlimeSpawn2.cs index 9d923d2249..96205f8618 100644 --- a/NPCs/SlimeGod/CorruptSlimeSpawn2.cs +++ b/NPCs/SlimeGod/CorruptSlimeSpawn2.cs @@ -66,7 +66,7 @@ namespace CalamityMod.NPCs.SlimeGod if (Main.rand.NextBool(8) && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) Item.NewItem(NPC.GetSource_Loot(), (int)NPC.position.X, (int)NPC.position.Y, NPC.width, NPC.height, ItemID.Heart); - if (CalamityWorld.getFixedBoi && Main.rand.NextBool(5)) + if (Main.zenithWorld && Main.rand.NextBool(5)) { if (Main.netMode != NetmodeID.MultiplayerClient) { diff --git a/NPCs/SlimeGod/CrimsonSlimeSpawn.cs b/NPCs/SlimeGod/CrimsonSlimeSpawn.cs index 246ea981f0..351ea65828 100644 --- a/NPCs/SlimeGod/CrimsonSlimeSpawn.cs +++ b/NPCs/SlimeGod/CrimsonSlimeSpawn.cs @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.SlimeGod if (Main.rand.NextBool(8) && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2) Item.NewItem(NPC.GetSource_Loot(), (int)NPC.position.X, (int)NPC.position.Y, NPC.width, NPC.height, ItemID.Heart); - if (CalamityWorld.getFixedBoi && Main.rand.NextBool(5)) + if (Main.zenithWorld && Main.rand.NextBool(5)) { if (Main.netMode != NetmodeID.MultiplayerClient) { diff --git a/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs b/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs index 27941698f6..2bd490b8b9 100644 --- a/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs +++ b/NPCs/SlimeGod/CrimsonSlimeSpawn2.cs @@ -96,7 +96,7 @@ namespace CalamityMod.NPCs.SlimeGod int type = ModContent.ProjectileType(); int damage = NPC.GetProjectileDamage(type); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { type = Main.rand.NextBool(2) ? ModContent.ProjectileType() : ModContent.ProjectileType(); } @@ -115,7 +115,7 @@ namespace CalamityMod.NPCs.SlimeGod } if (Main.netMode != NetmodeID.MultiplayerClient && spikeTimer == 0f) { - int projcount = CalamityWorld.getFixedBoi ? 12 : 5; + int projcount = Main.zenithWorld ? 12 : 5; for (int n = 0; n < projcount; n++) { Vector2 vector4 = new Vector2((float)(n - 2), -4f); diff --git a/NPCs/SlimeGod/CrimulanPaladin.cs b/NPCs/SlimeGod/CrimulanPaladin.cs index 9449c60c03..fd8b9e4c4d 100644 --- a/NPCs/SlimeGod/CrimulanPaladin.cs +++ b/NPCs/SlimeGod/CrimulanPaladin.cs @@ -135,7 +135,7 @@ namespace CalamityMod.NPCs.SlimeGod Vector2 spawnAt = NPC.Center + new Vector2(0f, NPC.height / 2f); NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X - 30, (int)spawnAt.Y, ModContent.NPCType()); NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X + 30, (int)spawnAt.Y, ModContent.NPCType()); - if (CalamityWorld.getFixedBoi && NPC.CountNPCS(ModContent.NPCType()) < 3) //split into 3 slimes if the other large slime hasn't split yet + if (Main.zenithWorld && NPC.CountNPCS(ModContent.NPCType()) < 3) //split into 3 slimes if the other large slime hasn't split yet { NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X, (int)spawnAt.Y - 30, ModContent.NPCType()); } diff --git a/NPCs/SlimeGod/EbonianPaladin.cs b/NPCs/SlimeGod/EbonianPaladin.cs index 7f6484c8c7..ba6c41d255 100644 --- a/NPCs/SlimeGod/EbonianPaladin.cs +++ b/NPCs/SlimeGod/EbonianPaladin.cs @@ -132,7 +132,7 @@ namespace CalamityMod.NPCs.SlimeGod Vector2 spawnAt = NPC.Center + new Vector2(0f, NPC.height / 2f); NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X - 30, (int)spawnAt.Y, ModContent.NPCType()); NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X + 30, (int)spawnAt.Y, ModContent.NPCType()); - if (CalamityWorld.getFixedBoi && NPC.CountNPCS(ModContent.NPCType()) < 3) // split into 3 slimes if the other large slime hasn't split yet + if (Main.zenithWorld && NPC.CountNPCS(ModContent.NPCType()) < 3) // split into 3 slimes if the other large slime hasn't split yet { NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X, (int)spawnAt.Y - 30, ModContent.NPCType()); } diff --git a/NPCs/SlimeGod/SlimeGodCore.cs b/NPCs/SlimeGod/SlimeGodCore.cs index 6a338b1e2a..c00ca9ea6f 100644 --- a/NPCs/SlimeGod/SlimeGodCore.cs +++ b/NPCs/SlimeGod/SlimeGodCore.cs @@ -192,7 +192,7 @@ namespace CalamityMod.NPCs.SlimeGod } // Emit dust - if (!CalamityWorld.getFixedBoi) // you must see his glory. + if (!Main.zenithWorld) // you must see his glory. { for (int k = 0; k < 5; k++) { @@ -554,11 +554,11 @@ namespace CalamityMod.NPCs.SlimeGod float num160 = 0f; int num161 = num159; spriteBatch.Draw(texture2D3, NPC.Center - screenPos + new Vector2(0, NPC.gfxOffY), NPC.frame, color24, NPC.rotation, NPC.frame.Size() / 2, NPC.scale, spriteEffects, 0); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { spriteBatch.Draw(pog, NPC.Center - screenPos + new Vector2(0, NPC.gfxOffY), NPC.frame, color24, NPC.rotation, NPC.frame.Size() / 2, NPC.scale, spriteEffects, 0); } - if (!CalamityWorld.getFixedBoi) + if (!Main.zenithWorld) while (((num158 > 0 && num161 < num157) || (num158 < 0 && num161 > num157)) && CalamityConfig.Instance.Afterimages) { Color color26 = NPC.GetAlpha(color25); @@ -659,7 +659,7 @@ namespace CalamityMod.NPCs.SlimeGod { if (hurtInfo.Damage > 0) { - int debufftype = CalamityWorld.getFixedBoi ? BuffID.VortexDebuff : BuffID.Slow; + int debufftype = Main.zenithWorld ? BuffID.VortexDebuff : BuffID.Slow; target.AddBuff(debufftype, 180, true); target.AddBuff(BuffID.Weak, 180, true); target.AddBuff(BuffID.Darkness, 180, true); diff --git a/NPCs/StormWeaver/StormWeaverHead.cs b/NPCs/StormWeaver/StormWeaverHead.cs index 5a6e36d93f..e6f0f69857 100644 --- a/NPCs/StormWeaver/StormWeaverHead.cs +++ b/NPCs/StormWeaver/StormWeaverHead.cs @@ -243,7 +243,7 @@ namespace CalamityMod.NPCs.StormWeaver int Previous = NPC.whoAmI; int totalLength = death ? 60 : revenge ? 50 : expertMode ? 40 : 30; int npcCounts = 0; - if (CalamityWorld.getFixedBoi) // use up every remaining npc but 20 for safety in the zenith seed + if (Main.zenithWorld) // use up every remaining npc but 20 for safety in the zenith seed { for (int i = 0; i < Main.maxNPCs; i++) { diff --git a/NPCs/SunkenSea/GiantClam.cs b/NPCs/SunkenSea/GiantClam.cs index aef2ff5e44..31ca41d969 100644 --- a/NPCs/SunkenSea/GiantClam.cs +++ b/NPCs/SunkenSea/GiantClam.cs @@ -281,7 +281,7 @@ namespace CalamityMod.NPCs.SunkenSea } // Gains Calamitas' bullet hells in the zenith seed - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { calamityGlobalNPC.newAI[0] += 1f; @@ -460,7 +460,7 @@ namespace CalamityMod.NPCs.SunkenSea public override void ModifyTypeName(ref string typeName) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { if (Main.hardMode) { diff --git a/NPCs/SupremeCalamitas/SepulcherBodyEnergyBall.cs b/NPCs/SupremeCalamitas/SepulcherBodyEnergyBall.cs index 74b7f68971..cfaaced4d0 100644 --- a/NPCs/SupremeCalamitas/SepulcherBodyEnergyBall.cs +++ b/NPCs/SupremeCalamitas/SepulcherBodyEnergyBall.cs @@ -102,7 +102,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas NPC.alpha = HeadSegment.alpha; AttackTimer += BossRushEvent.BossRushActive ? 1.5f : 1f; - float attackgate = !HeadSegment.Calamity().unbreakableDR && CalamityWorld.getFixedBoi ? 450f : 900f; + float attackgate = !HeadSegment.Calamity().unbreakableDR && Main.zenithWorld ? 450f : 900f; if (AttackTimer >= attackgate) { AttackTimer = 0f; diff --git a/NPCs/SupremeCalamitas/SepulcherHead.cs b/NPCs/SupremeCalamitas/SepulcherHead.cs index a44bae94ac..04eaaf4713 100644 --- a/NPCs/SupremeCalamitas/SepulcherHead.cs +++ b/NPCs/SupremeCalamitas/SepulcherHead.cs @@ -171,7 +171,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas } } - if (CalamityWorld.getFixedBoi && !NPC.AnyNPCs(ModContent.NPCType())) + if (Main.zenithWorld && !NPC.AnyNPCs(ModContent.NPCType())) { CalamityGlobalNPC global = NPC.Calamity(); global.DR = 0.4f; @@ -180,7 +180,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas NPC.DeathSound = DeathSound; } - if (Main.player[NPC.target].dead || (!NPC.AnyNPCs(ModContent.NPCType()) && !CalamityWorld.getFixedBoi) || CalamityGlobalNPC.SCal < 0 || !Main.npc[CalamityGlobalNPC.SCal].active) + if (Main.player[NPC.target].dead || (!NPC.AnyNPCs(ModContent.NPCType()) && !Main.zenithWorld) || CalamityGlobalNPC.SCal < 0 || !Main.npc[CalamityGlobalNPC.SCal].active) { NPC.TargetClosest(false); SoundEngine.PlaySound(DeathSound, Main.player[NPC.target].Center); diff --git a/NPCs/SupremeCalamitas/SepulcherTail.cs b/NPCs/SupremeCalamitas/SepulcherTail.cs index dfc5616b40..583438ae8b 100644 --- a/NPCs/SupremeCalamitas/SepulcherTail.cs +++ b/NPCs/SupremeCalamitas/SepulcherTail.cs @@ -146,7 +146,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas } } - if (CalamityWorld.getFixedBoi && !NPC.AnyNPCs(ModContent.NPCType())) + if (Main.zenithWorld && !NPC.AnyNPCs(ModContent.NPCType())) { CalamityGlobalNPC global = NPC.Calamity(); global.DR = 0.5f; diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 3278bca87f..0b076da6e2 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -411,12 +411,12 @@ namespace CalamityMod.NPCs.SupremeCalamitas hellblastDamage /= 2; } - int bulletHellblast = CalamityWorld.getFixedBoi ? ModContent.ProjectileType() : ModContent.ProjectileType(); + int bulletHellblast = Main.zenithWorld ? ModContent.ProjectileType() : ModContent.ProjectileType(); int barrage = ModContent.ProjectileType(); - int gigablast = CalamityWorld.getFixedBoi ? ModContent.ProjectileType() : ModContent.ProjectileType(); - int fireblast = CalamityWorld.getFixedBoi ? ModContent.ProjectileType() : ModContent.ProjectileType(); - int wave = CalamityWorld.getFixedBoi ? ModContent.ProjectileType() : ModContent.ProjectileType(); - int hellblast = CalamityWorld.getFixedBoi ? ModContent.ProjectileType() : ModContent.ProjectileType(); + int gigablast = Main.zenithWorld ? ModContent.ProjectileType() : ModContent.ProjectileType(); + int fireblast = Main.zenithWorld ? ModContent.ProjectileType() : ModContent.ProjectileType(); + int wave = Main.zenithWorld ? ModContent.ProjectileType() : ModContent.ProjectileType(); + int hellblast = Main.zenithWorld ? ModContent.ProjectileType() : ModContent.ProjectileType(); int bodyWidth = 44; int bodyHeight = 42; @@ -559,7 +559,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas int xoffset = 0; int yoffset = 0; int maxoffset = 3; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { xoffset += Main.rand.Next(-maxoffset, maxoffset + 1); yoffset += Main.rand.Next(-maxoffset, maxoffset + 1); @@ -733,7 +733,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas float velocity = (distance == -1000f ? 4f : -4f) * uDieLul; Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + distance, player.position.Y, velocity, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer); } - if (bulletHellCounter2 < 300 && !CalamityWorld.getFixedBoi) // Blasts from above + if (bulletHellCounter2 < 300 && !Main.zenithWorld) // Blasts from above { 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); } @@ -744,7 +744,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas } else // Blasts from above, left, and right { - if (!CalamityWorld.getFixedBoi) + if (!Main.zenithWorld) 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); @@ -820,7 +820,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas float velocity = (distance == -1000f ? 4f : -4f) * uDieLul; Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + distance, player.position.Y, velocity, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer); } - if (bulletHellCounter2 < 1200 && !CalamityWorld.getFixedBoi) // Blasts from below + if (bulletHellCounter2 < 1200 && !Main.zenithWorld) // Blasts from below { 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); } @@ -881,7 +881,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas float velocity = (distance == -1000f ? 4f : -4f) * uDieLul; Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + distance, player.position.Y, velocity, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer); } - if (bulletHellCounter2 < 2100 && !CalamityWorld.getFixedBoi) // Blasts from above + if (bulletHellCounter2 < 2100 && !Main.zenithWorld) // Blasts from above { 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); } @@ -951,7 +951,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas float velocity = (distance == -1000f ? 4f : -4f) * uDieLul; Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + distance, player.position.Y, velocity, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer); } - if (bulletHellCounter2 < 3000 && !CalamityWorld.getFixedBoi) // Blasts from below + if (bulletHellCounter2 < 3000 && !Main.zenithWorld) // Blasts from below { 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); } @@ -1019,7 +1019,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas float velocity = (distance == -1000f ? 4f : -4f) * uDieLul; Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + distance, player.position.Y, velocity, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer); } - if (bulletHellCounter2 < 3900 && !CalamityWorld.getFixedBoi) // Blasts from above + if (bulletHellCounter2 < 3900 && !Main.zenithWorld) // Blasts from above { 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); } @@ -1030,7 +1030,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas } else // Blasts from above, left, and right { - if (!CalamityWorld.getFixedBoi) + if (!Main.zenithWorld) 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); diff --git a/NPCs/SupremeCalamitas/SupremeCataclysm.cs b/NPCs/SupremeCalamitas/SupremeCataclysm.cs index 8e6278f0da..5b56920765 100644 --- a/NPCs/SupremeCalamitas/SupremeCataclysm.cs +++ b/NPCs/SupremeCalamitas/SupremeCataclysm.cs @@ -236,13 +236,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas DartBurstCounter = 0f; SoundEngine.PlaySound(SupremeCalamitas.BrimstoneShotSound, NPC.Center); - int type = CalamityWorld.getFixedBoi ? ModContent.ProjectileType() : ModContent.ProjectileType(); + int type = Main.zenithWorld ? ModContent.ProjectileType() : ModContent.ProjectileType(); 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 = CalamityWorld.getFixedBoi ? 5f : 7f; + float velocity = Main.zenithWorld ? 5f : 7f; Vector2 spinningPoint = new Vector2(0f, -velocity); if (Main.netMode != NetmodeID.MultiplayerClient) { @@ -283,7 +283,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas spriteBatch.Draw(texture, mainDrawPosition, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, origin, NPC.scale, spriteEffects, 0f); texture = ModContent.Request("CalamityMod/NPCs/SupremeCalamitas/SupremeCataclysmGlow").Value; - Color primarycolor = CalamityWorld.getFixedBoi ? Color.Blue : Color.Red; // why? because blue fire is awesome!! + Color primarycolor = Main.zenithWorld ? Color.Blue : Color.Red; // why? because blue fire is awesome!! Color baseGlowmaskColor = NPC.IsABestiaryIconDummy ? Color.White : Color.Lerp(Color.White, primarycolor, 0.5f); if (CalamityConfig.Instance.Afterimages) diff --git a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs index 19f7f15d0b..b78a0228ca 100644 --- a/NPCs/SupremeCalamitas/SupremeCatastrophe.cs +++ b/NPCs/SupremeCalamitas/SupremeCatastrophe.cs @@ -231,13 +231,13 @@ namespace CalamityMod.NPCs.SupremeCalamitas DartBurstCounter = 0f; SoundEngine.PlaySound(SupremeCalamitas.BrimstoneShotSound, NPC.Center); - int type = CalamityWorld.getFixedBoi ? ModContent.ProjectileType() : ModContent.ProjectileType(); + int type = Main.zenithWorld ? ModContent.ProjectileType() : ModContent.ProjectileType(); 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 = CalamityWorld.getFixedBoi ? 5f : 7f; + float velocity = Main.zenithWorld ? 5f : 7f; Vector2 spinningPoint = new Vector2(0f, -velocity); if (Main.netMode != NetmodeID.MultiplayerClient) { diff --git a/NPCs/TownNPCs/FAP.cs b/NPCs/TownNPCs/FAP.cs index 0eeb74ae75..6829822888 100644 --- a/NPCs/TownNPCs/FAP.cs +++ b/NPCs/TownNPCs/FAP.cs @@ -105,7 +105,7 @@ namespace CalamityMod.NPCs.TownNPCs public override string GetChat() { Player player = Main.player[Main.myPlayer]; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { player.Hurt(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.CirrusSlap").Format(player.name)), player.statLife / 2, -player.direction, false, false, -1, false); SoundEngine.PlaySound(CnidarianJellyfishOnTheString.SlapSound, player.Center); diff --git a/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs b/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs index 7d8722f899..ffdadfcb36 100644 --- a/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs +++ b/NPCs/VanillaNPCOverrides/Bosses/QueenBeeAI.cs @@ -471,7 +471,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses if (Main.netMode != NetmodeID.MultiplayerClient) { int spawnType = phase3 ? NPCID.Bee : Main.rand.Next(NPCID.Bee, NPCID.BeeSmall + 1); - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { if (phase3) spawnType = Main.rand.NextBool(3) ? ModContent.NPCType() : ModContent.NPCType(); @@ -483,7 +483,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses Main.npc[spawn].velocity = Main.player[npc.target].Center - npc.Center; Main.npc[spawn].velocity.Normalize(); Main.npc[spawn].velocity *= 5f; - if (!CalamityWorld.getFixedBoi) + if (!Main.zenithWorld) Main.npc[spawn].localAI[0] = 60f; Main.npc[spawn].netUpdate = true; } @@ -576,8 +576,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses num627 = num624 / num627; num625 *= num627; num626 *= num627; - int type = CalamityWorld.getFixedBoi ? (phase3 ? ModContent.ProjectileType() : ProjectileID.FlamingWood) : ProjectileID.QueenBeeStinger; - int projectile = Projectile.NewProjectile(npc.GetSource_FromAI(), vector78.X, vector78.Y, num625, num626, type, CalamityWorld.getFixedBoi ? 25 : npc.GetProjectileDamage(type), 0f, Main.myPlayer, 0f, (CalamityWorld.getFixedBoi && phase3) ? Main.player[npc.target].position.Y : 0f); + int type = Main.zenithWorld ? (phase3 ? ModContent.ProjectileType() : ProjectileID.FlamingWood) : ProjectileID.QueenBeeStinger; + int projectile = Projectile.NewProjectile(npc.GetSource_FromAI(), vector78.X, vector78.Y, num625, num626, type, Main.zenithWorld ? 25 : npc.GetProjectileDamage(type), 0f, Main.myPlayer, 0f, (Main.zenithWorld && phase3) ? Main.player[npc.target].position.Y : 0f); Main.projectile[projectile].timeLeft = 600; Main.projectile[projectile].extraUpdates = 1; } diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index fd750be1cf..f1ce20e581 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -355,12 +355,12 @@ namespace CalamityMod.NPCs.Yharon enraged = false; if (Main.netMode != NetmodeID.MultiplayerClient) { - safeBox.X = (int)(player.Center.X - (CalamityWorld.getFixedBoi ? 1500f : Main.getGoodWorld ? 1000f : bossRush ? 2000f : revenge ? 3000f : 3500f)); + safeBox.X = (int)(player.Center.X - (Main.zenithWorld ? 1500f : Main.getGoodWorld ? 1000f : bossRush ? 2000f : revenge ? 3000f : 3500f)); safeBox.Y = (int)(player.Center.Y - 10500f); - safeBox.Width = CalamityWorld.getFixedBoi ? 3000 : Main.getGoodWorld ? 2000 : bossRush ? 4000 : revenge ? 6000 : 7000; + safeBox.Width = Main.zenithWorld ? 3000 : Main.getGoodWorld ? 2000 : bossRush ? 4000 : revenge ? 6000 : 7000; safeBox.Height = 21000; - Projectile.NewProjectile(NPC.GetSource_FromAI(), player.Center.X + (CalamityWorld.getFixedBoi ? 1500f : Main.getGoodWorld ? 1000f : bossRush ? 2000f : revenge ? 3000f : 3500f), player.Center.Y + 100f, 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer); - Projectile.NewProjectile(NPC.GetSource_FromAI(), player.Center.X - (CalamityWorld.getFixedBoi ? 1500f : Main.getGoodWorld ? 1000f : bossRush ? 2000f : revenge ? 3000f : 3500f), player.Center.Y + 100f, 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer); + Projectile.NewProjectile(NPC.GetSource_FromAI(), player.Center.X + (Main.zenithWorld ? 1500f : Main.getGoodWorld ? 1000f : bossRush ? 2000f : revenge ? 3000f : 3500f), player.Center.Y + 100f, 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer); + Projectile.NewProjectile(NPC.GetSource_FromAI(), player.Center.X - (Main.zenithWorld ? 1500f : Main.getGoodWorld ? 1000f : bossRush ? 2000f : revenge ? 3000f : 3500f), player.Center.Y + 100f, 0f, 0f, ModContent.ProjectileType(), 0, 0f, Main.myPlayer); } // Force Yharon to send a sync packet so that the arena gets sent immediately @@ -891,9 +891,9 @@ namespace CalamityMod.NPCs.Yharon NPC.Center = center; int type = ModContent.ProjectileType(); - int damage = CalamityWorld.getFixedBoi ? NPC.GetProjectileDamage(type) : 0; + int damage = Main.zenithWorld ? NPC.GetProjectileDamage(type) : 0; float bulletHellVortexDuration = flareDustPhaseTimer + teleportPhaseTimer - 15f; - int extraTime = CalamityWorld.getFixedBoi ? 300 : 0; + int extraTime = Main.zenithWorld ? 300 : 0; Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, Vector2.Zero, type, damage, 0f, Main.myPlayer, bulletHellVortexDuration + extraTime, NPC.whoAmI); // Yharon takes a small amount of damage in order to summon the bullet hell. This is to compensate for him being invulnerable during it. @@ -1240,9 +1240,9 @@ namespace CalamityMod.NPCs.Yharon NPC.Center = center; int type = ModContent.ProjectileType(); - int damage = CalamityWorld.getFixedBoi ? NPC.GetProjectileDamage(type) : 0; + int damage = Main.zenithWorld ? NPC.GetProjectileDamage(type) : 0; float bulletHellVortexDuration = flareDustPhaseTimer + teleportPhaseTimer - 15f; - int extraTime = CalamityWorld.getFixedBoi ? 300 : 0; + int extraTime = Main.zenithWorld ? 300 : 0; Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, Vector2.Zero, type, damage, 0f, Main.myPlayer, bulletHellVortexDuration + extraTime, NPC.whoAmI); // Yharon takes a small amount of damage in order to summon the bullet hell. This is to compensate for him being invulnerable during it. @@ -1577,7 +1577,7 @@ namespace CalamityMod.NPCs.Yharon bool invincible = invincibilityCounter < Phase2InvincibilityTime; if (invincible) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { if (NPC.life < NPC.lifeMax) { @@ -1946,9 +1946,9 @@ namespace CalamityMod.NPCs.Yharon NPC.Center = center; int type = ModContent.ProjectileType(); - int damage = CalamityWorld.getFixedBoi ? NPC.GetProjectileDamage(type) : 0; + int damage = Main.zenithWorld ? NPC.GetProjectileDamage(type) : 0; float bulletHellVortexDuration = spinPhaseTimer + 15f; - int extraTime = CalamityWorld.getFixedBoi ? 300 : 0; + int extraTime = Main.zenithWorld ? 300 : 0; Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, Vector2.Zero, type, damage, 0f, Main.myPlayer, bulletHellVortexDuration + extraTime, NPC.whoAmI); // Yharon takes a small amount of damage in order to summon the bullet hell. This is to compensate for him being invulnerable during it. @@ -2935,7 +2935,7 @@ namespace CalamityMod.NPCs.Yharon DownedBossSystem.downedYharon = true; CalamityNetcode.SyncWorld(); - if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld) { for (int i = 0; i < 4; i++) { diff --git a/Projectiles/Boss/BrimstoneBarrage.cs b/Projectiles/Boss/BrimstoneBarrage.cs index 1bd3884d0c..b94a636148 100644 --- a/Projectiles/Boss/BrimstoneBarrage.cs +++ b/Projectiles/Boss/BrimstoneBarrage.cs @@ -96,7 +96,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0 || Projectile.Opacity != 1f) return; - if (Projectile.ai[0] == 0f || CalamityWorld.getFixedBoi) + if (Projectile.ai[0] == 0f || Main.zenithWorld) target.AddBuff(ModContent.BuffType(), 120); else target.AddBuff(ModContent.BuffType(), 180); diff --git a/Projectiles/Boss/BrimstoneHellblast.cs b/Projectiles/Boss/BrimstoneHellblast.cs index b576ca8979..34023188f8 100644 --- a/Projectiles/Boss/BrimstoneHellblast.cs +++ b/Projectiles/Boss/BrimstoneHellblast.cs @@ -84,7 +84,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0 || Projectile.timeLeft < 51) return; - if (Projectile.ai[0] == 0f || CalamityWorld.getFixedBoi) + if (Projectile.ai[0] == 0f || Main.zenithWorld) target.AddBuff(ModContent.BuffType(), 120); else target.AddBuff(ModContent.BuffType(), 180); diff --git a/Projectiles/Boss/BrimstoneHellblast2.cs b/Projectiles/Boss/BrimstoneHellblast2.cs index 5d25857c4b..4f0fef6c60 100644 --- a/Projectiles/Boss/BrimstoneHellblast2.cs +++ b/Projectiles/Boss/BrimstoneHellblast2.cs @@ -88,7 +88,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0 || Projectile.Opacity != 1f) return; - if (Projectile.ai[0] == 0f || CalamityWorld.getFixedBoi) + if (Projectile.ai[0] == 0f || Main.zenithWorld) target.AddBuff(ModContent.BuffType(), 120); else target.AddBuff(ModContent.BuffType(), 180); diff --git a/Projectiles/Boss/BrimstoneMonster.cs b/Projectiles/Boss/BrimstoneMonster.cs index a184392862..201f3aa2bf 100644 --- a/Projectiles/Boss/BrimstoneMonster.cs +++ b/Projectiles/Boss/BrimstoneMonster.cs @@ -145,7 +145,7 @@ 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); - float distancegate = CalamityWorld.getFixedBoi ? 360f : 320f; + float distancegate = Main.zenithWorld ? 360f : 320f; if (sameProjType && taxicabDist < distancegate) { if (Projectile.position.X < otherProj.position.X) diff --git a/Projectiles/Boss/BrimstoneRay.cs b/Projectiles/Boss/BrimstoneRay.cs index 838ff4a4fe..c1bc4d9d3d 100644 --- a/Projectiles/Boss/BrimstoneRay.cs +++ b/Projectiles/Boss/BrimstoneRay.cs @@ -122,7 +122,7 @@ namespace CalamityMod.Projectiles.Boss { Vector2 velocity = Projectile.velocity; velocity.Normalize(); - float distanceBetweenProjectiles = CalamityWorld.getFixedBoi ? 360 : bossRush ? 72f : 144f; + float distanceBetweenProjectiles = Main.zenithWorld ? 360 : bossRush ? 72f : 144f; Vector2 fireFrom = new Vector2(Main.npc[(int)Projectile.ai[1]].Center.X + (Main.npc[(int)Projectile.ai[1]].spriteDirection > 0 ? 34f : -34f), Main.npc[(int)Projectile.ai[1]].Center.Y - 74f) + velocity * distanceBetweenProjectiles; int projectileAmt = (int)(Projectile.localAI[1] / distanceBetweenProjectiles); int type = ModContent.ProjectileType(); diff --git a/Projectiles/Boss/DarkEnergyBall.cs b/Projectiles/Boss/DarkEnergyBall.cs index b12b5653e1..8061370fe3 100644 --- a/Projectiles/Boss/DarkEnergyBall.cs +++ b/Projectiles/Boss/DarkEnergyBall.cs @@ -94,8 +94,8 @@ namespace CalamityMod.Projectiles.Boss if (Projectile.Opacity == 1f) { - int debufftype = CalamityWorld.getFixedBoi ? BuffID.Obstructed : BuffID.VortexDebuff; - int duration = CalamityWorld.getFixedBoi ? 30 : 60; + int debufftype = Main.zenithWorld ? BuffID.Obstructed : BuffID.VortexDebuff; + int duration = Main.zenithWorld ? 30 : 60; if (info.Damage > 0) target.AddBuff(debufftype, duration, true); } diff --git a/Projectiles/Boss/DarkEnergyBall2.cs b/Projectiles/Boss/DarkEnergyBall2.cs index 76beef92a2..d25618c96c 100644 --- a/Projectiles/Boss/DarkEnergyBall2.cs +++ b/Projectiles/Boss/DarkEnergyBall2.cs @@ -92,8 +92,8 @@ namespace CalamityMod.Projectiles.Boss if (Projectile.Opacity == 1f) { - int debufftype = CalamityWorld.getFixedBoi ? BuffID.Obstructed : BuffID.VortexDebuff; - int duration = CalamityWorld.getFixedBoi ? 30 : 60; + int debufftype = Main.zenithWorld ? BuffID.Obstructed : BuffID.VortexDebuff; + int duration = Main.zenithWorld ? 30 : 60; if (info.Damage > 0) target.AddBuff(debufftype, duration, true); } diff --git a/Projectiles/Boss/DeusMine.cs b/Projectiles/Boss/DeusMine.cs index a9f596bf9c..0e31004150 100644 --- a/Projectiles/Boss/DeusMine.cs +++ b/Projectiles/Boss/DeusMine.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; +using CalamityMod.NPCs.AstrumDeus; using Microsoft.Xna.Framework; using System; using System.IO; @@ -46,7 +47,7 @@ namespace CalamityMod.Projectiles.Boss if (Projectile.ai[1] == 0f) { Projectile.ai[1] = 1f; - SoundEngine.PlaySound(SoundID.Item33, Projectile.Center); + SoundEngine.PlaySound(AstrumDeusHead.MineSound, Projectile.Center); } // Deal no damage if fading out and not set to explode diff --git a/Projectiles/Boss/DyingSun.cs b/Projectiles/Boss/DyingSun.cs index 90eaf1bfac..6b84165ff6 100644 --- a/Projectiles/Boss/DyingSun.cs +++ b/Projectiles/Boss/DyingSun.cs @@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Boss public Color SunColorFunction(float completionRatio) { - Color sunColor = CalamityWorld.getFixedBoi ? (new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) * 0.8f) : (Main.dayTime ? Color.Yellow : Color.Cyan); + Color sunColor = Main.zenithWorld ? (new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) * 0.8f) : (Main.dayTime ? Color.Yellow : Color.Cyan); return Color.Lerp(sunColor, Color.White, (float)Math.Sin(MathHelper.Pi * completionRatio) * 0.5f + 0.3f) * Projectile.Opacity; } diff --git a/Projectiles/Boss/Flarenado.cs b/Projectiles/Boss/Flarenado.cs index 44a415ebf2..3a5ce73b9d 100644 --- a/Projectiles/Boss/Flarenado.cs +++ b/Projectiles/Boss/Flarenado.cs @@ -113,7 +113,7 @@ namespace CalamityMod.Projectiles.Boss int tornadoSpeed = 10; int breakThreshold = 300; Projectile.localAI[1] += 1f; - bool breakapart = CalamityWorld.getFixedBoi && Projectile.localAI[1] >= breakThreshold; + bool breakapart = Main.zenithWorld && Projectile.localAI[1] >= breakThreshold; if (Projectile.ai[0] <= 0f && !breakapart) { float num622 = 0.104719758f; @@ -125,7 +125,7 @@ namespace CalamityMod.Projectiles.Boss num624 = (float)(Math.Cos((double)(num622 * -(double)Projectile.ai[0])) - 0.5) * num623; Projectile.position.X += num624 * -Projectile.direction; } - if (Projectile.localAI[1] == breakThreshold && CalamityWorld.getFixedBoi) + if (Projectile.localAI[1] == breakThreshold && Main.zenithWorld) { Projectile.velocity.X = Main.rand.NextBool(2) ? -tornadoSpeed : tornadoSpeed; diff --git a/Projectiles/Boss/HiveBombGoliath.cs b/Projectiles/Boss/HiveBombGoliath.cs index 6ad18789a3..d4422b6036 100644 --- a/Projectiles/Boss/HiveBombGoliath.cs +++ b/Projectiles/Boss/HiveBombGoliath.cs @@ -163,7 +163,7 @@ namespace CalamityMod.Projectiles.Boss } } - if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi) + if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld) { Vector2 valueBoom = new Vector2(Projectile.position.X + (float)Projectile.width * 0.5f, Projectile.position.Y + (float)Projectile.height * 0.5f); float spreadBoom = 15f * 0.0174f; @@ -191,7 +191,7 @@ namespace CalamityMod.Projectiles.Boss if (info.Damage <= 0) return; - if (CalamityWorld.getFixedBoi) // it is the plague, you get very sick. + if (Main.zenithWorld) // it is the plague, you get very sick. { target.AddBuff(ModContent.BuffType(), 240, true); target.AddBuff(BuffID.Poisoned, 240, true); diff --git a/Projectiles/Boss/HolyAura.cs b/Projectiles/Boss/HolyAura.cs index febd9aa5d7..99e5da60a0 100644 --- a/Projectiles/Boss/HolyAura.cs +++ b/Projectiles/Boss/HolyAura.cs @@ -69,7 +69,7 @@ namespace CalamityMod.Projectiles.Boss Color color = Main.hslToRgb(hue[i] % 1f, 1f, 0.5f) * colorChangeAmt * colorChangeAmt2; bool underworld = Projectile.ai[0] == 2f; - if (!CalamityWorld.getFixedBoi) + if (!Main.zenithWorld) { if (Main.dayTime) { diff --git a/Projectiles/Boss/HolyExplosionBoom.cs b/Projectiles/Boss/HolyExplosionBoom.cs index ec2cb6e827..48e7b8cf16 100644 --- a/Projectiles/Boss/HolyExplosionBoom.cs +++ b/Projectiles/Boss/HolyExplosionBoom.cs @@ -15,7 +15,7 @@ namespace CalamityMod.Projectiles.Boss public override float GetScreenshakePower(float pulseCompletionRatio) => CalamityUtils.Convert01To010(pulseCompletionRatio) * 16f; public override Color GetCurrentExplosionColor(float pulseCompletionRatio) { - Color explosionColor = CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : (Main.dayTime ? Color.Orange : Color.BlueViolet); + Color explosionColor = Main.zenithWorld ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : (Main.dayTime ? Color.Orange : Color.BlueViolet); return Color.Lerp(explosionColor * 1.6f, Color.White, MathHelper.Clamp(pulseCompletionRatio * 2.2f, 0f, 1f)); } public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; diff --git a/Projectiles/Boss/Infernado.cs b/Projectiles/Boss/Infernado.cs index 2f62398ac5..cd8d85caab 100644 --- a/Projectiles/Boss/Infernado.cs +++ b/Projectiles/Boss/Infernado.cs @@ -115,7 +115,7 @@ namespace CalamityMod.Projectiles.Boss int tornadoSpeed = 10; int breakThreshold = 300; Projectile.localAI[1] += 1f; - bool breakapart = CalamityWorld.getFixedBoi && Projectile.localAI[1] >= breakThreshold; + bool breakapart = Main.zenithWorld && Projectile.localAI[1] >= breakThreshold; if (Projectile.ai[0] <= 0f && !breakapart) { float num622 = 0.104719758f; @@ -127,7 +127,7 @@ namespace CalamityMod.Projectiles.Boss num624 = (float)(Math.Cos((double)(num622 * -(double)Projectile.ai[0])) - 0.5) * num623; Projectile.position.X += num624 * -Projectile.direction; } - if (Projectile.localAI[1] == breakThreshold && CalamityWorld.getFixedBoi) + if (Projectile.localAI[1] == breakThreshold && Main.zenithWorld) { Projectile.velocity.X = Main.rand.NextBool(2) ? -tornadoSpeed : tornadoSpeed; diff --git a/Projectiles/Boss/Infernado2.cs b/Projectiles/Boss/Infernado2.cs index 82440ee42e..c86660916e 100644 --- a/Projectiles/Boss/Infernado2.cs +++ b/Projectiles/Boss/Infernado2.cs @@ -112,7 +112,7 @@ namespace CalamityMod.Projectiles.Boss } int tornadoSpeed = 10; int breakThreshold = -300; - bool breakapart = CalamityWorld.getFixedBoi && Projectile.ai[0] <= breakThreshold; + bool breakapart = Main.zenithWorld && Projectile.ai[0] <= breakThreshold; if (Projectile.ai[0] <= 0f && !breakapart) { float num622 = 0.104719758f; @@ -124,7 +124,7 @@ namespace CalamityMod.Projectiles.Boss num624 = (float)(Math.Cos((double)(num622 * -(double)Projectile.ai[0])) - 0.5) * num623; Projectile.position.X += num624 * -Projectile.direction; } - if (Projectile.ai[0] == breakThreshold && CalamityWorld.getFixedBoi) + if (Projectile.ai[0] == breakThreshold && Main.zenithWorld) { Projectile.velocity.X = Main.rand.NextBool(2) ? -tornadoSpeed : tornadoSpeed; } diff --git a/Projectiles/Boss/MushBomb.cs b/Projectiles/Boss/MushBomb.cs index 0ccff41f32..122910d135 100644 --- a/Projectiles/Boss/MushBomb.cs +++ b/Projectiles/Boss/MushBomb.cs @@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Boss Projectile.velocity.X *= 0.995f; } - public override Color? GetAlpha(Color drawColor) => CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, Projectile.alpha) : new Color(255, 255, 255, Projectile.alpha); + public override Color? GetAlpha(Color drawColor) => Main.zenithWorld ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, Projectile.alpha) : new Color(255, 255, 255, Projectile.alpha); public override bool PreDraw(ref Color lightColor) { diff --git a/Projectiles/Boss/MushBombFall.cs b/Projectiles/Boss/MushBombFall.cs index 501f367b3a..727ced2331 100644 --- a/Projectiles/Boss/MushBombFall.cs +++ b/Projectiles/Boss/MushBombFall.cs @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Boss public override bool CanHitPlayer(Player target) => Projectile.velocity.Y >= 0f; - public override Color? GetAlpha(Color drawColor) => CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, Projectile.alpha) : new Color(255, 255, 255, Projectile.alpha); + public override Color? GetAlpha(Color drawColor) => Main.zenithWorld ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, Projectile.alpha) : new Color(255, 255, 255, Projectile.alpha); public override bool PreDraw(ref Color lightColor) { @@ -109,7 +109,7 @@ namespace CalamityMod.Projectiles.Boss Dust.NewDust(new Vector2(Projectile.position.X, Projectile.position.Y), Projectile.width, Projectile.height, 56, 0f, 0f, 100, default, 2f); } - if (CalamityWorld.getFixedBoi && NPC.CountNPCS(NPCID.Crab) < 20 && Main.netMode != NetmodeID.MultiplayerClient) + if (Main.zenithWorld && NPC.CountNPCS(NPCID.Crab) < 20 && Main.netMode != NetmodeID.MultiplayerClient) { int crab = NPC.NewNPC(Projectile.GetSource_FromAI(), (int)Projectile.Center.X, (int)Projectile.Center.Y, NPCID.Crab); if (crab.WithinBounds(Main.maxNPCs)) diff --git a/Projectiles/Boss/OldDukeVortex.cs b/Projectiles/Boss/OldDukeVortex.cs index e923560aa4..4aafd1b355 100644 --- a/Projectiles/Boss/OldDukeVortex.cs +++ b/Projectiles/Boss/OldDukeVortex.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Boss public override void AI() { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { if (Projectile.scale < 2f) { @@ -123,7 +123,7 @@ namespace CalamityMod.Projectiles.Boss } float distanceRequired = 800f * Projectile.scale; - float succPower = CalamityWorld.getFixedBoi ? 1f : 0.5f; + float succPower = Main.zenithWorld ? 1f : 0.5f; for (int i = 0; i < Main.maxPlayers; i++) { Player player = Main.player[i]; diff --git a/Projectiles/Boss/SwirlingFire.cs b/Projectiles/Boss/SwirlingFire.cs index f3c68bfc24..1272700ac8 100644 --- a/Projectiles/Boss/SwirlingFire.cs +++ b/Projectiles/Boss/SwirlingFire.cs @@ -27,11 +27,11 @@ namespace CalamityMod.Projectiles.Boss public override void AI() { Vector2 fireVelocity = (Time / 6f).ToRotationVector2() * Main.rand.NextFloat(1.7f, 2.2f); - Dust fire = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(3f, 3f), CalamityWorld.getFixedBoi || !Main.dayTime ? 267 : 6); + Dust fire = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(3f, 3f), Main.zenithWorld || !Main.dayTime ? 267 : 6); fire.velocity = fireVelocity.RotatedBy(MathHelper.PiOver2); fire.scale = Main.rand.NextFloat(1.3f, 1.45f); fire.noGravity = true; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) fire.color = new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB); else if (!Main.dayTime) fire.color = Color.Lerp(Color.Cyan, Color.BlueViolet, Main.rand.NextFloat()); diff --git a/Projectiles/Boss/YharonBulletHellVortex.cs b/Projectiles/Boss/YharonBulletHellVortex.cs index 17518a2894..f9ef9fa121 100644 --- a/Projectiles/Boss/YharonBulletHellVortex.cs +++ b/Projectiles/Boss/YharonBulletHellVortex.cs @@ -44,7 +44,7 @@ namespace CalamityMod.Projectiles.Boss public override void AI() { - if ((Main.npc[(int)Projectile.ai[1]].active && Main.npc[(int)Projectile.ai[1]].type == ModContent.NPCType()) || CalamityWorld.getFixedBoi) + if ((Main.npc[(int)Projectile.ai[1]].active && Main.npc[(int)Projectile.ai[1]].type == ModContent.NPCType()) || Main.zenithWorld) { if (TimeCountdown > 0f) { @@ -56,7 +56,7 @@ namespace CalamityMod.Projectiles.Boss TimeCountdown--; // chase players in the zenith seed - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { Projectile.hostile = true; Projectile.width = Projectile.height = (int)(408f * Projectile.scale); diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index b122e7d8e4..9a072191b3 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -2139,7 +2139,7 @@ namespace CalamityMod.Projectiles case ProjectileID.BouncyBoulder: case ProjectileID.LifeCrystalBoulder: case ProjectileID.MoonBoulder: - projectile.extraUpdates = CalamityWorld.getFixedBoi ? 1 : 0; + projectile.extraUpdates = Main.zenithWorld ? 1 : 0; break; case ProjectileID.RockGolemRock: @@ -2158,7 +2158,7 @@ namespace CalamityMod.Projectiles } // Random velocities for Bouncy Boulders in GFB - if (projectile.type == ProjectileID.BouncyBoulder && CalamityWorld.getFixedBoi) + if (projectile.type == ProjectileID.BouncyBoulder && Main.zenithWorld) { // 5% chance every frame to get a random velocity multiplier (this is actually rolled twice per frame, due to the extra update in GFB) if (Main.rand.Next(100) >= 95) @@ -2736,7 +2736,7 @@ namespace CalamityMod.Projectiles } } - if (CalamityWorld.getFixedBoi && NPC.AnyNPCs(NPCType())) + if (Main.zenithWorld && NPC.AnyNPCs(NPCType())) { Main.spriteBatch.End(); Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.Default, RasterizerState.CullNone, null, Main.GameViewMatrix.ZoomMatrix); diff --git a/Projectiles/CalamityGlobalProjectileTweaks.cs b/Projectiles/CalamityGlobalProjectileTweaks.cs index 81685e2d3a..50938ebc53 100644 --- a/Projectiles/CalamityGlobalProjectileTweaks.cs +++ b/Projectiles/CalamityGlobalProjectileTweaks.cs @@ -209,7 +209,7 @@ namespace CalamityMod.Projectiles { ProjectileID.TerrarianBeam, Do(LocalIFrames(-1)) }, // Terrarian yoyo orbs { ProjectileID.TheEyeOfCthulhu, Do(LocalIFrames(10)) }, // this is the yoyo { ProjectileID.TheRottedFork, trueMelee }, - { ProjectileID.ThornBall, Do(CalamityWorld.getFixedBoi ? IgnoreWater : DontIgnoreWater, DefenseDamage) }, // Plantera bouncing thorn balls + { ProjectileID.ThornBall, Do(Main.zenithWorld ? IgnoreWater : DontIgnoreWater, DefenseDamage) }, // Plantera bouncing thorn balls { ProjectileID.TinShortswordStab, trueMelee }, { ProjectileID.TitaniumChainsaw, trueMeleeNoSpeed }, { ProjectileID.TitaniumDrill, trueMeleeNoSpeed }, diff --git a/Projectiles/Enemy/CragmawVibeCheckChain.cs b/Projectiles/Enemy/CragmawVibeCheckChain.cs index 292dbafce6..dca8f89914 100644 --- a/Projectiles/Enemy/CragmawVibeCheckChain.cs +++ b/Projectiles/Enemy/CragmawVibeCheckChain.cs @@ -57,7 +57,7 @@ namespace CalamityMod.Projectiles.Enemy } if (Projectile.WithinRange(Main.player[toTarget].Center, 16f)) { - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) { CombatText.NewText(Main.player[toTarget].getRect(), Color.Red, "Vibe check.", true); } diff --git a/Projectiles/Rogue/FinalDawnFireSlash.cs b/Projectiles/Rogue/FinalDawnFireSlash.cs index 543176c63e..c676c2ad00 100644 --- a/Projectiles/Rogue/FinalDawnFireSlash.cs +++ b/Projectiles/Rogue/FinalDawnFireSlash.cs @@ -1,11 +1,12 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.CalPlayer; +using CalamityMod.Items.Weapons.Rogue; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.ID; -using Terraria.ModLoader; -using Microsoft.Xna.Framework.Graphics; -using CalamityMod.CalPlayer; -using CalamityMod.Buffs.DamageOverTime; using Terraria.Audio; +using Terraria.ModLoader; namespace CalamityMod.Projectiles.Rogue { @@ -51,7 +52,7 @@ namespace CalamityMod.Projectiles.Rogue if (Projectile.ai[1] == 5) { Projectile.friendly = true; - SoundEngine.PlaySound(SoundID.Item71, Projectile.Center); + SoundEngine.PlaySound(FinalDawn.UseSound, Projectile.Center); } } if (Projectile.ai[1] >= 11) diff --git a/Projectiles/Rogue/FinalDawnHorizontalSlash.cs b/Projectiles/Rogue/FinalDawnHorizontalSlash.cs index 1726b720a3..a435325174 100644 --- a/Projectiles/Rogue/FinalDawnHorizontalSlash.cs +++ b/Projectiles/Rogue/FinalDawnHorizontalSlash.cs @@ -1,10 +1,11 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Rogue; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.Audio; using Terraria.ID; using Terraria.ModLoader; -using Microsoft.Xna.Framework.Graphics; -using CalamityMod.Buffs.DamageOverTime; -using Terraria.Audio; namespace CalamityMod.Projectiles.Rogue { @@ -47,7 +48,7 @@ namespace CalamityMod.Projectiles.Rogue if (Projectile.ai[1] == 3) { Projectile.friendly = true; - SoundEngine.PlaySound(SoundID.Item71, Projectile.position); + SoundEngine.PlaySound(FinalDawn.UseSound, Projectile.position); if (Projectile.owner == Main.myPlayer) { diff --git a/Projectiles/Rogue/FinalDawnThrow.cs b/Projectiles/Rogue/FinalDawnThrow.cs index 4cc6e038d4..6337ef2894 100644 --- a/Projectiles/Rogue/FinalDawnThrow.cs +++ b/Projectiles/Rogue/FinalDawnThrow.cs @@ -1,5 +1,6 @@ using CalamityMod.Buffs.DamageOverTime; using CalamityMod.Dusts; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -42,7 +43,7 @@ namespace CalamityMod.Projectiles.Rogue if (Projectile.localAI[0] == 0) { - SoundEngine.PlaySound(SoundID.Item71, Projectile.Center); + SoundEngine.PlaySound(FinalDawn.UseSound, Projectile.Center); Projectile.localAI[0] = 1; } diff --git a/Projectiles/Rogue/FinalDawnThrow2.cs b/Projectiles/Rogue/FinalDawnThrow2.cs index b9ba1a492a..70d3c74b68 100644 --- a/Projectiles/Rogue/FinalDawnThrow2.cs +++ b/Projectiles/Rogue/FinalDawnThrow2.cs @@ -1,4 +1,5 @@ using CalamityMod.Dusts; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; @@ -63,7 +64,7 @@ namespace CalamityMod.Projectiles.Rogue if (Projectile.localAI[0] == 0) { - SoundEngine.PlaySound(SoundID.Item71, Projectile.position); + SoundEngine.PlaySound(FinalDawn.UseSound, Projectile.position); Projectile.localAI[0] = 1; } diff --git a/Projectiles/Rogue/SupernovaBomb.cs b/Projectiles/Rogue/SupernovaBomb.cs index 16e6f8ef8b..98779f7d7b 100644 --- a/Projectiles/Rogue/SupernovaBomb.cs +++ b/Projectiles/Rogue/SupernovaBomb.cs @@ -1,4 +1,5 @@ using CalamityMod.Buffs.DamageOverTime; +using CalamityMod.Items.Weapons.Rogue; using Microsoft.Xna.Framework; using System; using Terraria; @@ -75,7 +76,7 @@ namespace CalamityMod.Projectiles.Rogue Projectile.width = Projectile.height = 128; Projectile.position.X = Projectile.position.X - (float)(Projectile.width / 2); Projectile.position.Y = Projectile.position.Y - (float)(Projectile.height / 2); - SoundEngine.PlaySound(SoundID.Item14, Projectile.position); + SoundEngine.PlaySound(Supernova.ExplosionSound, Projectile.Center); //spawn projectiles int projAmt = Main.rand.Next(3, 5); diff --git a/Projectiles/Typeless/TerminusHoldout.cs b/Projectiles/Typeless/TerminusHoldout.cs index 86761f929c..0bd033e581 100644 --- a/Projectiles/Typeless/TerminusHoldout.cs +++ b/Projectiles/Typeless/TerminusHoldout.cs @@ -160,7 +160,7 @@ namespace CalamityMod.Projectiles.Typeless public override bool PreDraw(ref Color lightColor) { - Texture2D texture = CalamityWorld.getFixedBoi ? ModContent.Request("CalamityMod/Items/SummonItems/Terminus_GFB").Value : ModContent.Request(Texture).Value; + Texture2D texture = Main.zenithWorld ? ModContent.Request("CalamityMod/Items/SummonItems/Terminus_GFB").Value : ModContent.Request(Texture).Value; Vector2 baseDrawPosition = Projectile.Center - Main.screenPosition; Vector2 origin = texture.Size() * 0.5f; Color baseColor = Color.Lerp(Projectile.GetAlpha(lightColor), Color.White, Utils.GetLerpValue(40f, 120f, Time, true)); diff --git a/Scenes/BossBackgroundScenes/DrunkCrabBackgroundScene.cs b/Scenes/BossBackgroundScenes/DrunkCrabBackgroundScene.cs index 5c7f048f6b..df7dc14150 100644 --- a/Scenes/BossBackgroundScenes/DrunkCrabBackgroundScene.cs +++ b/Scenes/BossBackgroundScenes/DrunkCrabBackgroundScene.cs @@ -9,7 +9,7 @@ namespace CalamityMod.Systems { public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh; - public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType()) && CalamityWorld.getFixedBoi; + public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType()) && Main.zenithWorld; public override void SpecialVisuals(Player player, bool isActive) { diff --git a/Scenes/MusicScenes/PolterghastMusicScene.cs b/Scenes/MusicScenes/PolterghastMusicScene.cs index 6c2ff15eba..db656983a9 100644 --- a/Scenes/MusicScenes/PolterghastMusicScene.cs +++ b/Scenes/MusicScenes/PolterghastMusicScene.cs @@ -13,5 +13,7 @@ namespace CalamityMod.Systems public override int? MusicModMusic => CalamityMod.Instance.GetMusicFromMusicMod("Polterghast"); public override int VanillaMusic => MusicID.Plantera; public override int OtherworldMusic => MusicID.OtherworldlyPlantera; + + public override bool AdditionalCheck() => !Main.zenithWorld; } } diff --git a/Scenes/MusicScenes/PolterghastSilentMusicScene.cs b/Scenes/MusicScenes/PolterghastSilentMusicScene.cs new file mode 100644 index 0000000000..239301f862 --- /dev/null +++ b/Scenes/MusicScenes/PolterghastSilentMusicScene.cs @@ -0,0 +1,21 @@ +using CalamityMod.NPCs.Polterghast; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Systems +{ + public class PolterghastSilentMusicScene : BaseMusicSceneEffect + { + public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh; + + public int SilentMusicSlot => MusicLoader.GetMusicSlot(Mod, "Sounds/Music/Silence"); + + public override int NPCType => ModContent.NPCType(); + public override int? MusicModMusic => SilentMusicSlot; + public override int VanillaMusic => SilentMusicSlot; + public override int OtherworldMusic => SilentMusicSlot; + + public override bool AdditionalCheck() => Main.zenithWorld; + } +} diff --git a/Skies/DrunkCrabScreenShaderData.cs b/Skies/DrunkCrabScreenShaderData.cs index 4a504379e0..bb3ffd12cd 100644 --- a/Skies/DrunkCrabScreenShaderData.cs +++ b/Skies/DrunkCrabScreenShaderData.cs @@ -37,10 +37,10 @@ namespace CalamityMod.Skies public override void Update(GameTime gameTime) { - if (CrabIndex == -1 || !CalamityWorld.getFixedBoi) + if (CrabIndex == -1 || !Main.zenithWorld) { UpdateBossIndex(); - if (CrabIndex == -1 || !CalamityWorld.getFixedBoi) + if (CrabIndex == -1 || !Main.zenithWorld) Filters.Scene["CalamityMod:DrunkCrabulon"].Deactivate(); } } diff --git a/Sounds/Custom/AdultEidolonCharge.ogg b/Sounds/Custom/AdultEidolonCharge.ogg new file mode 100644 index 0000000000..cf11382919 Binary files /dev/null and b/Sounds/Custom/AdultEidolonCharge.ogg differ diff --git a/Sounds/Custom/AstrumDeusLaser.ogg b/Sounds/Custom/AstrumDeusLaser.ogg new file mode 100644 index 0000000000..63fa38963e Binary files /dev/null and b/Sounds/Custom/AstrumDeusLaser.ogg differ diff --git a/Sounds/Custom/AstrumDeusMine.ogg b/Sounds/Custom/AstrumDeusMine.ogg new file mode 100644 index 0000000000..186b5b3192 Binary files /dev/null and b/Sounds/Custom/AstrumDeusMine.ogg differ diff --git a/Sounds/Custom/Polterghast/PolterSpook1.ogg b/Sounds/Custom/Polterghast/PolterSpook1.ogg new file mode 100644 index 0000000000..55faa22baa Binary files /dev/null and b/Sounds/Custom/Polterghast/PolterSpook1.ogg differ diff --git a/Sounds/Custom/Polterghast/PolterSpook2.ogg b/Sounds/Custom/Polterghast/PolterSpook2.ogg new file mode 100644 index 0000000000..698533a8bd Binary files /dev/null and b/Sounds/Custom/Polterghast/PolterSpook2.ogg differ diff --git a/Sounds/Custom/Polterghast/PolterSpook3.ogg b/Sounds/Custom/Polterghast/PolterSpook3.ogg new file mode 100644 index 0000000000..b45fca9b99 Binary files /dev/null and b/Sounds/Custom/Polterghast/PolterSpook3.ogg differ diff --git a/Sounds/Custom/Polterghast/PolterSpook4.ogg b/Sounds/Custom/Polterghast/PolterSpook4.ogg new file mode 100644 index 0000000000..8f7ebdb17b Binary files /dev/null and b/Sounds/Custom/Polterghast/PolterSpook4.ogg differ diff --git a/Sounds/Custom/PolterghastP2Transition.ogg b/Sounds/Custom/Polterghast/PolterghastP2Transition.ogg similarity index 100% rename from Sounds/Custom/PolterghastP2Transition.ogg rename to Sounds/Custom/Polterghast/PolterghastP2Transition.ogg diff --git a/Sounds/Custom/PolterghastP3Transition.ogg b/Sounds/Custom/Polterghast/PolterghastP3Transition.ogg similarity index 100% rename from Sounds/Custom/PolterghastP3Transition.ogg rename to Sounds/Custom/Polterghast/PolterghastP3Transition.ogg diff --git a/Sounds/Custom/PolterghastPhantomSpawn.ogg b/Sounds/Custom/Polterghast/PolterghastPhantomSpawn.ogg similarity index 100% rename from Sounds/Custom/PolterghastPhantomSpawn.ogg rename to Sounds/Custom/Polterghast/PolterghastPhantomSpawn.ogg diff --git a/Sounds/Custom/PolterghastSpawn.ogg b/Sounds/Custom/Polterghast/PolterghastSpawn.ogg similarity index 100% rename from Sounds/Custom/PolterghastSpawn.ogg rename to Sounds/Custom/Polterghast/PolterghastSpawn.ogg diff --git a/Sounds/Custom/TickingTimer.ogg b/Sounds/Custom/TickingTimer.ogg new file mode 100644 index 0000000000..71ef2255ca Binary files /dev/null and b/Sounds/Custom/TickingTimer.ogg differ diff --git a/Sounds/Item/FinalDawnSlash.ogg b/Sounds/Item/FinalDawnSlash.ogg new file mode 100644 index 0000000000..ee5c548f87 Binary files /dev/null and b/Sounds/Item/FinalDawnSlash.ogg differ diff --git a/Sounds/Item/PlasmaRifleAlt.ogg b/Sounds/Item/PlasmaRifleAlt.ogg new file mode 100644 index 0000000000..1376de23d8 Binary files /dev/null and b/Sounds/Item/PlasmaRifleAlt.ogg differ diff --git a/Sounds/Item/PlasmaRifleMain.ogg b/Sounds/Item/PlasmaRifleMain.ogg new file mode 100644 index 0000000000..421559989f Binary files /dev/null and b/Sounds/Item/PlasmaRifleMain.ogg differ diff --git a/Sounds/Item/SupernovaBoom.ogg b/Sounds/Item/SupernovaBoom.ogg new file mode 100644 index 0000000000..61bff4ea3c Binary files /dev/null and b/Sounds/Item/SupernovaBoom.ogg differ diff --git a/Sounds/Music/Silence.ogg b/Sounds/Music/Silence.ogg new file mode 100644 index 0000000000..1fc2e1e32a Binary files /dev/null and b/Sounds/Music/Silence.ogg differ diff --git a/Sounds/NPCKilled/AdultEidolonDeath.ogg b/Sounds/NPCKilled/AdultEidolonDeath.ogg new file mode 100644 index 0000000000..e703fb6dbb Binary files /dev/null and b/Sounds/NPCKilled/AdultEidolonDeath.ogg differ diff --git a/Systems/WorldMiscUpdateSystem.cs b/Systems/WorldMiscUpdateSystem.cs index 8dad686ae9..29ee6730bc 100644 --- a/Systems/WorldMiscUpdateSystem.cs +++ b/Systems/WorldMiscUpdateSystem.cs @@ -87,7 +87,7 @@ namespace CalamityMod.Systems // Very, very, very rarely display a Lorde joke text if the system clock is set to April Fools Day. if (Main.rand.NextBool(100000000) && DateTime.Now.Month == 4 && DateTime.Now.Day == 1) { - string key = CalamityWorld.getFixedBoi ? "Mods.CalamityMod.Status.Boss.AprilFoolsGFB" : "Mods.CalamityMod.Status.Boss.AprilFools"; + string key = Main.zenithWorld ? "Mods.CalamityMod.Status.Boss.AprilFoolsGFB" : "Mods.CalamityMod.Status.Boss.AprilFools"; Color messageColor = Color.Crimson; CalamityUtils.DisplayLocalizedText(key, messageColor); } @@ -342,7 +342,7 @@ namespace CalamityMod.Systems #region Handle Armored Digger Random Spawns public static void TrySpawnArmoredDigger(Player player, CalamityPlayer modPlayer) { - bool gfbCondition = CalamityWorld.getFixedBoi && (player.ZoneHallow || player.ZoneUnderworldHeight) && NPC.downedMoonlord; + bool gfbCondition = Main.zenithWorld && (player.ZoneHallow || player.ZoneUnderworldHeight) && NPC.downedMoonlord; if ((gfbCondition || (player.ZoneRockLayerHeight && !player.ZoneUnderworldHeight && !player.ZoneJungle)) && !player.ZoneDungeon && !modPlayer.ZoneSunkenSea && !modPlayer.ZoneAbyss && !CalamityPlayer.areThereAnyDamnBosses) { if (NPC.downedPlantBoss && player.townNPCs < 3f) @@ -421,7 +421,7 @@ namespace CalamityMod.Systems #region Handle Adult Eidolon Wyrm Spawns public static void TrySpawnAEoW(Player player, CalamityPlayer modPlayer) { - if (Main.netMode == NetmodeID.MultiplayerClient || !(modPlayer.ZoneAbyss || CalamityWorld.getFixedBoi) || !player.chaosState || player.dead) + if (Main.netMode == NetmodeID.MultiplayerClient || !(modPlayer.ZoneAbyss || Main.zenithWorld) || !player.chaosState || player.dead) return; bool adultWyrmAlive = CalamityGlobalNPC.adultEidolonWyrmHead != -1 && Main.npc[CalamityGlobalNPC.adultEidolonWyrmHead].active; diff --git a/Tiles/ArenaTile.cs b/Tiles/ArenaTile.cs index 1c00c94a91..c9de1f1d32 100644 --- a/Tiles/ArenaTile.cs +++ b/Tiles/ArenaTile.cs @@ -35,7 +35,7 @@ namespace CalamityMod.Tiles { if (closer) { - if (!NPC.AnyNPCs(ModContent.NPCType()) && !SCalSky.RitualDramaProjectileIsPresent && !(NPC.AnyNPCs(ModContent.NPCType()) && CalamityWorld.getFixedBoi)) + if (!NPC.AnyNPCs(ModContent.NPCType()) && !SCalSky.RitualDramaProjectileIsPresent && !(NPC.AnyNPCs(ModContent.NPCType()) && Main.zenithWorld)) { WorldGen.KillTile(i, j, false, false, false); if (!Main.tile[i, j].HasTile && Main.netMode != NetmodeID.SinglePlayer) diff --git a/Tiles/Furniture/Fountains/SulphurousFountainTile.cs b/Tiles/Furniture/Fountains/SulphurousFountainTile.cs index 19c2f3e7f5..19fe4182c1 100644 --- a/Tiles/Furniture/Fountains/SulphurousFountainTile.cs +++ b/Tiles/Furniture/Fountains/SulphurousFountainTile.cs @@ -17,7 +17,7 @@ namespace CalamityMod.Tiles.Furniture.Fountains public override void NearbyEffects(int i, int j, bool closer) { - string waterColor = CalamityWorld.getFixedBoi ? "CalamityMod/PissWater" : "CalamityMod/SulphuricWater"; + string waterColor = Main.zenithWorld ? "CalamityMod/PissWater" : "CalamityMod/SulphuricWater"; if (Main.tile[i, j].TileFrameX >= 36) Main.SceneMetrics.ActiveFountainColor = ModContent.Find(waterColor).Slot; } diff --git a/Tiles/MonsterBanner.png b/Tiles/MonsterBanner.png index b245fae837..12ef143dbd 100644 Binary files a/Tiles/MonsterBanner.png and b/Tiles/MonsterBanner.png differ diff --git a/UI/DraedonSummoning/CodebreakerUI.cs b/UI/DraedonSummoning/CodebreakerUI.cs index f4bba42ff5..f308e072b7 100644 --- a/UI/DraedonSummoning/CodebreakerUI.cs +++ b/UI/DraedonSummoning/CodebreakerUI.cs @@ -276,7 +276,7 @@ namespace CalamityMod.UI.DraedonSummoning // If the slot is normally clicked, behavior depends on whether the player is holding power cells. else { - bool holdingPowercell = playerHandItem.type == powercellID || (playerHandItem.type == sampleID && CalamityWorld.getFixedBoi); + bool holdingPowercell = playerHandItem.type == powercellID || (playerHandItem.type == sampleID && Main.zenithWorld); bool powercellsinserted = !codebreakerTileEntity.ContainsBloodSample && temporaryItem.stack > 0; bool cansummon = codebreakerTileEntity.ReadyToSummonDraedon && CalamityWorld.AbleToSummonDraedon; @@ -284,7 +284,7 @@ namespace CalamityMod.UI.DraedonSummoning if (holdingPowercell && temporaryItem.stack < TECodebreaker.MaxCellCapacity) { // If theres no power cells inside, it's GFB, and the player has a blood sample, it can be inserted - if (playerHandItem.type == sampleID && CalamityWorld.getFixedBoi && !powercellsinserted && cansummon) + if (playerHandItem.type == sampleID && Main.zenithWorld && !powercellsinserted && cansummon) { // Play a gross sound if no samples are in yet if (temporaryItem.stack == 0) @@ -589,7 +589,7 @@ namespace CalamityMod.UI.DraedonSummoning { CalamityWorld.DraedonSummonCountdown = CalamityWorld.DraedonSummonCountdownMax; CalamityWorld.DraedonSummonPosition = codebreakerTileEntity.Center + new Vector2(-8f, -100f); - if (CalamityWorld.getFixedBoi && codebreakerTileEntity.ContainsBloodSample) + if (Main.zenithWorld && codebreakerTileEntity.ContainsBloodSample) { CalamityWorld.DraedonMechdusa = true; } diff --git a/UI/VanillaBossBars/CryogenBossBar.cs b/UI/VanillaBossBars/CryogenBossBar.cs index c74136770b..e6d5fdda42 100644 --- a/UI/VanillaBossBars/CryogenBossBar.cs +++ b/UI/VanillaBossBars/CryogenBossBar.cs @@ -19,7 +19,7 @@ namespace CalamityMod.UI.VanillaBossBars public override Asset GetIconTexture(ref Rectangle? iconFrame) { // Pyrogen moment - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) return ModContent.Request("CalamityMod/NPCs/Cryogen/Pyrogen_Head_Boss"); return ModContent.Request("CalamityMod/NPCs/Cryogen/Cryogen_Phase1_Head_Boss"); } diff --git a/Utilities/DropHelper.cs b/Utilities/DropHelper.cs index 487314a5b6..02f98189ff 100644 --- a/Utilities/DropHelper.cs +++ b/Utilities/DropHelper.cs @@ -560,7 +560,7 @@ namespace CalamityMod public static IItemDropRuleCondition TrasherText = If((info) => true, true, "Drops if fed to a Trasher"); // Get Fixed Boi seed drop rule - public static IItemDropRuleCondition GFB = If((info) => CalamityWorld.getFixedBoi, () => CalamityWorld.getFixedBoi, "This is a Get Fixed Boi seed drop rate"); + public static IItemDropRuleCondition GFB = If((info) => Main.zenithWorld, () => Main.zenithWorld, "This is a Get Fixed Boi seed drop rate"); public static IItemDropRuleCondition RevNoMaster = If((info) => !Main.masterMode && CalamityWorld.revenge, () => !Main.masterMode && CalamityWorld.revenge, "This is a Revengeance Mode drop rate"); public static IItemDropRuleCondition RevAndMaster = If((info) => Main.masterMode || CalamityWorld.revenge, () => Main.masterMode || CalamityWorld.revenge, () => diff --git a/World/CalamityWorld.cs b/World/CalamityWorld.cs index 58d40de9b0..8fafcd4428 100644 --- a/World/CalamityWorld.cs +++ b/World/CalamityWorld.cs @@ -26,7 +26,6 @@ namespace CalamityMod.World public static bool death = false; // Death Mode public static bool armageddon = false; // Armageddon Mode public static bool LegendaryMode => Main.getGoodWorld && Main.masterMode; // Evaluates to whether vanilla's "Legendary Mode" is enabled (Master Mode on For the Worthy) - public static bool getFixedBoi => Main.zenithWorld; // True when the "get fixed boi" (aka "Zenith") seed is active, which combines all other seeds. // Sunken Sea public static Rectangle SunkenSeaLocation = Rectangle.Empty; diff --git a/World/CustomDungeon.cs b/World/CustomDungeon.cs index 49708096ff..fbfc39bf4f 100644 --- a/World/CustomDungeon.cs +++ b/World/CustomDungeon.cs @@ -260,7 +260,7 @@ namespace CalamityMod.World int num16 = Main.maxTilesX / 200; if (WorldGen.getGoodWorldGen) num16 *= 6; - if (CalamityWorld.getFixedBoi) + if (Main.zenithWorld) num16 *= 4; while (num15 < num16)