summaryrefslogtreecommitdiffstats
path: root/src/Item.h
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2016-09-13 09:43:02 +0200
committerGitHub <noreply@github.com>2016-09-13 09:43:02 +0200
commitca99e754ea430f500e79c5d929754c7e5946329b (patch)
tree5ea029a2a87d445f52ee80ca73c71e4bd37d3a0a /src/Item.h
parentBindings: Fixed some function signatures comments. (diff)
parentCIBuild: Mark as failure on duplicate API docs. (diff)
downloadcuberite-ca99e754ea430f500e79c5d929754c7e5946329b.tar
cuberite-ca99e754ea430f500e79c5d929754c7e5946329b.tar.gz
cuberite-ca99e754ea430f500e79c5d929754c7e5946329b.tar.bz2
cuberite-ca99e754ea430f500e79c5d929754c7e5946329b.tar.lz
cuberite-ca99e754ea430f500e79c5d929754c7e5946329b.tar.xz
cuberite-ca99e754ea430f500e79c5d929754c7e5946329b.tar.zst
cuberite-ca99e754ea430f500e79c5d929754c7e5946329b.zip
Diffstat (limited to '')
-rw-r--r--src/Item.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Item.h b/src/Item.h
index fb52c75fa..8d0e9d9a0 100644
--- a/src/Item.h
+++ b/src/Item.h
@@ -197,8 +197,8 @@ public:
/** Returns the enchantability of the item. When the item hasn't a enchantability, it will returns 0 */
int GetEnchantability(); // tolua_export
- /** Enchants the item using the specified number of XP levels.
- Returns true if item enchanted, false if not. */
+ /** Randomly enchants the item using the specified number of XP levels.
+ Returns true if the item was enchanted, false if not (not enchantable / too many enchantments already). */
bool EnchantByXPLevels(int a_NumXPLevels); // tolua_export
// tolua_begin