From 0c7da8a54c097493e291f2420f308e7429e2d192 Mon Sep 17 00:00:00 2001 From: SenseiKiwi Date: Fri, 2 Aug 2013 04:54:24 -0400 Subject: [PATCH] Minor Improvements to DungeonHelper Minor improvements to DungeonHelper. Cleaned up constants a bit and added a new constant. --- .../mod_pocketDim/helpers/DungeonHelper.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java b/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java index 0a280db..a99d503 100644 --- a/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java +++ b/StevenDimDoors/mod_pocketDim/helpers/DungeonHelper.java @@ -35,17 +35,15 @@ public class DungeonHelper private static final String DEFAULT_DOWN_SCHEMATIC_PATH = "/schematics/core/simpleStairsDown.schematic"; private static final String DEFAULT_ERROR_SCHEMATIC_PATH = "/schematics/core/somethingBroke.schematic"; private static final String BUNDLED_DUNGEONS_LIST_PATH = "/schematics/schematics.txt"; + private static final String DUNGEON_CREATION_GUIDE_SOURCE_PATH = "/mods/DimDoors/text/How_to_add_dungeons.txt"; public static final String SCHEMATIC_FILE_EXTENSION = ".schematic"; private static final int DEFAULT_DUNGEON_WEIGHT = 100; public static final int MAX_DUNGEON_WEIGHT = 10000; //Used to prevent overflows and math breaking down private static final int MAX_EXPORT_RADIUS = 50; public static final short MAX_DUNGEON_WIDTH = 2 * MAX_EXPORT_RADIUS + 1; - public static final short MAX_DUNGEON_HEIGHT = 2 * MAX_EXPORT_RADIUS + 1; - public static final short MAX_DUNGEON_LENGTH = 2 * MAX_EXPORT_RADIUS + 1; - - public static final int FABRIC_OF_REALITY_EXPORT_ID = 1973; - public static final int PERMAFABRIC_EXPORT_ID = 220; + public static final short MAX_DUNGEON_HEIGHT = MAX_DUNGEON_WIDTH; + public static final short MAX_DUNGEON_LENGTH = MAX_DUNGEON_WIDTH; private static final String HUB_DUNGEON_TYPE = "Hub"; private static final String TRAP_DUNGEON_TYPE = "Trap"; @@ -145,7 +143,7 @@ public class DungeonHelper File file = new File(properties.CustomSchematicDirectory); if (file.exists() || file.mkdir()) { - copyfile.copyFile("/mods/DimDoors/text/How_to_add_dungeons.txt", file.getAbsolutePath() + "/How_to_add_dungeons.txt"); + copyfile.copyFile(DUNGEON_CREATION_GUIDE_SOURCE_PATH, file.getAbsolutePath() + "/How_to_add_dungeons.txt"); } registerBundledDungeons(); importCustomDungeons(properties.CustomSchematicDirectory);