… | |
… | |
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 | |