blob: 62390c47c73a61d0fbeea087c8da87a98b5c9d77 [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001SYNOPSIS:
2 int set_light(int n)
3
4DESCRIPTION:
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
14BUGS:
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.