From 047995ef25f90f84d7a38c228fdcbbbb683623e4 Mon Sep 17 00:00:00 2001 From: nesco Date: Tue, 12 Nov 2013 13:41:39 +0100 Subject: Added the new enchantments of Minecraft 1.7 -Luck of the sea -Lure --- source/Enchantments.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/Enchantments.cpp') diff --git a/source/Enchantments.cpp b/source/Enchantments.cpp index 0caf4eb11..c74969802 100644 --- a/source/Enchantments.cpp +++ b/source/Enchantments.cpp @@ -1,4 +1,3 @@ - // Enchantments.cpp // Implements the cEnchantments class representing a storage for item enchantments and stored-enchantments @@ -179,6 +178,8 @@ int cEnchantments::StringToEnchantmentID(const AString & a_EnchantmentName) { enchPunch, "Punch"}, { enchFlame, "Flame"}, { enchInfinity, "Infinity"}, + { enchLuckOfTheSea "LuckOfTheSea"}, + { enchLure "Lure"}, } ; for (int i = 0; i < ARRAYCOUNT(EnchantmentNames); i++) { -- cgit v1.2.3 From b7c1ed186ac521589b2471face2e97a32106f49e Mon Sep 17 00:00:00 2001 From: nesco Date: Tue, 12 Nov 2013 19:15:48 +0100 Subject: Update Enchantments.cpp --- source/Enchantments.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/Enchantments.cpp') diff --git a/source/Enchantments.cpp b/source/Enchantments.cpp index c74969802..8eb44fa31 100644 --- a/source/Enchantments.cpp +++ b/source/Enchantments.cpp @@ -178,8 +178,8 @@ int cEnchantments::StringToEnchantmentID(const AString & a_EnchantmentName) { enchPunch, "Punch"}, { enchFlame, "Flame"}, { enchInfinity, "Infinity"}, - { enchLuckOfTheSea "LuckOfTheSea"}, - { enchLure "Lure"}, + { enchLuckOfTheSea "LuckOfTheSea"}, + { enchLure "Lure"}, } ; for (int i = 0; i < ARRAYCOUNT(EnchantmentNames); i++) { -- cgit v1.2.3 From 5c67c17edccddbdeefb79e07abebf12c5bea686e Mon Sep 17 00:00:00 2001 From: nesco Date: Tue, 12 Nov 2013 20:49:27 +0100 Subject: Corrected the comma error --- source/Enchantments.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/Enchantments.cpp') diff --git a/source/Enchantments.cpp b/source/Enchantments.cpp index 8eb44fa31..40484f392 100644 --- a/source/Enchantments.cpp +++ b/source/Enchantments.cpp @@ -178,8 +178,8 @@ int cEnchantments::StringToEnchantmentID(const AString & a_EnchantmentName) { enchPunch, "Punch"}, { enchFlame, "Flame"}, { enchInfinity, "Infinity"}, - { enchLuckOfTheSea "LuckOfTheSea"}, - { enchLure "Lure"}, + { enchLuckOfTheSea, "LuckOfTheSea"}, + { enchLure, "Lure"}, } ; for (int i = 0; i < ARRAYCOUNT(EnchantmentNames); i++) { -- cgit v1.2.3 From ffe4de51c7d9837317b3c837c9b30a5b5544b899 Mon Sep 17 00:00:00 2001 From: nesco Date: Wed, 13 Nov 2013 08:17:26 +0100 Subject: Update Enchantments.cpp --- source/Enchantments.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/Enchantments.cpp') diff --git a/source/Enchantments.cpp b/source/Enchantments.cpp index 40484f392..6b53d0b52 100644 --- a/source/Enchantments.cpp +++ b/source/Enchantments.cpp @@ -178,8 +178,8 @@ int cEnchantments::StringToEnchantmentID(const AString & a_EnchantmentName) { enchPunch, "Punch"}, { enchFlame, "Flame"}, { enchInfinity, "Infinity"}, - { enchLuckOfTheSea, "LuckOfTheSea"}, - { enchLure, "Lure"}, + { enchLuckOfTheSea, "LuckOfTheSea"}, + { enchLure, "Lure"}, } ; for (int i = 0; i < ARRAYCOUNT(EnchantmentNames); i++) { -- cgit v1.2.3