src/project-player.c
static void project_player_drain_stats(int num)
{
	int i, k = 0;
	const char *act = NULL;

	for (i = 0; i < num; i++) {
		switch (randint1(5)) {
			case 1: k = STAT_STR; act = "strong"; break;
			case 2: k = STAT_INT; act = "bright"; break;
			case 3: k = STAT_WIS; act = "wise"; break;
			case 4: k = STAT_DEX; act = "agile"; break;
			case 5: k = STAT_CON; act = "hale"; break;
		}

		msg("You're not as %s as you used to be...", act);
		player_stat_dec(player, k, FALSE);
	}

	return;
}
/**
 * Drain stats at random
 *
 * \param num is the number of points to drain
 */
Drain stats at random
\param num is the number of points to drain
Drain stats at random \ param num is the number of points to drain
static void project_player_drain_stats(int num)
{
	int i, k = 0;
	const char *act = NULL;
	for (i = 0; i < num; i++) {
		switch (randint1(5)) {
			case 1: k = STAT_STR; act = "strong"; break;
			case 2: k = STAT_INT; act = "bright"; break;
			case 3: k = STAT_WIS; act = "wise"; break;
			case 4: k = STAT_DEX; act = "agile"; break;
			case 5: k = STAT_CON; act = "hale"; break;
		}
		msg("You're not as %s as you used to be...", act);
		player_stat_dec(player, k, FALSE);
	}
	return;
}
static void project_player_drain_stats ( int num ) { int i , k = 0 ; const char * act = NULL ; for ( i = 0 ; i < num ; i ++ ) { switch ( randint1 ( 5 ) ) { case 1 : k = STAT_STR ; act = " " ; break ; case 2 : k = STAT_INT ; act = " " ; break ; case 3 : k = STAT_WIS ; act = " " ; break ; case 4 : k = STAT_DEX ; act = " " ; break ; case 5 : k = STAT_CON ; act = " " ; break ; } msg ( " " , act ) ; player_stat_dec ( player , k , FALSE ) ; } return ; }
Drain stats at random
 \param num is the number of points to drain
Drain stats at random \ param num is the number of points to drain