24 Jun, 2011, arholly wrote in the 1st comment:
Votes: 0
Hello:
I want to work on standardizing my spells and I'm kind of looking at doing it according to the SRD. But what I cannot remember is how to do it. For example, I want to change cure_light_wounds from
void spell_cure_light( int sn, int level, CHAR_DATA *ch, void *vo,int target)
{
CHAR_DATA *victim = (CHAR_DATA *) vo;
int heal;

heal = dice(1, 8) + level / 3;
victim->hit = UMIN( victim->hit + heal, victim->max_hit );
update_pos( victim );
send_to_char( "You feel better!\n\r", victim );
if ( ch != victim )
send_to_char( "Ok.\n\r", ch );
return;
}

to something like where the heal line is dice(1,Max(level5)). I used to remember there was a way to do it but for the life of me cannot remember what. Thanks for your help in advance.
24 Jun, 2011, Rarva.Riendf wrote in the 2nd comment:
Votes: 0
#define UMIN(a, b) ((a) < (b) ? (a) : (b))
#define LEVEL_LEGEND 100

then heal = dice(1, 8) + UMIN(level / 3, LEVEL_LEGEND);

as an example ?
0.0/2