Bugfix | 183214d | 2016-08-18 16:38:26 +0200 | [diff] [blame] | 1 | #pragma strong_types,save_types |
| 2 | |
| 3 | inherit "/std/thing"; |
| 4 | |
| 5 | #include <properties.h> |
| 6 | |
| 7 | protected 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 | |
| 21 | public 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 | |
| 33 | public void reset() { |
| 34 | remove(); |
| 35 | } |
| 36 | |
| 37 | public void start_remove(int zeit) |
| 38 | { |
| 39 | if (zeit > 0); |
| 40 | set_next_reset(zeit); |
| 41 | } |
| 42 | |