diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java index ade72a121..ea452c631 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/items/wands/CursedWand.java @@ -557,9 +557,12 @@ public class CursedWand { public boolean effect(Item origin, Char user, Ballistica bolt, boolean positiveOnly) { if (!positiveOnly && Dungeon.depth > 1 && Dungeon.interfloorTeleportAllowed() && user == Dungeon.hero) { - //each depth has 1 more weight than the previous depth. + //starting from 10 floors up (or floor 1), each floor has 1 more weight float[] depths = new float[Dungeon.depth-1]; - for (int i = 1; i < Dungeon.depth; i++) depths[i-1] = i; + int start = Math.max(1, Dungeon.depth-10); + for (int i = start; i < Dungeon.depth; i++) { + depths[i-1] = i-start+1; + } int depth = 1+Random.chances(depths); Level.beforeTransition();