blob: 99d5beeb9cdd08d57fa3bd1116dd2770f6468cfa [file] [log] [blame]
Zesstra18626972017-01-31 10:38:27 +01001set_light()
2===========
3
4SYNOPSIS
5--------
6::
7
8 int set_light(int n)
9
10DESCRIPTION
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
25BUGS
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