Changeset 691
- Timestamp:
- 02/06/08 12:43:24 (10 months ago)
- Files:
-
- trunk/src/birth.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/birth.c
r636 r691 434 434 } 435 435 436 /* Minimum 100 gold */437 if (gold < 100) gold = 100;436 /* Minimum 200 gold */ 437 if (gold < 100) gold = 200; 438 438 439 439 /* Save the gold */ … … 1084 1084 * Initial stat costs (initial stats always range from 10 to 18 inclusive). 1085 1085 */ 1086 static const int birth_stat_costs[(18-10)+1] = { 0, 1, 2, 4, 7, 11, 16, 22, 30 }; 1086 static const int birth_stat_costs[(18-10)+1] = { 0, 1, 2, 3, 4, 5, 6, 8, 12 }; 1087 1088 /* It is feasible to get base 17 in 3 stats with the autoroller */ 1089 #define MAX_BIRTH_COST (3 * birth_stat_costs[7]) 1087 1090 1088 1091 … … 1174 1177 1175 1178 /* Restrict cost */ 1176 if (cost > 48)1179 if (cost > MAX_BIRTH_COST) 1177 1180 { 1178 1181 /* Warning */ … … 1187 1190 1188 1191 /* Gold is inversely proportional to cost */ 1189 p_ptr->au = p_ptr->au_birth = ( 50 * (48 - cost)) + 100;1192 p_ptr->au = p_ptr->au_birth = (35 * (MAX_BIRTH_COST - cost)) + 200; 1190 1193 1191 1194 /* Calculate the bonuses and hitpoints */ … … 1217 1220 1218 1221 /* Prompt XXX XXX XXX */ 1219 strnfmt(buf, sizeof(buf), "Total Cost %2d/ 48. Use 2/8 to move, 4/6 to modify, 'Enter' to accept.", cost);1222 strnfmt(buf, sizeof(buf), "Total Cost %2d/%d. Use up/down to move, left/right to modify, 'Enter' to accept.", cost, MAX_BIRTH_COST); 1220 1223 prt(buf, 0, 0); 1221 1224
