From a42ccd3b6ca738d4aaefd1da9450761b0c376801 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 9 Dec 2014 01:40:58 -0500 Subject: [PATCH] v0.2.3: tied new artifacts into item generation. --- .../shatteredpixeldungeon/items/Generator.java | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java index e975d415d..ab2dc76ec 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java @@ -19,6 +19,7 @@ package com.shatteredpixel.shatteredpixeldungeon.items; import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; +import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.Ghost; import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.Wandmaker.Rotberry; import com.shatteredpixel.shatteredpixeldungeon.items.armor.*; import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.*; @@ -187,8 +188,13 @@ public class Generator { HornOfPlenty.class, MasterThievesArmband.class, SandalsOfNature.class, - TalismanOfForesight.class}; - Category.ARTIFACT.probs = new float[]{ 0, 1, 0, 1, 0, 1, 1 }; + TalismanOfForesight.class, + TimekeepersHourglass.class, + UnstableSpellbook.class, + AlchemistsToolkit.class, + DriedRose.class //starts with no chance of spawning, chance is set directly after beating ghost quest. + }; + Category.ARTIFACT.probs = new float[]{ 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 0 }; Category.SEED.classes = new Class[]{ Firebloom.Seed.class, @@ -342,7 +348,7 @@ public class Generator { //resets artifact probabilities, for new dungeons public static void initArtifacts() { - Category.ARTIFACT.probs = new float[]{ 0, 1, 1, 1, 0, 1, 1 }; + Category.ARTIFACT.probs = new float[]{ 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 0 }; spawnedArtifacts = new ArrayList(); }