Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upgrading legacy fix commands to latest ef #4119

Merged
merged 1 commit into from
Mar 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions Source/ACE.Server/Command/Handlers/DeveloperFixCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1048,7 +1048,7 @@ public static void HandleFixBiotaEmoteDelay(Session session, params string[] par
{
CommandHandlerHelper.WriteOutputInfo(session, $"Finding biotas for these wcids");

var biotas = ctx.Biota.Where(i => weenieEmoteCache.ContainsKey(i.WeenieClassId)).ToList();
var biotas = ctx.Biota.AsEnumerable().Where(i => weenieEmoteCache.ContainsKey(i.WeenieClassId)).ToList();

var distinct = biotas.Select(i => i.WeenieClassId).Distinct();
var counts = new Dictionary<uint, uint>();
Expand Down Expand Up @@ -1396,7 +1396,7 @@ public static void HandleVerifyClothingWieldLevel(Session session, params string
}

// get shard spells
var _spells = ctx.BiotaPropertiesSpellBook.Where(i => clothing.ContainsKey(i.ObjectId)).ToList();
var _spells = ctx.BiotaPropertiesSpellBook.AsEnumerable().Where(i => clothing.ContainsKey(i.ObjectId)).ToList();

// filter clothing to those with epics/legendaries
var highTierClothing = new Dictionary<uint, int>();
Expand All @@ -1420,7 +1420,7 @@ public static void HandleVerifyClothingWieldLevel(Session session, params string
}

// get wield level for these items
var wieldLevels = ctx.BiotaPropertiesInt.Where(i => i.Type == (ushort)PropertyInt.WieldDifficulty && highTierClothing.ContainsKey(i.ObjectId)).Select(i => i.ObjectId).ToHashSet();
var wieldLevels = ctx.BiotaPropertiesInt.AsEnumerable().Where(i => i.Type == (ushort)PropertyInt.WieldDifficulty && highTierClothing.ContainsKey(i.ObjectId)).Select(i => i.ObjectId).ToHashSet();

foreach (var kvp in highTierClothing)
{
Expand Down