Changeset 375

Show
Ignore:
Timestamp:
07/27/07 11:35:53 (1 year ago)
Author:
takkaria
Message:

Collect Banishment effects into one big lump sum. (fixes #273)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/angband-3.0.8/src/spells2.c

    r360 r375  
    22412241{ 
    22422242        int i; 
     2243        unsigned dam = 0; 
    22432244 
    22442245        char typ; 
     
    22682269 
    22692270                /* Take some damage */ 
    2270                 take_hit(randint(4), "the strain of casting Banishment"); 
    2271         } 
     2271                dam += randint(4); 
     2272        } 
     2273 
     2274        /* Hurt the player */ 
     2275        take_hit(dam, "the strain of casting Banishment"); 
    22722276 
    22732277        /* Update monster list window */ 
     
    22852289{ 
    22862290        int i; 
     2291        unsigned dam = 0; 
    22872292 
    22882293        bool result = FALSE; 
     
    23082313 
    23092314                /* Take some damage */ 
    2310                 take_hit(randint(3), "the strain of casting Mass Banishment"); 
    2311  
    2312                 /* Note effect */ 
    2313                 result = TRUE; 
    2314         } 
     2315                dam += randint(3); 
     2316        } 
     2317 
     2318        /* Hurt the player */ 
     2319        take_hit(dam, "the strain of casting Mass Banishment"); 
     2320 
     2321        /* Calculate result */ 
     2322        result = (dam > 0) ? TRUE : FALSE; 
    23152323 
    23162324        /* Update monster list window */