Changeset 691

Show
Ignore:
Timestamp:
02/06/08 12:43:24 (10 months ago)
Author:
takkaria
Message:

Point-based character generation is equivalent to best available from autoroller. Also make minimum starting gold 200AU. (Imported from Eddie Grove's patch.)

Also, decrease the amount of gold given per point left unused.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/birth.c

    r636 r691  
    434434        } 
    435435 
    436         /* Minimum 100 gold */ 
    437         if (gold < 100) gold = 100; 
     436        /* Minimum 200 gold */ 
     437        if (gold < 100) gold = 200; 
    438438 
    439439        /* Save the gold */ 
     
    10841084 * Initial stat costs (initial stats always range from 10 to 18 inclusive). 
    10851085 */ 
    1086 static const int birth_stat_costs[(18-10)+1] = { 0, 1, 2, 4, 7, 11, 16, 22, 30 }; 
     1086static 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]) 
    10871090 
    10881091 
     
    11741177 
    11751178                /* Restrict cost */ 
    1176                 if (cost > 48
     1179                if (cost > MAX_BIRTH_COST
    11771180                { 
    11781181                        /* Warning */ 
     
    11871190 
    11881191                /* 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; 
    11901193 
    11911194                /* Calculate the bonuses and hitpoints */ 
     
    12171220 
    12181221                /* 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); 
    12201223                prt(buf, 0, 0); 
    12211224