empty.c

ds2.4.1/lib/verbs/items/empty.c · 413 B

From the archive ds2.4.1.zip

Download the archive   « Back to the archive contents


#include <lib.h>

inherit LIB_VERB;

static void create() {
    verb::create();
    SetVerb("empty");
    SetRules("OBJ");
    SetErrorMessage("Empty what?");
    SetHelp("Syntax: empty <vessel>\n\n"
      "Removes the fluid from a vessel.");
}

mixed can_empty_obj(string verb) { return this_player()->CanManipulate(); }

mixed do_empty_obj(object from) {
    return (mixed)from->eventEmpty(this_player());
}

Site Stats

Snippets: 1791
Codebases: 571