// Normally push values to the StatSheet about the item (totalCollected etc). It saves to UserProfile private static void StatManagerOnOnServerItemGiven(On.RoR2.Stats.StatManager.orig_OnServerItemGiven orig, Inventory inventory, ItemIndex itemIndex, int quantity) { if ((int)itemIndex < OriginalItemCount) { orig(inventory, itemIndex, quantity); } }
private void StatManager_OnServerItemGiven(On.RoR2.Stats.StatManager.orig_OnServerItemGiven orig, Inventory inventory, ItemIndex itemIndex, int quantity) { if (!Drizzle()) { orig(inventory, itemIndex, quantity); } }