blob: a39beeea425a8f30dbd4891cde2fa698230694be [file] [log] [blame]
MG Mud User88f12472016-06-24 23:31:02 +02001// MorgenGrauen MUDlib
2//
3// container.c -- container standard object
4//
5// $Id: container.c 7804 2011-07-10 20:37:52Z Zesstra $
6
7// The most general object class. It defines the really basic functions.
8//
9// This object should understand the properties short, long, info, read_msg,
10// value, weight.
11//
12// weight is given in grams, 1 kilogram (kg) = 1000 grams (g) = 1 old weight
13// unit
14
15#pragma strict_types
16#pragma save_types
17#pragma no_clone
18#pragma pedantic
19#pragma range_check
20
21inherit "/std/thing/properties";
22inherit "/std/thing/moving";
23inherit "/std/thing/commands";
24inherit "/std/thing/language";
25inherit "/std/container/description";
26inherit "/std/container/light";
27inherit "/std/container/restrictions";
28inherit "/std/container/inventory";
29inherit "/std/container/items";
Zesstra44030452018-11-12 22:34:02 +010030inherit "/std/container/vitems";
MG Mud User88f12472016-06-24 23:31:02 +020031inherit "/std/thing/envchk";
32
33#include <properties.h>
34#include <wizlevels.h>
35#include <defines.h>
36
37protected void create()
38{
39 properties::create();
40 commands::create();
41 light::create();
42 description::create();
43 restrictions::create();
44 items::create();
45 envchk::create();
46 SetProp(P_CONTAINER,1);
47 SetProp(P_PREPOSITION, "in");
48 SetProp(P_SOURCE_PREPOSITION, "aus");
49 SetProp(P_DEST_PREPOSITION, "in");
50}
51
52protected void create_super() {
53 set_next_reset(-1);
54}
55
MG Mud User88f12472016-06-24 23:31:02 +020056void reset()
57{
58 items::reset();
Zesstra44030452018-11-12 22:34:02 +010059 vitems::reset();
Zesstraf17d3a02018-11-12 22:29:00 +010060 envchk::reset();
MG Mud User88f12472016-06-24 23:31:02 +020061}
62