|
|
|||
[Package Index | Mudlib Index | Effect Index]File /std/basic/enchant.cModule to handle the amount of magical charge (enchantment) of an object has. The maximum enchantment of an item is determined by by its weight - the material of composition is not yet taken into account.Enchanting an object will add to its value, and, if the object is an item of armour, will improve its armour class. Written by Pinkfish Method index
Public FunctionsThese are functions that everyone can access.. int add_enchant(int number)This method changes the current enchanment level. string enchant_string()This method returns the current enchantment string for the object. The string is created from the percentage of the max enchantment that it is enchanted to. If the object is also a talisman, an identifying string is appended to the enchantment message. These messages are only visible to creators and players who can see octarine. If the property "octarine_mess" is set, then this will be printed instead of the automatically generated enchantment message.
If the property "talisman_mess" is set, then this will be printed instead
of the automatically generated talisman message if appropriate.
|
||||
|
Brought to you by CMOT Dibbler's Sensational Sausages; buy one while they're hot. |