blob: b9dfc9cfd71a7fcf4a7aa4645b7b320b5d5779df [file] [log] [blame]
Zesstra953f9972017-02-18 15:37:36 +01001
2set_light()
3***********
4
5
6SYNOPSIS
7========
8
9 int set_light(int n)
10
11
12DESCRIPTION
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
27BUGS
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.