#include <sys/types.h>
#include <sys/time.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include <time.h>
#include "merc.h"
#include "interp.h"
#include "magic.h"
#include "recycle.h"
#include "tables.h"
#include "lookup.h"
#include "religion.h"
/*
* Various macros converted to functions for easier modification.
*/
int GET_DAMROLL(CHAR_DATA * ch)
{
int damroll;
damroll = ch->damroll;
damroll += get_curr_stat(ch,STAT_STR) / 10;
if (damroll < 0)
return 0;
return damroll;
}
int GET_HITROLL(CHAR_DATA * ch)
{
int hitroll;
hitroll = ch->hitroll;
hitroll += get_curr_stat(ch,STAT_DEX) / 10;
if (hitroll < 0)
return 0;
return hitroll;
}