diff options
author | 12xx12 <44411062+12xx12@users.noreply.github.com> | 2020-08-12 10:54:36 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-08-19 21:45:27 +0200 |
commit | 7d0813ce8c1be14bc1b9b706644bd4aa797244ee (patch) | |
tree | 6d026a11be6db2da3d60b94b4f4a442460253e1d /src/UI | |
parent | Add enhanced Gold generation in Mesa-Type Biomes (#4821) (diff) | |
download | cuberite-7d0813ce8c1be14bc1b9b706644bd4aa797244ee.tar cuberite-7d0813ce8c1be14bc1b9b706644bd4aa797244ee.tar.gz cuberite-7d0813ce8c1be14bc1b9b706644bd4aa797244ee.tar.bz2 cuberite-7d0813ce8c1be14bc1b9b706644bd4aa797244ee.tar.lz cuberite-7d0813ce8c1be14bc1b9b706644bd4aa797244ee.tar.xz cuberite-7d0813ce8c1be14bc1b9b706644bd4aa797244ee.tar.zst cuberite-7d0813ce8c1be14bc1b9b706644bd4aa797244ee.zip |
Diffstat (limited to '')
-rw-r--r-- | src/UI/SlotArea.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/UI/SlotArea.cpp b/src/UI/SlotArea.cpp index 7279e9931..1450294a4 100644 --- a/src/UI/SlotArea.cpp +++ b/src/UI/SlotArea.cpp @@ -766,16 +766,16 @@ void cSlotAreaCrafting::HandleCraftItem(const cItem & a_Result, cPlayer & a_Play { switch (a_Result.m_ItemType) { - case E_BLOCK_WORKBENCH: a_Player.AwardAchievement(achCraftWorkbench); break; - case E_BLOCK_FURNACE: a_Player.AwardAchievement(achCraftFurnace); break; - case E_BLOCK_CAKE: a_Player.AwardAchievement(achBakeCake); break; - case E_BLOCK_ENCHANTMENT_TABLE: a_Player.AwardAchievement(achCraftEnchantTable); break; - case E_BLOCK_BOOKCASE: a_Player.AwardAchievement(achBookshelf); break; - case E_ITEM_WOODEN_PICKAXE: a_Player.AwardAchievement(achCraftPickaxe); break; - case E_ITEM_WOODEN_SWORD: a_Player.AwardAchievement(achCraftSword); break; - case E_ITEM_STONE_PICKAXE: a_Player.AwardAchievement(achCraftBetterPick); break; - case E_ITEM_WOODEN_HOE: a_Player.AwardAchievement(achCraftHoe); break; - case E_ITEM_BREAD: a_Player.AwardAchievement(achMakeBread); break; + case E_BLOCK_WORKBENCH: a_Player.AwardAchievement(Statistic::AchBuildWorkBench); break; + case E_BLOCK_FURNACE: a_Player.AwardAchievement(Statistic::AchBuildFurnace); break; + case E_BLOCK_CAKE: a_Player.AwardAchievement(Statistic::AchBakeCake); break; + case E_BLOCK_ENCHANTMENT_TABLE: a_Player.AwardAchievement(Statistic::AchEnchantments); break; + case E_BLOCK_BOOKCASE: a_Player.AwardAchievement(Statistic::AchBookcase); break; + case E_ITEM_WOODEN_PICKAXE: a_Player.AwardAchievement(Statistic::AchBuildPickaxe); break; + case E_ITEM_WOODEN_SWORD: a_Player.AwardAchievement(Statistic::AchBuildSword); break; + case E_ITEM_STONE_PICKAXE: a_Player.AwardAchievement(Statistic::AchBuildBetterPickaxe); break; + case E_ITEM_WOODEN_HOE: a_Player.AwardAchievement(Statistic::AchBuildHoe); break; + case E_ITEM_BREAD: a_Player.AwardAchievement(Statistic::AchMakeBread); break; default: break; } } @@ -2043,8 +2043,8 @@ void cSlotAreaFurnace::HandleSmeltItem(const cItem & a_Result, cPlayer & a_Playe /** TODO 2014-05-12 xdot: Figure out when to call this method. */ switch (a_Result.m_ItemType) { - case E_ITEM_IRON: a_Player.AwardAchievement(achAcquireIron); break; - case E_ITEM_COOKED_FISH: a_Player.AwardAchievement(achCookFish); break; + case E_ITEM_IRON: a_Player.AwardAchievement(Statistic::AchAcquireIron); break; + case E_ITEM_COOKED_FISH: a_Player.AwardAchievement(Statistic::AchCookFish); break; default: break; } } @@ -2193,7 +2193,7 @@ void cSlotAreaBrewingstand::HandleBrewedItem(cPlayer & a_Player, const cItem & a // Award an achievement if the item is not a water bottle (is a real brewed potion) if (a_ClickedItem.m_ItemDamage > 0) { - a_Player.AwardAchievement(achBrewPotion); + a_Player.AwardAchievement(Statistic::AchPotion); } } |