Progress on Implementing Dungeon Packs
Completed enough of the implementation and integration to compile DD. Some portions of the code are only for testing and will be removed later. The configuration for default dungeons is hardcoded - we can parse config files once we're certain that dungeon chains work. At the moment, dungeons generate but it doesn't seem like the rules we set are being followed properly. Renamed OptimizedRule to DungeonChainRule, and renamed the old DungeonChainRule to DungeonChainRuleDefinition, to match the role of each class better. Added some hax to DungeonGenerator to get packs integrated - the implementation will be much cleaner once the new save format is done.
This commit is contained in:
@@ -54,7 +54,7 @@ public class CommandExportDungeon extends DDCommandBase
|
||||
if (command[1].equalsIgnoreCase("override"))
|
||||
{
|
||||
//Check that the schematic name is a legal name
|
||||
if (DungeonHelper.SchematicNamePattern.matcher(command[0]).matches())
|
||||
if (DungeonHelper.SCHEMATIC_NAME_PATTERN.matcher(command[0]).matches())
|
||||
{
|
||||
//Export the schematic
|
||||
return exportDungeon(sender, command[0]);
|
||||
@@ -85,7 +85,7 @@ public class CommandExportDungeon extends DDCommandBase
|
||||
{
|
||||
return new DDCommandResult("Error: Invalid dungeon type. Please use one of the existing types.");
|
||||
}
|
||||
if (!DungeonHelper.DungeonNamePattern.matcher(command[1]).matches())
|
||||
if (!DungeonHelper.DUNGEON_NAME_PATTERN.matcher(command[1]).matches())
|
||||
{
|
||||
return new DDCommandResult("Error: Invalid dungeon name. Please use only letters, numbers, and dashes.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user