From 0ed2b3836e0a9d5739a56e5cafe10fd55fa517a3 Mon Sep 17 00:00:00 2001 From: Muhammad Nauman Raza Date: Sun, 10 Nov 2024 21:44:11 +0000 Subject: [PATCH] chore: update names for utilities --- Content/PlanteraOverrides.cs | 4 +--- Utilities/{CalamDropHelper.cs => CalamityDropHelper.cs} | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) rename Utilities/{CalamDropHelper.cs => CalamityDropHelper.cs} (99%) diff --git a/Content/PlanteraOverrides.cs b/Content/PlanteraOverrides.cs index f022f7f..f67a0b2 100644 --- a/Content/PlanteraOverrides.cs +++ b/Content/PlanteraOverrides.cs @@ -48,9 +48,7 @@ namespace Continuity.Content itemLoot.RemoveWhere(rule => rule is OneFromRulesRule); if (ModLoader.HasMod("CalamityMod")) { - // NOTE(midnadimple): This line causes build issue in tModloader v2024.9.3.0, i dont think - // this is how you're meant to access other mods' drop rules. - itemLoot.RemoveWhere(rule => rule is CalamDropHelper.AllOptionsAtOnceWithPityDropRule); + itemLoot.RemoveWhere(rule => rule is CalamityDropHelper.AllOptionsAtOnceWithPityDropRule); if (ModLoader.TryGetMod("CalamityMod", out Mod calamityMod) && calamityMod.TryFind("BlossomFlux", out ModItem BlossomFlux)) { itemLoot.RemoveWhere(rule => rule is CommonDrop drop diff --git a/Utilities/CalamDropHelper.cs b/Utilities/CalamityDropHelper.cs similarity index 99% rename from Utilities/CalamDropHelper.cs rename to Utilities/CalamityDropHelper.cs index 7d88c04..f392655 100644 --- a/Utilities/CalamDropHelper.cs +++ b/Utilities/CalamityDropHelper.cs @@ -11,7 +11,7 @@ using Terraria; // Repurposed from https://github.com/CalamityTeam/CalamityModPublic/blob/1.4.4/Utilities/DropHelper.cs namespace continuity.Utilities { - internal class CalamDropHelper + internal class CalamityDropHelper { public struct Fraction {