From 31af8e946d8009cf1580c150538d9d48d133563d Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Wed, 27 May 2015 01:40:16 -0400 Subject: [PATCH] v0.3.0a: corrected artifact generation bug --- .../shatteredpixeldungeon/items/Generator.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java index 83b66cec8..0016d33ad 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java @@ -196,7 +196,7 @@ public class Generator { LloydsBeacon.class, EtherealChains.class }; - Category.ARTIFACT.probs = new float[]{ 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0 , 1}; + Category.ARTIFACT.probs = new float[]{ 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1}; Category.SEED.classes = new Class[]{ Firebloom.Seed.class, @@ -354,7 +354,8 @@ public class Generator { //resets artifact probabilities, for new dungeons public static void initArtifacts() { - Category.ARTIFACT.probs = new float[]{ 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0 }; + //FIXME: the duplicated logic here has caused 1 bug so far, should refactor. + Category.ARTIFACT.probs = new float[]{ 0, 1, 0, 1, 0, 1, 1, 1, 1, 0, 0, 0, 1}; spawnedArtifacts = new ArrayList(); }