Changeset 362

Show
Ignore:
Timestamp:
07/19/07 16:45:00 (1 year ago)
Author:
ajps
Message:

Fix acid damage of objects to make it a chance rather than a certainty, as per #251.

Files:

Legend:

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

    r194 r362  
    789789                                { 
    790790                                        /* Chance to damage it */ 
    791                                         if (rand_int(100) < perc) 
     791                                        if (rand_int(10000) < perc) 
    792792                                        { 
    793793                                                /* Damage the item */ 
     
    815815                                { 
    816816                                        /* Chance to damage it */ 
    817                                         if (rand_int(100) < perc) 
     817                                        if (rand_int(100000) < perc) 
    818818                                        { 
    819819                                                /* Damage the item */