MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | DEPRECATED |
| 2 | SYNOPSIS |
| 3 | int add_weight(int w) |
| 4 | |
| 5 | DESCRIPTION |
| 6 | In compat mode, this function is used by the efun transfer(). |
| 7 | |
| 8 | An object that can contain other objects and is not a room |
| 9 | must define this function. It is called with the extra weight |
| 10 | of the object that is moved into it. If this is ok, then it |
| 11 | has to increment the local weight count, and return true. |
| 12 | Otherwise, return false, and the new object can not be entered |
| 13 | into this object. |
| 14 | |
| 15 | The function is also called with the negative weight in the |
| 16 | object that the moving leaves. |
| 17 | |
| 18 | Note that no set_weight() is required by the parser. |
| 19 | |
| 20 | HISTORY |
| 21 | Deprecated in LDMud 3.3 as transfer() has been deprecated. |
| 22 | |
| 23 | SEE ALSO |
| 24 | transfer(E), query_weight(A), prevent_insert(A) |