diff options
Diffstat (limited to '')
-rw-r--r-- | src/Item.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/Item.h b/src/Item.h index d3f853170..600c8b2f1 100644 --- a/src/Item.h +++ b/src/Item.h @@ -141,8 +141,9 @@ public: int GetEnchantability(); // tolua_export /** 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 + Returns true if the item was enchanted, false if not (not enchantable / too many enchantments already). + Randomness is derived from the provided PRNG. */ + bool EnchantByXPLevels(int a_NumXPLevels, MTRand & a_Random); // Exported in ManualBindings.cpp /** Adds this specific enchantment to this item, returning the cost. FromBook specifies whether the enchantment should be treated as coming |