mirror of
https://bitbucket.org/grumdrig/pq-web.git
synced 2026-09-29 00:34:00 -06:00
Don't clump stats towards HP Max and MP Max, as is the case in pq.exe
This commit is contained in:
@@ -630,11 +630,11 @@ function WinStat() {
|
|||||||
} else {
|
} else {
|
||||||
// Favor the best stat so it will tend to clump
|
// Favor the best stat so it will tend to clump
|
||||||
var t = 0;
|
var t = 0;
|
||||||
$.each(K.Stats, function (index, key) {
|
$.each(K.PrimeStats, function (index, key) {
|
||||||
t += Square(GetI(Stats, key));
|
t += Square(GetI(Stats, key));
|
||||||
});
|
});
|
||||||
t = Random(t);
|
t = Random(t);
|
||||||
$.each(K.Stats, function (index, key) {
|
$.each(K.PrimeStats, function (index, key) {
|
||||||
i = key;
|
i = key;
|
||||||
t -= Square(GetI(Stats, key));
|
t -= Square(GetI(Stats, key));
|
||||||
if (t < 0) return false;
|
if (t < 0) return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user