From ae46f7bd24c5f115ac427c7db5598069e5280f50 Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Thu, 15 Aug 2024 11:49:22 -0400 Subject: [PATCH] v2.5.0: made cursed wand inter-floor teleport less intense --- .../shatteredpixeldungeon/items/wands/CursedWand.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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();