… | |
… | |
1476 | /* now if there are equals at highest level, pick the one with focus, |
1476 | /* now if there are equals at highest level, pick the one with focus, |
1477 | or else at random */ |
1477 | or else at random */ |
1478 | if (atnr_is_dragon_enabled (abil->stats.exp) && abil->resist[abil->stats.exp] >= level) |
1478 | if (atnr_is_dragon_enabled (abil->stats.exp) && abil->resist[abil->stats.exp] >= level) |
1479 | atnr = abil->stats.exp; |
1479 | atnr = abil->stats.exp; |
1480 | |
1480 | |
1481 | level = (int) (level / 5.); |
1481 | level = (int) (level / 25.); |
1482 | |
1482 | |
1483 | /* now set the new title */ |
1483 | /* now set the new title */ |
1484 | if (pl->contr) |
1484 | if (pl->contr) |
1485 | { |
1485 | { |
1486 | if (level == 0) |
1486 | if (level == 0) |