Changeset 987 for trunk/src/birth.c

Show
Ignore:
Timestamp:
08/05/08 14:26:44 (4 months ago)
Author:
takkaria
Message:
  • Remove a pointless variable
  • Make all torches always start with FUEL_TORCH fuel, as intended
  • Add birth_money option, which gives starting money instead of equipment
Files:

Legend:

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

    r975 r987  
    449449 
    450450        /* Minimum 200 gold */ 
    451         if (gold < 200) gold = 200; 
     451        if (OPT(birth_money)) gold = MAX(500, gold); 
     452        else gold = MAX(200, gold); 
    452453 
    453454        /* Save the gold */ 
     
    672673        object_prep(i_ptr, lookup_kind(TV_LITE, SV_LITE_TORCH)); 
    673674        i_ptr->number = (byte)rand_range(3, 7); 
    674         i_ptr->timeout = FUEL_TORCH / 2
     675        i_ptr->timeout = FUEL_TORCH
    675676        i_ptr->origin = ORIGIN_BIRTH; 
    676677        object_aware(i_ptr); 
     
    757758         
    758759        /* Gold is inversely proportional to cost */ 
    759         p_ptr->au = p_ptr->au_birth = (50 * points_left) + 200; 
     760        p_ptr->au = OPT(birth_money) ? 500 : 200; 
     761        p_ptr->au += (50 * points_left); 
     762        p_ptr->au_birth = p_ptr->au; 
    760763 
    761764        /* Update bonuses, hp, etc. */ 
     
    16671670 
    16681671        /* Hack -- outfit the player */ 
    1669         player_outfit(); 
     1672        if (!OPT(birth_money)) player_outfit(); 
    16701673 
    16711674        /* Initialise the stores */