weapon.c

lima-1.0b5/lib/std/weapon.c · 493 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. */


inherit OBJ;
inherit M_DAMAGE_SOURCE;
inherit M_WIELDABLE;
inherit M_GETTABLE;
inherit M_MESSAGES;

void mudlib_setup()
{
    ::mudlib_setup();
    add_id("weapon");
    add_save( ({ "persist_flags" }) );
}

mixed ob_state()
{
    return object::ob_state() + "/" + !!m_wieldable::ob_state();
}

void remove() {
    object::remove();
    m_wieldable::remove();
}	    

int indirect_kill_liv_with_obj()
{
  return 1;
}

Site Stats

Snippets: 1791
Codebases: 571