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

Fix game updates (Dec-18 647408) compatibility issue #378

Merged
merged 1 commit into from
Dec 20, 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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using HarmonyLib;
using MultiplayerMod.ModRuntime.Context;

Expand All @@ -21,7 +21,7 @@ private static void OnHatDropEntryClick(SkillsScreen __instance, IListableOption
__instance.GetMinionIdentity(__instance.currentlySelectedMinion, out var minionIdentity, out _);
SetHat?.Invoke(
minionIdentity,
(skill as SkillListable)?.skillHat
(skill as HatListable)?.hat
);
}

Expand All @@ -35,9 +35,9 @@ private static class SkillMinionWidgetEvents {
[HarmonyPatch(nameof(SkillMinionWidget.OnHatDropEntryClick))]
[RequireExecutionLevel(ExecutionLevel.Game)]
// ReSharper disable once UnusedMember.Local
private static void OnHatDropEntryClick(SkillMinionWidget __instance, IListableOption skill) {
private static void OnHatDropEntryClick(SkillMinionWidget __instance, IListableOption hatOption) {
__instance.skillsScreen.GetMinionIdentity(__instance.assignableIdentity, out var minionIdentity, out _);
SetHat?.Invoke(minionIdentity, (skill as SkillListable)?.skillHat);
SetHat?.Invoke(minionIdentity, (hatOption as HatListable)?.hat);
}

}
Expand Down