I just found this in DB.C:
/* Bias the height and weight of the character depending on what gender
* they have chosen. While it is possible to have a tall, heavy female it's
* not as likely as a male. Height is in centimeters. Weight is in pounds.
* The only place they're ever printed (in stock code) is SPELL_IDENTIFY. */
if (GET_SEX(ch) == SEX_MALE) {
GET_WEIGHT(ch) = rand_number(120, 180);
GET_HEIGHT(ch) = rand_number(160, 200); /* 5'4" - 6'8" */
} else {
GET_WEIGHT(ch) = rand_number(100, 160);
GET_HEIGHT(ch) = rand_number(150, 180); /* 5'0" - 6'0" */
}
1: Could that have affected my race height code ?
2: Could this code above be changed instead into something simuler to my code ?
Maybe just put my code in there instead:
if (GET_SEX(ch) == SEX_MALE) {
if (IS_HALF_GIANT(ch))
GET_WEIGHT(ch) = 180 + dice(1, 10);
GET_HEIGHT(ch) = 180 + dice(1, 10);
else if (IS_DWARF(ch))
GET_WEIGHT(ch) = 43 + dice(1, 10);
GET_HEIGHT(ch) = 43 + dice(1, 10);
else if (IS_GNOME(ch))
GET_WEIGHT(ch) = 43 + dice(1, 10);
GET_HEIGHT(ch) = 43 + dice(1, 10);
else if (IS_ELF(ch))
GET_WEIGHT(ch) = 55 + dice(1, 10);
GET_HEIGHT(ch) = 55 + dice(1, 10);
else /* if (IS_HUMAN(ch)) */
GET_WEIGHT(ch) = 60 + dice(2, 10);
GET_HEIGHT(ch) = 60 + dice(2, 10);
} else { /* if (IS_FEMALE(ch)) */
if (IS_HALF_GIANT(ch))
GET_WEIGHT(ch) = 170 + dice(1, 10);
GET_HEIGHT(ch) = 170 + dice(1, 10);
else if (IS_DWARF(ch))
GET_WEIGHT(ch) = 41 + dice(1, 10);
GET_HEIGHT(ch) = 41 + dice(1, 10);
else if (IS_GNOME(ch))
GET_WEIGHT(ch) = 36 + dice(1, 6);
GET_HEIGHT(ch) = 36 + dice(1, 6);
else if (IS_ELF(ch))
GET_WEIGHT(ch) = 50 + dice(1, 10);
GET_HEIGHT(ch) = 50 + dice(1, 10);
else /* if (IS_HUMAN(ch)) */
GET_WEIGHT(ch) = 59 + dice(2, 10);
GET_HEIGHT(ch) = 59 + dice(2, 10);
}