eod/
eod/changes/
eod/log/
eod/player/
eod/player/backup/
eod/player/store/
// ARCHERS CODED BY DARRENS

#if defined(macintosh)
#include <types.h>
#else
#include <sys/types.h>
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "merc.h"

void do_improvearchery (CHAR_DATA *ch, char *argument)
{
if (IS_NPC(ch)) return;
if (!IS_CLASS(ch, CLASS_ARCHER))
{
	send_to_char("Huh?\n\r",ch);
	return;
}

if (ch->pcdata->powers[ARCHERY] == 100)
{
send_to_char("You are already completely trained in archery\n\r",ch);
return;
}

if (ch->pcdata->powers[ARCHER_CURRENT] < 100)
{
send_to_char("You must have 100 percent in your level of archery before you can increase it\n\r",ch);
return;
}

ch->pcdata->powers[ARCHER_CURRENT] = 0;
ch->pcdata->powers[ARCHERY] += 1;
send_to_char("Through study of the bow, your level of archery increases and you feel more powerful.\n\r",ch);

}