chore: update names for utilities

This commit is contained in:
Muhammad Nauman Raza 2024-11-10 21:44:11 +00:00
parent e20e7ddb41
commit 0ed2b3836e
Signed by: devraza
GPG key ID: 91EAD6081011574B
2 changed files with 2 additions and 4 deletions

View file

@ -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<ModItem>("BlossomFlux", out ModItem BlossomFlux)) {
itemLoot.RemoveWhere(rule => rule is CommonDrop drop

View file

@ -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
{