@@ -120,14 +120,20 @@ private static void Postfix(ItemDataUnpacked item, ref string __result, int uniq
120
120
[ HarmonyPatch ( typeof ( TooltipItemManager ) , nameof ( TooltipItemManager . ImplicitFormatter ) ) ]
121
121
private static class TooltipItemManager_FormatMod_Patch
122
122
{
123
- private static void Postfix ( ItemDataUnpacked item , int implicitNumber , ref string __result )
123
+ private static void Postfix ( ItemDataUnpacked item , int implicitNumber , ref string __result , bool isComparsionItem )
124
124
{
125
125
if ( item == null || AffixShowRoll . Value is DisplayAffixType . None || item . isSet ( ) ) return ;
126
+ ItemDataUnpacked itemToUse = item ;
127
+ if ( isComparsionItem )
128
+ {
129
+ if ( TooltipItemManager . instance . equipedItem == null ) return ;
130
+ itemToUse = TooltipItemManager . instance . equipedItem ;
131
+ }
126
132
__result = AffixShowRoll . Value switch
127
133
{
128
- DisplayAffixType . Old_Style => __result . Style1_Implicit ( item , implicitNumber ) ,
129
- DisplayAffixType . New_Style => __result . Style2_Implicit ( item , implicitNumber ) ,
130
- DisplayAffixType . Letter_Style => __result . Letter_Style_Implicit ( item , implicitNumber ) ,
134
+ DisplayAffixType . Old_Style => __result . Style1_Implicit ( itemToUse , implicitNumber ) ,
135
+ DisplayAffixType . New_Style => __result . Style2_Implicit ( itemToUse , implicitNumber ) ,
136
+ DisplayAffixType . Letter_Style => __result . Letter_Style_Implicit ( itemToUse , implicitNumber ) ,
131
137
_ => __result
132
138
} ;
133
139
}
@@ -278,7 +284,7 @@ private void FixedUpdate()
278
284
}
279
285
}
280
286
}
281
- }
287
+ }
282
288
283
289
[ HarmonyPatch ( typeof ( SettingsPanelTabNavigable ) , nameof ( SettingsPanelTabNavigable . Awake ) ) ]
284
290
private static class SettingsPanelTabNavigable_Awake_Patch
0 commit comments