From efef1e65c9a2cb33df085883f5040551ea9b37b9 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Sun, 14 Sep 2014 19:40:04 -0400 Subject: [PATCH] V0.2.0: Added Artifacts to generator drop logic. --- .../shatteredpixeldungeon/items/Generator.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java b/src/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java index 2a39279ce..eea4c09e6 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/items/Generator.java @@ -23,6 +23,7 @@ import com.shatteredpixel.shatteredpixeldungeon.Dungeon; import com.shatteredpixel.shatteredpixeldungeon.actors.hero.Hero; import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.Wandmaker.Rotberry; import com.shatteredpixel.shatteredpixeldungeon.items.armor.*; +import com.shatteredpixel.shatteredpixeldungeon.items.artifacts.*; import com.shatteredpixel.shatteredpixeldungeon.items.bags.Bag; import com.shatteredpixel.shatteredpixeldungeon.items.food.Food; import com.shatteredpixel.shatteredpixeldungeon.items.food.MysteryMeat; @@ -46,6 +47,7 @@ public class Generator { SCROLL ( 40, Scroll.class ), WAND ( 4, Wand.class ), RING ( 2, Ring.class ), + ARTIFACT( 3, Artifact.class), SEED ( 5, Plant.Seed.class ), FOOD ( 0, Food.class ), GOLD ( 50, Gold.class ); @@ -174,6 +176,17 @@ public class Generator { RingOfTenacity.class, RingOfWealth.class}; Category.RING.probs = new float[]{ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1 }; + + Category.ARTIFACT.classes = new Class[]{ + CapeOfThorns.class, + ChaliceOfBlood.class, + CloakOfShadows.class, + HornOfPlenty.class, + MasterThievesArmband.class, + SandalsOfNature.class, + TalismanOfForesight.class, + }; + Category.ARTIFACT.probs = new float[]{ 0, 1, 1, 1, 0, 1, 1 }; Category.SEED.classes = new Class[]{ Firebloom.Seed.class,