From 611ce01285265e2b2433b6676c678c6426e047bd Mon Sep 17 00:00:00 2001 From: syeyoung Date: Wed, 12 Jan 2022 23:57:59 +0900 Subject: - Fix undisocvered room cnt getting reset to 0 on bossfight - Miniboss not done is now 4 skill point penalty instead of 3 - Revamp skill score calculation so that it's a bit more read-able. --- src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon') diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java index ac8bfb1e..b6089ebd 100755 --- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/MapProcessor.java @@ -218,8 +218,8 @@ public class MapProcessor { private void processMap(byte[] mapData) { int height = (int)((128.0 - topLeftMapPoint.y) / (unitRoomDimension.height + doorDimension.height)); int width = (int) ((128.0 - topLeftMapPoint.x) / (unitRoomDimension.width + doorDimension.height)); - undiscoveredRoom = 0; if (MapUtils.getMapColorAt(mapData,0,0) != 0) return; + undiscoveredRoom = 0; for (int y = 0; y <= height; y++){ for (int x = 0; x <= width; x++) { Point mapPoint = roomPointToMapPoint(new Point(x,y)); -- cgit