blob: 809e96b4d396a683af74a936ba93635468f7524f [file] [log] [blame]
Bugfix183214d2016-08-18 16:38:26 +02001#pragma strong_types,save_types
2
3inherit "/std/thing";
4
5#include <properties.h>
6
7protected void create()
8{
9 ::create();
10 SetProp(P_SHORT, "Eine leuchtende Kugel");
11 SetProp(P_LONG, "Eine ziemlich normale Kugel, die magisch leuchtet.\n");
12 SetProp(P_NAME, "Lichtkugel");
13 SetProp(P_GENDER, 2);
14 AddId(({"kugel", "lichtkugel", "leuchtende kugel"}));
15 SetProp(P_WEIGHT, 0);
16 SetProp(P_VALUE, 0);
17 SetProp(P_LIGHT, 2);
18}
19
20
21public varargs int remove(int silent)
22{
23 if (!silent && environment())
24 {
25 if (living(environment()))
26 tell_object(environment(), "Die Lichtkugel loest sich auf.\n");
27 else
28 tell_room(environment(), "Die Lichtkugel loest sich auf.\n");
29 }
30 return ::remove(silent);
31}
32
33public void reset() {
34 remove();
35}
36
37public void start_remove(int zeit)
38{
39 if (zeit > 0);
40 set_next_reset(zeit);
41}
42