Christian Georg Becker | a38b32f | 2017-03-07 23:12:05 +0100 | [diff] [blame] | 1 | #pragma strong_types, save_types, rtt_checks, pedantic |
| 2 | inherit "/std/thing"; |
| 3 | |
| 4 | #include <properties.h> |
| 5 | |
| 6 | protected void create() { |
| 7 | if(!clonep(this_object())) return; |
| 8 | ::create(); |
| 9 | |
| 10 | AddId(({"keks"})); |
| 11 | |
| 12 | SetProp(P_NAME, "Keks"); |
| 13 | SetProp(P_SHORT, "Ein Keks"); |
| 14 | SetProp(P_LONG, break_string( |
| 15 | "Ein leckerer Keks. Gib ihn doch einem Monster.",78)); |
| 16 | |
| 17 | SetProp(P_GENDER, MALE); |
| 18 | SetProp(P_WEIGHT, 20); |
| 19 | SetProp(P_VALUE, 0); |
| 20 | SetProp(P_MATERIAL, MAT_MISC_PLANT); |
| 21 | |
| 22 | AddCmd("iss|mampf|friss&@ID&\n", 0, |
| 23 | "Was willst du essen?|Sieht nicht lecker genug aus.^"); |
| 24 | } |