Crypt Cleanser
Posts: 689
Joined: Saturday, 12th December 2015, 23:54
How Jiyva stat shuffling works
Step 1: assign a "target" for each stat. To start with, the str target will be either 9 or the er of the character's body armour, whichever is higher, and the dex and int targets will be 9. If the character has more total stat points than the sum of these initial targets, then continue to the next steps, otherwise jump straight to "fuzzing" (see below).
Step 2: check the character's skills and assign int points based on them. Sum up all the magic associated skill levels, sum up all the other skill levels, then set the weight of other skills to other skills - (magic skills / 2) or 0, whichever is greater (in other words, if 2/3 or more of skill levels are in magic skills, no weight is given to other skills). Figure out what fraction of total skill weight is in magic skills and assign that fraction of the remaining stat points to int.
Step 3: Assign whatever's left to either str or dex. Strength weight is equal to 10 * er and dex weight is equal to 10 + dodging skill * 10. Assign the appropriate fraction of whatever stat points are left to each stat target. Yes, this means armour encumbrance of 0 always gives a strength target of 9 up to this point.
Step 4: "fuzzing". Every stat target is randomly adjusted by random2(5) - 2, ie up to 2 points in either direction.
Step 5: adjust the stats. For each pair of stats, check if adjusting them will bring the stats closer to the target values, will not drop either the current or base value of a stat below 1, and will not push a stat over the stat cap. Choose one pair of stats that meets the criteria at random and then shuffle the stat points.
Conclusions: lmao
But in all seriousness, Jiyva stat shuffling has the trifecta of being incredibly opaque, relatively easy to abuse if you know how it works, and extremely annoying (at high piety it goes off *constantly* and can mess with your spell failure rates, make you want to swap equipment prior to resting, etc). This has gone mostly ignored for a while, largely because Jiyva is hard to follow and also annoying in a bunch of other ways. Since Jiyva is somewhat likely to get reworked soon and I posted this in dungeon crawling advice rather than gdd I won't bother advocating any solution per se, but I won't miss this one if it goes.
- For this message the author Hellmonk has received thanks: 4
- andrew, nago, Nebukadnezar, petercordia