v2.5.0: fixed unstable spellbook using the wrong probs for upgrade list

This commit is contained in:
Evan Debenham
2024-06-26 14:14:57 -04:00
parent 6b9940e885
commit c1e4465806

View File

@@ -82,7 +82,7 @@ public class UnstableSpellbook extends Artifact {
super();
Class<?>[] scrollClasses = Generator.Category.SCROLL.classes;
float[] probs = Generator.Category.SCROLL.defaultProbs.clone(); //array of primitives, clone gives deep copy.
float[] probs = Generator.Category.SCROLL.defaultProbsTotal.clone(); //array of primitives, clone gives deep copy.
int i = Random.chances(probs);
while (i != -1){