Exemplo n.º 1
0
 // 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);
     }
 }
Exemplo n.º 2
0
 private void StatManager_OnServerItemGiven(On.RoR2.Stats.StatManager.orig_OnServerItemGiven orig, Inventory inventory, ItemIndex itemIndex, int quantity)
 {
     if (!Drizzle())
     {
         orig(inventory, itemIndex, quantity);
     }
 }