… | |
… | |
2078 | /* doubled chance for resistance of ability-focus */ |
2078 | /* doubled chance for resistance of ability-focus */ |
2079 | if (i == abil->stats.exp) |
2079 | if (i == abil->stats.exp) |
2080 | chance = MIN (100., chance * 2.); |
2080 | chance = MIN (100., chance * 2.); |
2081 | |
2081 | |
2082 | /* now make the throw and save all winners (Don't insert luck bonus here!) */ |
2082 | /* now make the throw and save all winners (Don't insert luck bonus here!) */ |
2083 | if (rndm (10000) < (int) (chance * 100)) |
2083 | if (rndm (10000) < (unsigned int) (chance * 100)) |
2084 | { |
2084 | { |
2085 | atnr_winner[winners] = i; |
2085 | atnr_winner[winners] = i; |
2086 | winners++; |
2086 | winners++; |
2087 | } |
2087 | } |
2088 | |
2088 | |