/// <summary> /// Called when the player picks up an item from an inventory slot /// </summary> public override void OnPickupFromSlot(ItemStack par1ItemStack) { if (par1ItemStack.ItemID == Item.Potion.ShiftedIndex && par1ItemStack.GetItemDamage() > 0) { Player.AddStat(AchievementList.Potion, 1); } base.OnPickupFromSlot(par1ItemStack); }