Skip to content

Commit 84b9b8e

Browse files
committed
EHG fixed requestPickup() on serverside so now it doesn't work on any distance anymore. Either they read my repo or its some kind of coincidence :D
1 parent f42c5a5 commit 84b9b8e

File tree

1 file changed

+5
-13
lines changed

1 file changed

+5
-13
lines changed

Diff for: kg_LastEpoch_Improvements/kg_LastEpoch_Improvements.cs

+5-13
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ private static void Postfix(ItemDataUnpacked item, ItemAffix affix, ref string _
9494
__result = AffixShowRoll.Value switch
9595
{
9696
DisplayAffixType.Old_Style => __result.Style1_AffixRoll(affix),
97-
DisplayAffixType.New_Style => __result.Style2_AffixRoll(affix),
98-
DisplayAffixType.Letter_Style => __result.Letter_Style_AffixRoll(affix),
97+
DisplayAffixType.New_Style => __result.Style2_AffixRoll(affix),
98+
DisplayAffixType.Letter_Style => __result.Letter_Style_AffixRoll(affix),
9999
_ => __result
100100
};
101101
}
102-
}
103-
102+
}
103+
104104
[HarmonyPatch(typeof(TooltipItemManager), nameof(TooltipItemManager.UniqueBasicModFormatter))]
105105
private static class TooltipItemManager_FormatUniqueModAffixString_Patch
106106
{
@@ -116,7 +116,7 @@ private static void Postfix(ItemDataUnpacked item, ref string __result, int uniq
116116
};
117117
}
118118
}
119-
119+
120120
[HarmonyPatch(typeof(TooltipItemManager),nameof(TooltipItemManager.ImplicitFormatter))]
121121
private static class TooltipItemManager_FormatMod_Patch
122122
{
@@ -246,14 +246,6 @@ private void PointerExit()
246246
if (_label != null && _label && _label.tooltipItem) _label.tooltipItem.OnPointerExit(null);
247247
}
248248

249-
#if CHEATVERSION
250-
private void Update()
251-
{
252-
if (showingAffix == this && Input.GetKeyDown(KeyCode.Space))
253-
if (RectTransformUtility.RectangleContainsScreenPoint(thisTransform, Input.mousePosition)) _label?.requestPickup();
254-
}
255-
#endif
256-
257249
private void FixedUpdate()
258250
{
259251
if (!_trackable || !_trackable.activeSelf)

0 commit comments

Comments
 (0)