aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonTomb.java
diff options
context:
space:
mode:
authorsyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-14 18:14:18 +0900
committersyeyoung <42869671+cyoung06@users.noreply.github.com>2020-12-14 18:14:18 +0900
commit963dada297f02a24ea1a8b0c1dbc2cbfb27e7bd1 (patch)
tree590e6e2f47ed670baba1dc2ca00e1de6362ca566 /src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonTomb.java
parent219f145634b856fdeb35faafa91dbaeeb4b328e2 (diff)
downloadSkyblock-Dungeons-Guide-963dada297f02a24ea1a8b0c1dbc2cbfb27e7bd1.tar.gz
Skyblock-Dungeons-Guide-963dada297f02a24ea1a8b0c1dbc2cbfb27e7bd1.tar.bz2
Skyblock-Dungeons-Guide-963dada297f02a24ea1a8b0c1dbc2cbfb27e7bd1.zip
moar value edits
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonTomb.java')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonTomb.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonTomb.java b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonTomb.java
index 6ae34a71..02b90455 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonTomb.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/dungeon/mechanics/DungeonTomb.java
@@ -30,7 +30,7 @@ public class DungeonTomb implements DungeonMechanic, RouteBlocker {
@Override
public Set<Action> getAction(String state, DungeonRoom dungeonRoom) {
- if (!"broken".equalsIgnoreCase(state)) throw new IllegalArgumentException(state+" is not valid state for tomb");
+ if (!"open".equalsIgnoreCase(state)) throw new IllegalArgumentException(state+" is not valid state for tomb");
if (!isBlocking(dungeonRoom)) {
return Collections.emptySet();
}
@@ -89,6 +89,6 @@ public class DungeonTomb implements DungeonMechanic, RouteBlocker {
Block b = Blocks.air;
if (!secretPoint.getOffsetPointList().isEmpty())
b = secretPoint.getOffsetPointList().get(0).getBlock(dungeonRoom);
- return b == Blocks.air ?"broken" :"blocking";
+ return b == Blocks.air ?"open" :"closed";
}
}