equip.c

./lib/skills/fighter/equip.c · 427 B

From the archive h7v3.0a.tar.gz

Download the archive   « Back to the archive contents

status equip() {
  int i;
  object *invent;

  invent = all_inventory(this_player());
  for(i=0; i<sizeof(invent); i++) {
    if(invent[i]->query_wc()) 
      command("wield "+(string)invent[i]->query_name(), this_player());
    else if(invent[i]->query_ac())
      command("wear "+(string)invent[i]->query_name(), this_player());
  }
  write("All items equipped.\n");
  return 1;
}


/* Native Mode Move */

#include <move.h>

Site Stats

Snippets: 1791
Codebases: 571