MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame^] | 1 | #include <properties.h> |
| 2 | #include <language.h> |
| 3 | #include <combat.h> |
| 4 | #include "../files.h" |
| 5 | |
| 6 | inherit "std/armour"; |
| 7 | |
| 8 | create() |
| 9 | { |
| 10 | if (!clonep(this_object())) return; |
| 11 | ::create(); |
| 12 | SetProp(P_SHORT, "Ein Paar Gummistiefel"); |
| 13 | SetProp(P_LONG, "Damit bekommt man sicher keine nassen Fuesse.\n"); |
| 14 | SetProp(P_NAME, "Paar Gummistiefel"); |
| 15 | SetProp(P_GENDER, 0); |
| 16 | AddId(({"stiefel", "gummistiefel", "paar", "paar stiefel"})); |
| 17 | SetProp(P_ARMOUR_TYPE, AT_BOOT); |
| 18 | SetProp(P_AC, 0); |
| 19 | SetProp(P_WEIGHT, 700); |
| 20 | SetProp(P_VALUE, 120); |
| 21 | SetProp(P_REMOVE_FUNC, this_object()); |
| 22 | } |
| 23 | |
| 24 | RemoveFunc() |
| 25 | { |
| 26 | object env; |
| 27 | if ((env=environment(QueryProp(P_WORN)))==find_object(L2("m2x1")) || |
| 28 | env==find_object(L2("m1x1"))) |
| 29 | { |
| 30 | write("Das waere keine so tolle Idee hier die Gummistiefel auszuziehen.\n"); |
| 31 | return 0; |
| 32 | } |
| 33 | return 1; |
| 34 | } |
| 35 | |
| 36 | |
| 37 | |