armor_base.c

lima-1.0b5/lib/std/adversary/armor/armor_base.c · 481 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. */

//:FUNCTION set_wearing
// void set_wearing(string);
// A quick and easy way to give monsters armor. Pass the filename of an
// armor object from within the setup() function of your monster.
void set_wearing(string s)
{
   object ob = new(s);
   if(!ob)
      return;

   ob->move(this_object());
   ob->do_wear();
}

mapping lpscript_attributes()
{
  return ([
    "worn" : ({ LPSCRIPT_WEAR }),
    ]);
}

Site Stats

Snippets: 1791
Codebases: 571