aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/kr/syeyoung
diff options
context:
space:
mode:
authorsyeyoung <cyong06@naver.com>2021-02-03 00:31:31 +0900
committersyeyoung <cyong06@naver.com>2021-02-03 00:31:31 +0900
commit6098dbcd64f45eae2c57e81803cda2888c2e841b (patch)
treedda999b5c94c2d69571c3e365e1410a54c359c34 /src/main/java/kr/syeyoung
parent1004561ee2311c56ad3d24cbb8d601f79e92fe8c (diff)
downloadSkyblock-Dungeons-Guide-6098dbcd64f45eae2c57e81803cda2888c2e841b.tar.gz
Skyblock-Dungeons-Guide-6098dbcd64f45eae2c57e81803cda2888c2e841b.tar.bz2
Skyblock-Dungeons-Guide-6098dbcd64f45eae2c57e81803cda2888c2e841b.zip
bomb defuse solver complete
Diffstat (limited to 'src/main/java/kr/syeyoung')
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/features/FeatureRegistry.java1
-rw-r--r--src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bombdefuse/RoomProcessorBombDefuseSolver.java4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/features/FeatureRegistry.java b/src/main/java/kr/syeyoung/dungeonsguide/features/FeatureRegistry.java
index 8a68ad91..febb5e59 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/features/FeatureRegistry.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/features/FeatureRegistry.java
@@ -55,6 +55,7 @@ public class FeatureRegistry {
public static final SimpleFeature SOLVER_BOX = register(new SimpleFeature("solver", "Box Puzzle Solver (Advanced)", "Calculates solution for box puzzle room, and displays it to user", "solver.box"));
public static final SimpleFeature SOLVER_CREEPER = register(new SimpleFeature("solver", "Creeper Puzzle Solver", "Draws line between prismarine lamps in creeper room", "solver.creeper"));
public static final SimpleFeature SOLVER_TELEPORT = register(new SimpleFeature("solver", "Teleport Puzzle Solver", "Shows teleport pads you've visited in a teleport maze room", "solver.teleport"));
+ public static final SimpleFeature SOLVER_BOMBDEFUSE = register(new SimpleFeature("solver", "Bomb Defuse Puzzle Solver", "Communicates with others dg using key 'F' for solutions and displays it", "solver.bombdefuse"));
public static final FeatureTooltipDungeonStat ETC_DUNGEONSTAT = register(new FeatureTooltipDungeonStat());
public static final FeatureTooltipPrice ETC_PRICE = register(new FeatureTooltipPrice());
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bombdefuse/RoomProcessorBombDefuseSolver.java b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bombdefuse/RoomProcessorBombDefuseSolver.java
index 1bb30757..4333be0a 100644
--- a/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bombdefuse/RoomProcessorBombDefuseSolver.java
+++ b/src/main/java/kr/syeyoung/dungeonsguide/roomprocessor/bombdefuse/RoomProcessorBombDefuseSolver.java
@@ -67,6 +67,10 @@ public class RoomProcessorBombDefuseSolver extends GeneralRoomProcessor {
public RoomProcessorBombDefuseSolver(DungeonRoom dungeonRoom) {
super(dungeonRoom);
+ if (!FeatureRegistry.SOLVER_BOMBDEFUSE.isEnabled()) {
+ bugged = true;
+ return;
+ }
chambers.add(new ChamberSet(
buildChamber((OffsetPointSet) dungeonRoom.getDungeonRoomInfo().getProperties().get("L1"), 1, true),
buildChamber((OffsetPointSet) dungeonRoom.getDungeonRoomInfo().getProperties().get("R1"), 1, true), null