From 907c51182ea3019b6e850698d3cd3ab7b53d228e Mon Sep 17 00:00:00 2001 From: Evan Debenham Date: Tue, 18 Apr 2017 22:41:22 -0400 Subject: [PATCH] v0.6.0: updated last shop level to use a customized line builder --- .../levels/LastShopLevel.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/LastShopLevel.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/LastShopLevel.java index 190e42baa..42d1d0f1e 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/LastShopLevel.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/levels/LastShopLevel.java @@ -28,11 +28,10 @@ import com.shatteredpixel.shatteredpixeldungeon.actors.mobs.npcs.Imp; import com.shatteredpixel.shatteredpixeldungeon.items.Heap; import com.shatteredpixel.shatteredpixeldungeon.items.Item; import com.shatteredpixel.shatteredpixeldungeon.levels.builders.Builder; +import com.shatteredpixel.shatteredpixeldungeon.levels.builders.LineBuilder; import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.Room; -import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.special.ShopRoom; import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.standard.EntranceRoom; import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.standard.ExitRoom; -import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.standard.FissureRoom; import com.shatteredpixel.shatteredpixeldungeon.levels.rooms.standard.ImpShopRoom; import com.shatteredpixel.shatteredpixeldungeon.messages.Messages; import com.watabou.noosa.Group; @@ -57,6 +56,12 @@ public class LastShopLevel extends RegularLevel { return Assets.WATER_CITY; } + @Override + protected boolean build() { + feeling = Feeling.CHASM; + return super.build(); + } + @Override protected ArrayList initRooms() { ArrayList rooms = new ArrayList<>(); @@ -70,9 +75,10 @@ public class LastShopLevel extends RegularLevel { @Override protected Builder builder() { - feeling = Feeling.CHASM; - //TODO want to use strict line builder here - return super.builder(); + return new LineBuilder() + .setPathVariance(0f) + .setPathLength(1f, new float[]{1}) + .setTunnelLength(new float[]{0, 0, 1}, new float[]{1}); } @Override