src/z-dice.c
int dice_evaluate(dice_t *dice, int level, aspect aspect, random_value *v)
{
	random_value rv;
	dice_random_value(dice, &rv);

	if (v != NULL) {
		v->base = rv.base;
		v->dice = rv.dice;
		v->sides = rv.sides;
		v->m_bonus = rv.m_bonus;
	}

	return randcalc(rv, level, aspect);
}
/**
 * Fully evaluates the dice object, using randcalc(). The random_value used is
 * returned if desired.
 *
 * \param dice is the dice object to evaluate.
 * \param level is the level value that is passed to randcalc().
 * \param aspect is the aspect that is passed to randcalc().
 * \param v is a pointer used to return the random_value used.
 */
Fully evaluates the dice object, using randcalc(). The random_value used is
returned if desired.

\param dice is the dice object to evaluate.
\param level is the level value that is passed to randcalc().
\param aspect is the aspect that is passed to randcalc().
\param v is a pointer used to return the random_value used.
Fully evaluates the dice object using randcalc () . The random_value used is returned if desired . \ param dice is the dice object to evaluate . \ param level is the level value that is passed to randcalc () . \ param aspect is the aspect that is passed to randcalc () . \ param v is a pointer used to return the random_value used .
int dice_evaluate(dice_t *dice, int level, aspect aspect, random_value *v)
{
	random_value rv;
	dice_random_value(dice, &rv);
	if (v != NULL) {
		v->base = rv.base;
		v->dice = rv.dice;
		v->sides = rv.sides;
		v->m_bonus = rv.m_bonus;
	}
	return randcalc(rv, level, aspect);
}
int dice_evaluate ( dice_t * dice , int level , aspect aspect , random_value * v ) { random_value rv ; dice_random_value ( dice , & rv ) ; if ( v != NULL ) { v -> base = rv . base ; v -> dice = rv . dice ; v -> sides = rv . sides ; v -> m_bonus = rv . m_bonus ; } return randcalc ( rv , level , aspect ) ; }
Fully evaluates the dice object, using randcalc().
Fully evaluates the dice object using randcalc () .