eat.c
lima-1.0b5/lib/cmds/verbs/eat.c · 361 B
From the archive lima-1.0b5+driver.tar.gz
Download the archive « Back to the archive contents
/* Do not remove the headers from this file! see /USAGE for more info. */
#include <verbs.h>
inherit VERB_OB;
void do_eat_obj( object ob )
{
mixed err=try_to_acquire(ob);
if(stringp(err)) {
write(err);
return;
}
if(err==1)
ob->do_eat();
}
void create()
{
add_flag(TRY_TO_ACQUIRE);
add_rules( ({ "OBJ" }), ({ "bite" }) );
}