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