ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/apply.C
(Generate patch)

Comparing deliantra/server/server/apply.C (file contents):
Revision 1.61 by pippijn, Mon Jan 15 21:06:19 2007 UTC vs.
Revision 1.62 by root, Thu Jan 18 19:42:10 2007 UTC

2286 /* doubled chance for resistance of ability-focus */ 2286 /* doubled chance for resistance of ability-focus */
2287 if (i == abil->stats.exp) 2287 if (i == abil->stats.exp)
2288 chance = MIN (100., chance * 2.); 2288 chance = MIN (100., chance * 2.);
2289 2289
2290 /* now make the throw and save all winners (Don't insert luck bonus here!) */ 2290 /* now make the throw and save all winners (Don't insert luck bonus here!) */
2291 if (RANDOM () % 10000 < (int) (chance * 100)) 2291 if (rndm (10000) < (int) (chance * 100))
2292 { 2292 {
2293 atnr_winner[winners] = i; 2293 atnr_winner[winners] = i;
2294 winners++; 2294 winners++;
2295 } 2295 }
2296 2296

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines