Changeset 555

Show
Ignore:
Timestamp:
09/14/07 14:48:59 (1 year ago)
Author:
takkaria
Message:

Make the light-source descriptions more accurate. (closes #359)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/edit/object.txt

    r543 r555  
    28142814P:0:1d1:0:0:0 
    28152815F:EASY_KNOW 
    2816 D:It is equippable as a light source with a radius of 1 square. 
    2817 D:  It may also be used to fuel another torch, up to a maximum of 5000 
    2818 D: turns of light. 
    28192816 
    28202817N:347:& Lantern~ 
     
    28252822P:0:1d1:0:0:0 
    28262823F:EASY_KNOW | IGNORE_FIRE 
    2827 D:It is equippable as a light source with a radius of 2 squares. 
    2828 D:  It may also be used to fuel another lantern. 
    28292824 
    28302825N:348:& Flask~ of oil 
  • trunk/src/obj-info.c

    r532 r555  
    442442                text_out(".  "); 
    443443 
     444                if (o_ptr->tval == TV_LITE) 
     445                { 
     446                        const char *name = (o_ptr->sval == SV_LITE_TORCH) ? "torch" : "lantern"; 
     447                        int turns = (o_ptr->sval == SV_LITE_TORCH) ? FUEL_TORCH : FUEL_LAMP; 
     448 
     449                        text_out("It can refill another %s, up to %d turns of fuel.  ", name, turns); 
     450                } 
     451 
    444452                something = TRUE; 
    445453        } 
     
    451459        if (f3 & (TR3_FEATHER))     good[gc++] = "makes you fall like a feather"; 
    452460        if (f3 & (TR3_REGEN))       good[gc++] = "speeds your regeneration"; 
    453  
    454         if ((o_ptr->tval == TV_LITE) || (f3 & TR3_LITE)) 
    455                 good[gc++] = "lights the dungeon around you"; 
    456         if (f3 & TR3_NO_FUEL)       good[gc++] = "does not require fuel"; 
    457461 
    458462        /* Describe */