cleanup.c

merentha_mudos_v1/lib/std/inheritables/cleanup.c · 384 B

From the archive merentha_mudos_v1.tar.gz

Download the archive   « Back to the archive contents

// Petrarch
// Merentha Lib 1.0
// cleanup.c

int no_clean;

void create() {}
void init() {}
void reset() {}

void set_no_clean(int i) { no_clean=i; }

int clean_up(int i) {
    if(i || no_clean) return 0;
    return 1;
}

void remove() {
    object env;
    if(this_object()) {
	env=environment();
	if(env) all_inventory(this_object())->move(env);
	destruct(this_object());
    }
}

Site Stats

Snippets: 1791
Codebases: 571