Deleting dungeons is still buggy

This commit is contained in:
StevenRS11
2013-10-09 19:07:58 -04:00
parent b9bd42a345
commit 9420b8edf2
4 changed files with 26 additions and 4 deletions

View File

@@ -453,7 +453,6 @@ public abstract class NewDimData
{
throw new IllegalArgumentException("orientation must be between 0 and 3, inclusive.");
}
setDestination(incoming, originX, originY, originZ);
this.origin = incoming.destination();
this.orientation = orientation;
@@ -461,6 +460,16 @@ public abstract class NewDimData
this.packDepth = calculatePackDepth(parent, dungeon);
}
/**
* effectivly moves the dungeon to the 'top' of a chain as far as dungeon generation is concerend.
*/
public void setParentToRoot()
{
this.depth=1;
this.parent=this.root;
this.root.children.add(this);
}
public static int calculatePackDepth(NewDimData parent, DungeonData current)
{
DungeonData predecessor = parent.dungeon();