1
0

Changed the IsEnchantable() comment.

This commit is contained in:
Howaner 2014-08-30 15:06:43 +02:00
parent 4ff34b9f10
commit 3ee3a59e75
2 changed files with 3 additions and 2 deletions

View File

@ -1209,7 +1209,7 @@ These ItemGrids are available in the API and can be manipulated by the plugins,
IsLoreEmpty = { Params = "", Return = "", Notes = "Returns if the lore of the cItem is empty." }, IsLoreEmpty = { Params = "", Return = "", Notes = "Returns if the lore of the cItem is empty." },
GetEnchantability = { Params = "", Return = "number", Notes = "Returns the enchantability of the item. When the item hasn't a enchantability, it will returns 0" }, GetEnchantability = { Params = "", Return = "number", Notes = "Returns the enchantability of the item. When the item hasn't a enchantability, it will returns 0" },
EnchantByXPLevels = { Params = "NumXPLevels", Return = "bool", Notes = "Enchants the item using the specified number of XP levels. Returns true if item enchanted, false if not." }, EnchantByXPLevels = { Params = "NumXPLevels", Return = "bool", Notes = "Enchants the item using the specified number of XP levels. Returns true if item enchanted, false if not." },
IsEnchantable = { Params = "ItemType, WithBook", Return = "bool", Notes = "(STATIC) Returns true if the specified item type is enchantable." }, IsEnchantable = { Params = "ItemType, WithBook", Return = "bool", Notes = "(STATIC) Returns true if the specified item type is enchantable. If WithBook is true, the function checks the enchantments with a book too." },
}, },
Variables = Variables =
{ {

View File

@ -183,7 +183,8 @@ public:
/** Loads the item data from JSON representation */ /** Loads the item data from JSON representation */
void FromJson(const Json::Value & a_Value); void FromJson(const Json::Value & a_Value);
/** Returns true if the specified item type is enchantable. */ /** Returns true if the specified item type is enchantable.
If WithBook is true, the function checks the enchantments with a book too. */
static bool IsEnchantable(short a_ItemType, bool a_WithBook = false); // tolua_export static bool IsEnchantable(short a_ItemType, bool a_WithBook = false); // tolua_export
/** Returns the enchantability of the item. When the item hasn't a enchantability, it will returns 0 */ /** Returns the enchantability of the item. When the item hasn't a enchantability, it will returns 0 */