From c1e4465806e0da00126da2bec03d808ce3cf4aad Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 26 Jun 2024 14:14:57 -0400 Subject: [PATCH] v2.5.0: fixed unstable spellbook using the wrong probs for upgrade list --- .../items/artifacts/UnstableSpellbook.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/UnstableSpellbook.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/UnstableSpellbook.java index 1d1a9f13c..af60687f7 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/UnstableSpellbook.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/artifacts/UnstableSpellbook.java @@ -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){