From 77b09f8229ab643ba1d60ea10a7dddc817842f81 Mon Sep 17 00:00:00 2001 From: Dominic Date: Fri, 13 May 2022 16:47:18 -0500 Subject: [PATCH] Exposed internal members to CalTestHelpers --- CalamityMod.cs | 10 +---- Systems/DownedBossSystem.cs | 74 ++++++++++++++++++------------------- 2 files changed, 39 insertions(+), 45 deletions(-) diff --git a/CalamityMod.cs b/CalamityMod.cs index 4559fcf0fc..a2ae4b7b85 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -8,13 +8,9 @@ using CalamityMod.Effects; using CalamityMod.Events; using CalamityMod.ILEditing; using CalamityMod.Items; -using CalamityMod.Items.Accessories; -using CalamityMod.Items.Accessories.Vanity; -using CalamityMod.Items.Armor; using CalamityMod.Items.Dyes.HairDye; using CalamityMod.Items.VanillaArmorChanges; using CalamityMod.Localization; -using CalamityMod.NPCs; using CalamityMod.NPCs.AdultEidolonWyrm; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.AstrumAureus; @@ -47,10 +43,8 @@ using CalamityMod.NPCs.SupremeCalamitas; using CalamityMod.NPCs.Yharon; using CalamityMod.Particles; using CalamityMod.Projectiles.BaseProjectiles; -using CalamityMod.Projectiles.Summon; using CalamityMod.Schematics; using CalamityMod.Skies; -using CalamityMod.TileEntities; using CalamityMod.UI; using CalamityMod.UI.CalamitasEnchants; using CalamityMod.Waters; @@ -63,8 +57,8 @@ using System.Collections.Generic; using System.Diagnostics; using System.IO; using System.Reflection; +using System.Runtime.CompilerServices; using Terraria; -using Terraria.DataStructures; using Terraria.GameContent; using Terraria.GameContent.Dyes; using Terraria.Graphics.Effects; @@ -72,8 +66,8 @@ using Terraria.Graphics.Shaders; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Config; -using Terraria.UI; +[assembly: InternalsVisibleTo("CalTestHelpers")] namespace CalamityMod { public class CalamityMod : Mod diff --git a/Systems/DownedBossSystem.cs b/Systems/DownedBossSystem.cs index 7384a01db4..1cd39cb6cb 100644 --- a/Systems/DownedBossSystem.cs +++ b/Systems/DownedBossSystem.cs @@ -11,49 +11,49 @@ namespace CalamityMod public class DownedBossSystem : ModSystem { // Bosses - private static bool _downedDesertScourge = false; - private static bool _downedCrabulon = false; - private static bool _downedHiveMind = false; - private static bool _downedPerforator = false; - private static bool _downedSlimeGod = false; - private static bool _downedCryogen = false; - private static bool _downedAquaticScourge = false; - private static bool _downedBrimstoneElemental = false; - private static bool _downedCalamitas = false; - private static bool _downedLeviathan = false; - private static bool _downedAstrumAureus = false; - private static bool _downedPlaguebringer = false; - private static bool _downedRavager = false; - private static bool _downedAstrumDeus = false; - private static bool _downedGuardians = false; - private static bool _downedDragonfolly = false; - private static bool _downedProvidence = false; - private static bool _downedCeaselessVoid = false; - private static bool _downedStormWeaver = false; - private static bool _downedSignus = false; - private static bool _downedSecondSentinels = false; - private static bool _downedPolterghast = false; - private static bool _downedBoomerDuke = false; - private static bool _downedDoG = false; - private static bool _downedYharon = false; - private static bool _downedAres = false; // only used for loot drops - private static bool _downedThanatos = false; // only used for loot drops - private static bool _downedArtemisAndApollo = false; // only used for loot drops - private static bool _downedExoMechs = false; - private static bool _downedSCal = false; - private static bool _downedAdultEidolonWyrm = false; + internal static bool _downedDesertScourge = false; + internal static bool _downedCrabulon = false; + internal static bool _downedHiveMind = false; + internal static bool _downedPerforator = false; + internal static bool _downedSlimeGod = false; + internal static bool _downedCryogen = false; + internal static bool _downedAquaticScourge = false; + internal static bool _downedBrimstoneElemental = false; + internal static bool _downedCalamitas = false; + internal static bool _downedLeviathan = false; + internal static bool _downedAstrumAureus = false; + internal static bool _downedPlaguebringer = false; + internal static bool _downedRavager = false; + internal static bool _downedAstrumDeus = false; + internal static bool _downedGuardians = false; + internal static bool _downedDragonfolly = false; + internal static bool _downedProvidence = false; + internal static bool _downedCeaselessVoid = false; + internal static bool _downedStormWeaver = false; + internal static bool _downedSignus = false; + internal static bool _downedSecondSentinels = false; + internal static bool _downedPolterghast = false; + internal static bool _downedBoomerDuke = false; + internal static bool _downedDoG = false; + internal static bool _downedYharon = false; + internal static bool _downedAres = false; // only used for loot drops + internal static bool _downedThanatos = false; // only used for loot drops + internal static bool _downedArtemisAndApollo = false; // only used for loot drops + internal static bool _downedExoMechs = false; + internal static bool _downedSCal = false; + internal static bool _downedAdultEidolonWyrm = false; // Minibosses - private static bool _downedGSS = false; - private static bool _downedCLAM = false; - private static bool _downedCLAMHardMode = false; + internal static bool _downedGSS = false; + internal static bool _downedCLAM = false; + internal static bool _downedCLAMHardMode = false; // Events - private static bool _downedEoCAcidRain = false; - private static bool _downedAquaticScourgeAcidRain = false; + internal static bool _downedEoCAcidRain = false; + internal static bool _downedAquaticScourgeAcidRain = false; // Betsy, because vanilla doesn't track her - private static bool _downedBetsy = false; + internal static bool _downedBetsy = false; #region Wrapper Properties for Lantern Nights public static bool downedDesertScourge