… | … | ||
---|---|---|---|
57 | { | 57 | { |
58 | LOG (llevError, "resurrect_player: race set to %s, but no treasurelist of that name!\n", &spell->race); | 58 | LOG (llevError, "resurrect_player: race set to %s, but no treasurelist of that name!\n", &spell->race); |
59 | return 0; | 59 | return 0; |
60 | } | 60 | } |
61 | 61 | ||
62 | value = RANDOM () % tl->total_chance; | 62 | value = rndm (tl->total_chance); |
63 | 63 | ||
64 | for (t = tl->items; t; t = t->next) | 64 | for (t = tl->items; t; t = t->next) |
65 | { | 65 | { |
66 | value -= t->chance; | 66 | value -= t->chance; |
67 | if (value < 0) | 67 | if (value < 0) |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |