identify.c

gurba-0.40/lib/cmds/player/identify.c · 334 B

From the archive gurba.tgz

Download the archive   « Back to the archive contents

void main( string str ) {
  object obj;
  object *wielded;

  obj = this_player()->find_object( lowercase( str ) );
  if( obj == 0 ) {
    write( "Maybe you should get one first?" );
    return;
  }
	
	if( obj->query_detailed_desc() ) {
		write( obj->query_detailed_desc() );
	} else {
		write( "You discover nothing special" );
	}
}

Site Stats

Snippets: 1791
Codebases: 571