private void SetNotificationItemHook(GenericNotification.orig_SetItem orig, RoR2.UI.GenericNotification self, ItemDef itemDef) { //self.descriptionText.token = itemDef.descriptionToken; orig(self, itemDef); if (itemDef.itemIndex == catalogIndex) { self.descriptionText.token = dynamicPickupText; } }
private static void SetNotificationItemHook(GenericNotification.orig_SetItem orig, RoR2.UI.GenericNotification self, ItemDef itemDef) { orig(self, itemDef); if (ItemStatsMod.DetailedPickupDescriptions.Value) { self.descriptionText.token = itemDef.descriptionToken; } }