Closed seiyria closed 9 years ago
While doing this, the algorithm should also be tuned in such a fashion:
First, pick all of the blessable stats and categorize them into tiers:
luckPercent - t4, 1%
luck - t3, 5%
gold / xp / hp / mp / % - t2, 10%
intPercent / strPercent / etc - t1, 20%
int / str / etc - t0, 100%
Then, try to bless for each tier in descending order, if there is a stat that can be chosen. If the stat is chosen @ the tier percent, then pick that stat. otherwise, keep going down until you get to t0. you will always pick a t0 stat at random if there is one available.
Additionally, if the lowest tier does not have any entries, then it should always shift to the next tier. Meaning, if there are no t0 stats available, pick a t1 stat. If there are no t1, pick a t2, etc.