halt.c

gurba-0.40/lib/cmds/wiz/halt.c · 250 B

From the archive gurba.tgz

Download the archive   « Back to the archive contents

void main( string str ) {
  int i;
  object *obj;

  obj = this_environment()->query_inventory();

  for( i=0; i < sizeof( obj ); i++ ) {
    if( obj[i]->is_fighting() )
      obj[i]->halt_fight();
  }
  this_player()->write( "Combat halted.\n" );
}

Site Stats

Snippets: 1791
Codebases: 571