Don't clump stats towards HP Max and MP Max, as is the case in pq.exe

This commit is contained in:
Eric Fredricksen
2022-04-20 12:04:50 -07:00
parent f7d5e837e3
commit 48c42e6a48
+2 -2
View File
@@ -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;