Changeset 681

Show
Ignore:
Timestamp:
02/01/08 05:51:15 (9 months ago)
Author:
takkaria
Message:

Fix #428:

  • Make torches always be found at 5000 turns
  • Make lanterns always be found at 7500 turns
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/defines.h

    r678 r681  
    274274 * Refueling constants 
    275275 */ 
    276 #define FUEL_TORCH      6000  /* Maximum amount of fuel in a torch */ 
     276#define FUEL_TORCH      5000  /* Maximum amount of fuel in a torch */ 
    277277#define FUEL_LAMP       15000   /* Maximum amount of fuel in a lantern */ 
    278278 
  • trunk/src/obj-make.c

    r680 r681  
    948948                case TV_LITE: 
    949949                { 
    950                         /* Hack -- Torches & lanterns -- random fuel at 1/2 max */ 
     950                        /* Torches and lanterns get half-fuel */ 
    951951                        if (o_ptr->sval == SV_LITE_TORCH) 
    952                         { 
    953                                 o_ptr->timeout = randint(FUEL_TORCH/2); 
    954                         } 
    955  
     952                                o_ptr->timeout = FUEL_TORCH; 
    956953                        else if (o_ptr->sval == SV_LITE_LANTERN) 
    957                         { 
    958                                 o_ptr->timeout = randint(FUEL_LAMP/2); 
    959                         } 
     954                                o_ptr->timeout = FUEL_LAMP / 2; 
    960955 
    961956                        break; 
  • trunk/src/store.c

    r653 r681  
    12681268                /* Apply some "low-level" magic (no artifacts) */ 
    12691269                apply_magic(i_ptr, level, FALSE, FALSE, FALSE); 
    1270          
     1270 
    12711271                /* The object is "known" and belongs to a store */ 
    12721272                object_known(i_ptr); 
     
    12891289                if (i_ptr->tval == TV_LITE) 
    12901290                { 
    1291                         if (i_ptr->sval == SV_LITE_TORCH) i_ptr->timeout = FUEL_TORCH / 2
     1291                        if (i_ptr->sval == SV_LITE_TORCH) i_ptr->timeout = FUEL_TORCH
    12921292                        if (i_ptr->sval == SV_LITE_LANTERN) i_ptr->timeout = FUEL_LAMP / 2; 
    12931293                }