MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | SYNOPSIS: |
| 2 | int set_light(int n) |
| 3 | |
| 4 | DESCRIPTION: |
| 5 | An object is by default dark. It can be set to not dark by |
| 6 | calling set_light(1). The environment will then also get this |
| 7 | light. The returned value is the total number of lights in |
| 8 | this room. So if you call set_light(0) it will return the |
| 9 | light level of the current object. |
| 10 | |
| 11 | Note that the value of the argument is added to the light of |
| 12 | the current object. |
| 13 | |
| 14 | BUGS: |
| 15 | This handling of light by the parser is inappropriate for most |
| 16 | purposes: If you put a burning candle into a safe, the safe |
| 17 | will start to emit light. |