Esempio n. 1
0
        protected override void Func_48434_c(ItemStack par1ItemStack)
        {
            par1ItemStack.OnCrafting(ThePlayer.WorldObj, ThePlayer, Field_48437_f);
            Field_48437_f = 0;

            if (par1ItemStack.ItemID == Item.IngotIron.ShiftedIndex)
            {
                ThePlayer.AddStat(AchievementList.AcquireIron, 1);
            }

            if (par1ItemStack.ItemID == Item.FishCooked.ShiftedIndex)
            {
                ThePlayer.AddStat(AchievementList.CookFish, 1);
            }
        }
Esempio n. 2
0
        protected override void Func_48434_c(ItemStack par1ItemStack)
        {
            par1ItemStack.OnCrafting(ThePlayer.WorldObj, ThePlayer, Field_48436_g);
            Field_48436_g = 0;

            if (par1ItemStack.ItemID == Block.Workbench.BlockID)
            {
                ThePlayer.AddStat(AchievementList.BuildWorkBench, 1);
            }
            else if (par1ItemStack.ItemID == Item.PickaxeWood.ShiftedIndex)
            {
                ThePlayer.AddStat(AchievementList.BuildPickaxe, 1);
            }
            else if (par1ItemStack.ItemID == Block.StoneOvenIdle.BlockID)
            {
                ThePlayer.AddStat(AchievementList.BuildFurnace, 1);
            }
            else if (par1ItemStack.ItemID == Item.HoeWood.ShiftedIndex)
            {
                ThePlayer.AddStat(AchievementList.BuildHoe, 1);
            }
            else if (par1ItemStack.ItemID == Item.Bread.ShiftedIndex)
            {
                ThePlayer.AddStat(AchievementList.MakeBread, 1);
            }
            else if (par1ItemStack.ItemID == Item.Cake.ShiftedIndex)
            {
                ThePlayer.AddStat(AchievementList.BakeCake, 1);
            }
            else if (par1ItemStack.ItemID == Item.PickaxeStone.ShiftedIndex)
            {
                ThePlayer.AddStat(AchievementList.BuildBetterPickaxe, 1);
            }
            else if (par1ItemStack.ItemID == Item.SwordWood.ShiftedIndex)
            {
                ThePlayer.AddStat(AchievementList.BuildSword, 1);
            }
            else if (par1ItemStack.ItemID == Block.EnchantmentTable.BlockID)
            {
                ThePlayer.AddStat(AchievementList.Enchantments, 1);
            }
            else if (par1ItemStack.ItemID == Block.BookShelf.BlockID)
            {
                ThePlayer.AddStat(AchievementList.Bookcase, 1);
            }
        }