/* The following is the help file.
help snake
{x
syntax snake <directions>
{x
Example:
snake nnee
{x
This will create a path of rooms 2 north and then 2 east from you.
{x
Example:
snake 2n2e
{x
This will create a path of rooms 2 north and then 2 east from you, not
unlike above.
{x
Example:
snake 2n2e 2s2w
{x
This will create a path of rooms 2 north and then 2 east, then create
a second path 2 south and 2 west.
*/
bool medit_level( CHAR_DATA *ch, char *argument )
{
MOB_INDEX_DATA *pMob;
int setargs;
EDIT_MOB (ch, pMob);
if ( argument[0] == '\0' || !is_number( argument ) )
{
send_to_char( "Syntax: level [number]\n\r", ch );
return FALSE;
}
setargs = atoi (argument);
pMob->level = setargs;
pMob->hitroll = ( setargs * 2 / 6 );
pMob->ac = ( setargs - ( setargs * 2 ) * 2 );
pMob->hitnodice = ( setargs );
pMob->hitsizedice = ( setargs * 2 );
pMob->hitplus = (pMob->level * 10);
pMob->damnodice = ( setargs );
pMob->damsizedice = (pMob->level + .5) * 2 + .2;
pMob->damplus = (pMob->level/50 + 1) * ((pMob->level * 10) + (pMob->level/10)) +1;
pMob->gold = ( setargs * 10);
send_to_char ("Level set.\n\r", ch);
return TRUE;
}