MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | inherit "std/npc"; |
| 2 | |
| 3 | #include <properties.h> |
| 4 | #include <combat.h> |
| 5 | #include "../files.h" |
| 6 | |
| 7 | create() |
| 8 | { |
| 9 | if (!clonep(this_object())) return; |
| 10 | ::create(); |
| 11 | SetProp(P_NOCORPSE, 1); |
| 12 | SetProp(P_RACE, "Metallmonster"); |
| 13 | SetProp(P_DIE_MSG, " zerfaellt in seine Bestandteile.\n"); |
| 14 | SetProp(P_VULNERABILITY, ({ DT_WATER })); |
| 15 | } |
| 16 | |
| 17 | die() |
| 18 | { |
| 19 | create_blech(); |
| 20 | ::die(); |
| 21 | } |
| 22 | |
| 23 | create_blech() |
| 24 | { |
| 25 | object b; |
| 26 | b = clone_object(OBJ("blech")); |
| 27 | b->move(environment(this_object())); |
| 28 | } |