Changeset 781

Show
Ignore:
Timestamp:
03/14/08 14:14:48 (6 months ago)
Author:
GabeCunningham
Message:

Fix #442: Allow squelching of flasks of oil. Average squelch now squelches ID'd weapons/armor with negative bonuses. Good squelch now squelches items that pseudo as {magical}, since those are either bad or good.

Files:

Legend:

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

    r690 r781  
    155155        { TV_SPIKE,                     "Spikes" }, 
    156156        { TV_LITE,                      "Lights" }, 
     157        { TV_FLASK,                     "Flasks of oil" }, 
    157158}; 
    158159 
     
    412413                        } 
    413414 
     415                        if ((feel != INSCRIP_AVERAGE) && fullid && 
     416                                 (o_ptr->to_a <= 0 && o_ptr->to_h <= 0 && o_ptr->to_d <= 0)) 
     417                                return TRUE; 
     418 
    414419                        break; 
    415420                } 
     
    419424                        if ((feel == INSCRIP_TERRIBLE) || 
    420425                            (feel == INSCRIP_WORTHLESS) || (feel == INSCRIP_CURSED) || 
    421                             (feel == INSCRIP_AVERAGE)
     426                            (feel == INSCRIP_AVERAGE) || (feel == INSCRIP_MAGICAL)
    422427                        { 
    423428                                return TRUE;