Changed the IsEnchantable() comment.
This commit is contained in:
parent
4ff34b9f10
commit
3ee3a59e75
@ -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 =
|
||||||
{
|
{
|
||||||
|
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user