Removed unused helper method

This commit is contained in:
Chomp
2025-08-10 12:17:05 +01:00
parent 8bc25ca4eb
commit 982878cd95
@@ -1090,43 +1090,6 @@ public class ItemHelper(
item.Upd.SpawnedInSession = true;
}
/// <summary>
/// WARNING, SLOW. Recursively loop down through an items hierarchy to see if any of the ids match the supplied list, return true if any do
/// </summary>
/// <param name="tpl">Items tpl to check parents of</param>
/// <param name="tplsToCheck">Tpl values to check if parents of item match</param>
/// <returns>bool Match found</returns>
public bool DoesItemOrParentsIdMatch(MongoId tpl, HashSet<MongoId> tplsToCheck)
{
var (itemExists, item) = GetItem(tpl);
// not an item, drop out
if (!itemExists || item == null)
{
return false;
}
// no parent to check
if (item.Parent == null)
{
return false;
}
// Does templateId match any values in tplsToCheck array
if (tplsToCheck.Contains(item.Id))
{
return true;
}
// check items parent with same method
if (tplsToCheck.Contains(item.Parent))
{
return true;
}
return DoesItemOrParentsIdMatch(item.Parent, tplsToCheck);
}
/// <summary>
/// Checks to see if the item is *actually* moddable in-raid. Checks include the items existence in the database, the
/// parent items existence in the database, the existence (and value) of the items `RaidModdable` property, and that