Changeset 903

Show
Ignore:
Timestamp:
05/16/08 19:42:51 (4 months ago)
Author:
takkaria
Message:

Add a new effect and a stub for another.

Files:

Legend:

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

    r899 r903  
    16571657 
    16581658                        *ident = TRUE; 
     1659                        return TRUE; 
    16591660                } 
    16601661 
    16611662#if 0 
    1662                 case EF_SHROOM_MANIA: 
    1663                 { 
    1664 EFFECT(SHROOM_MANIA,     FALSE, "makes you subject to manic fits") 
    1665                         of mania (see Sangband) 
     1663                case EF_SHROOM_SPRINTING: 
     1664                { 
     1665                        /* 
     1666                        +10 speed boost. 
     1667                        if player already fast, double current duration and add bad effect 
     1668                        otherwise 2*!Speed duration, then bad effect 
     1669                        */ 
     1670                        return TRUE; 
    16661671                } 
    16671672#endif 
     1673 
     1674                case EF_SHROOM_PURGING: 
     1675                { 
     1676                        (void)set_food(PY_FOOD_FAINT - 1); 
     1677                        if (do_res_stat(A_STR)) *ident = TRUE; 
     1678                        if (do_res_stat(A_CON)) *ident = TRUE; 
     1679                        if (clear_timed(TMD_POISONED)) *ident = TRUE; 
     1680                        return TRUE; 
     1681                } 
    16681682 
    16691683                case EF_RING_ACID: 
  • trunk/src/list-effects.h

    r899 r903  
    224224EFFECT(SHROOM_STONE,     FALSE, "turns your skin to stone briefly, which grants an extra 40AC but slows you down") 
    225225EFFECT(SHROOM_DEBILITY,  FALSE, "restores some mana but also drains either your strength or constitution") 
    226 EFFECT(SHROOM_MANIA,     FALSE, "makes you subject to manic fits") 
     226EFFECT(SHROOM_SPRINTING, FALSE, "hastes you for a while, but then makes you slower for a while afterward") 
     227EFFECT(SHROOM_PURGING,  FALSE, "makes you very hungry but restores constitution and strength") 
    227228EFFECT(RING_ACID,      TRUE,  "grants acid resistance for d20+20 turns and creates an acid ball of damage 70") 
    228229EFFECT(RING_FLAMES,    TRUE,  "grants fire resistance for d20+20 turns and creates a fire ball of damage 80")