MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 1 | // MorgenGrauen MUDlib |
| 2 | //, |
| 3 | // clothing_container.c -- Kleidung, in die man was reinstecken kann |
| 4 | // |
| 5 | // $Id: clothing_container.c,v 1.3 2003/08/07 07:25:43 Rikus Exp $ |
| 6 | |
| 7 | #pragma strict_types |
| 8 | #pragma save_types |
| 9 | #pragma no_clone |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 10 | #pragma range_check |
| 11 | |
| 12 | inherit "/std/thing/properties"; |
| 13 | inherit "/std/thing/commands"; |
| 14 | inherit "/std/thing/language"; |
| 15 | inherit "/std/thing/envchk"; |
| 16 | inherit "/std/container/light"; |
| 17 | inherit "/std/container/restrictions"; |
| 18 | inherit "/std/container/inventory"; |
| 19 | inherit "/std/container/items"; |
Zesstra | 4403045 | 2018-11-12 22:34:02 +0100 | [diff] [blame] | 20 | inherit "/std/container/vitems"; |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 21 | inherit "/std/clothing/moving"; |
| 22 | inherit "/std/clothing/wear"; |
| 23 | inherit "/std/clothing/container_description"; |
| 24 | |
| 25 | //#define NEED_PROTOTYPES |
| 26 | |
| 27 | #include <container.h> |
| 28 | |
| 29 | protected void create() { |
| 30 | properties::create(); |
| 31 | commands::create(); |
| 32 | light::create(); |
| 33 | container_description::create(); |
| 34 | restrictions::create(); |
| 35 | items::create(); |
| 36 | wear::create(); |
| 37 | envchk::create(); |
| 38 | SetProp(P_CONTAINER,1); |
| 39 | SetProp(P_PREPOSITION, "in"); |
| 40 | SetProp(P_SOURCE_PREPOSITION, "aus"); |
| 41 | SetProp(P_DEST_PREPOSITION, "in"); |
| 42 | AddId("Ding"); |
| 43 | } |
| 44 | |
| 45 | protected void create_super() { |
| 46 | set_next_reset(-1); |
| 47 | } |
| 48 | |
| 49 | void reset() { |
| 50 | items::reset(); |
Zesstra | 4403045 | 2018-11-12 22:34:02 +0100 | [diff] [blame] | 51 | vitems::reset(); |
Zesstra | f17d3a0 | 2018-11-12 22:29:00 +0100 | [diff] [blame] | 52 | envchk::reset(); |
MG Mud User | 88f1247 | 2016-06-24 23:31:02 +0200 | [diff] [blame] | 53 | } |
| 54 | |
| 55 | int IsClothing() {return 1;} |
| 56 | |