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