Ticket #783: paralysis-non-cumulative.patch

File paralysis-non-cumulative.patch, 829 bytes (added by rhinocesaurus, 10 years ago)
  • src/player/timed.c

     
    5151                        NULL, NULL, 
    5252                        PR_MAP, PU_FORGET_VIEW | PU_UPDATE_VIEW | PU_MONSTERS, MSG_BLIND }, 
    5353        { "You are paralysed!", "You can move again.", 
    54                         "You are more paralysed!", "You are less paralysed.", 
     54                        NULL, NULL, 
    5555                        0, 0, MSG_PARALYZED }, 
    5656        { "You are confused!", "You are no longer confused.", 
    5757                        "You are more confused!", "You feel a little less confused.", 
     
    212212        /* Check we have a valid effect */ 
    213213        if ((idx < 0) || (idx > TMD_MAX)) return FALSE; 
    214214 
     215        /* Paralysis should be non-cumulative */ 
     216        if (idx == TMD_PARALYZED && p_ptr->timed[TMD_PARALYZED] > 0) 
     217                return FALSE; 
     218 
    215219        /* Set v */ 
    216220        v = v + p_ptr->timed[idx]; 
    217221