Changeset 681
- Timestamp:
- 02/01/08 05:51:15 (9 months ago)
- Files:
-
- trunk/src/defines.h (modified) (1 diff)
- trunk/src/obj-make.c (modified) (1 diff)
- trunk/src/store.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/src/defines.h
r678 r681 274 274 * Refueling constants 275 275 */ 276 #define FUEL_TORCH 6000 /* Maximum amount of fuel in a torch */276 #define FUEL_TORCH 5000 /* Maximum amount of fuel in a torch */ 277 277 #define FUEL_LAMP 15000 /* Maximum amount of fuel in a lantern */ 278 278 trunk/src/obj-make.c
r680 r681 948 948 case TV_LITE: 949 949 { 950 /* Hack -- Torches & lanterns -- random fuel at 1/2 max*/950 /* Torches and lanterns get half-fuel */ 951 951 if (o_ptr->sval == SV_LITE_TORCH) 952 { 953 o_ptr->timeout = randint(FUEL_TORCH/2); 954 } 955 952 o_ptr->timeout = FUEL_TORCH; 956 953 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; 960 955 961 956 break; trunk/src/store.c
r653 r681 1268 1268 /* Apply some "low-level" magic (no artifacts) */ 1269 1269 apply_magic(i_ptr, level, FALSE, FALSE, FALSE); 1270 1270 1271 1271 /* The object is "known" and belongs to a store */ 1272 1272 object_known(i_ptr); … … 1289 1289 if (i_ptr->tval == TV_LITE) 1290 1290 { 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; 1292 1292 if (i_ptr->sval == SV_LITE_LANTERN) i_ptr->timeout = FUEL_LAMP / 2; 1293 1293 }
