fixed save breaker

This commit is contained in:
StevenRS11 2013-06-11 13:21:39 -04:00
parent 43ead374cc
commit 68d2bde10a
6 changed files with 90 additions and 90 deletions

View file

@ -25,7 +25,7 @@ public class DimData implements Serializable
public boolean hasBeenFilled=false; public boolean hasBeenFilled=false;
public boolean hasDoor=false; public boolean hasDoor=false;
public boolean isDimRandomRift=false; public boolean isDimRandomRift=false;
public DungeonData dungeonGenerator = null; public DungeonGenerator dungeonGenerator = null;
//public boolean isPrivatePocket = false; //public boolean isPrivatePocket = false;
public HashMap<Integer, HashMap<Integer, HashMap<Integer, LinkData>>> linksInThisDim=new HashMap(); public HashMap<Integer, HashMap<Integer, HashMap<Integer, LinkData>>> linksInThisDim=new HashMap();
HashMap<Integer, LinkData> dimX; HashMap<Integer, LinkData> dimX;

View file

@ -9,7 +9,7 @@ import net.minecraft.world.World;
public class DungeonData implements Serializable public class DungeonGenerator implements Serializable
{ {
public int weight; public int weight;
@ -26,7 +26,7 @@ public class DungeonData implements Serializable
public DungeonData(int weight, String schematicPath, Boolean isOpen) public DungeonGenerator(int weight, String schematicPath, Boolean isOpen)
{ {
this.weight=weight; this.weight=weight;
this.schematicPath=schematicPath; this.schematicPath=schematicPath;

View file

@ -5,7 +5,7 @@ import java.util.ArrayList;
import cpw.mods.fml.common.FMLCommonHandler; import cpw.mods.fml.common.FMLCommonHandler;
import StevenDimDoors.mod_pocketDim.DimData; import StevenDimDoors.mod_pocketDim.DimData;
import StevenDimDoors.mod_pocketDim.DungeonData; import StevenDimDoors.mod_pocketDim.DungeonGenerator;
import StevenDimDoors.mod_pocketDim.LinkData; import StevenDimDoors.mod_pocketDim.LinkData;
import StevenDimDoors.mod_pocketDim.mod_pocketDim; import StevenDimDoors.mod_pocketDim.mod_pocketDim;
import StevenDimDoors.mod_pocketDim.helpers.dimHelper; import StevenDimDoors.mod_pocketDim.helpers.dimHelper;
@ -54,7 +54,7 @@ public class CommandAddDungeonRift extends CommandBase
} }
else if(var2.length!=0&&var2[0].equals("list")) else if(var2.length!=0&&var2[0].equals("list"))
{ {
for(DungeonData dungeonGen : mod_pocketDim.dungeonHelper.registeredDungeons) for(DungeonGenerator dungeonGen : mod_pocketDim.dungeonHelper.registeredDungeons)
{ {
String dungeonName =dungeonGen.schematicPath; String dungeonName =dungeonGen.schematicPath;
if(dungeonName.contains("DimDoors_Custom_schematics")) if(dungeonName.contains("DimDoors_Custom_schematics"))
@ -69,7 +69,7 @@ public class CommandAddDungeonRift extends CommandBase
} }
for(DungeonData dungeonGen : mod_pocketDim.dungeonHelper.customDungeons) for(DungeonGenerator dungeonGen : mod_pocketDim.dungeonHelper.customDungeons)
{ {
String dungeonName =dungeonGen.schematicPath; String dungeonName =dungeonGen.schematicPath;
if(dungeonName.contains("DimDoors_Custom_schematics")) if(dungeonName.contains("DimDoors_Custom_schematics"))
@ -89,7 +89,7 @@ public class CommandAddDungeonRift extends CommandBase
else if(var2.length!=0) else if(var2.length!=0)
{ {
for(DungeonData dungeonGen : mod_pocketDim.dungeonHelper.registeredDungeons) for(DungeonGenerator dungeonGen : mod_pocketDim.dungeonHelper.registeredDungeons)
{ {
String dungeonName =dungeonGen.schematicPath.toLowerCase(); String dungeonName =dungeonGen.schematicPath.toLowerCase();
@ -113,7 +113,7 @@ public class CommandAddDungeonRift extends CommandBase
} }
for(DungeonData dungeonGen : mod_pocketDim.dungeonHelper.customDungeons) for(DungeonGenerator dungeonGen : mod_pocketDim.dungeonHelper.customDungeons)
{ {
String dungeonName =dungeonGen.schematicPath.toLowerCase(); String dungeonName =dungeonGen.schematicPath.toLowerCase();

View file

@ -1,6 +1,6 @@
package StevenDimDoors.mod_pocketDim.commands; package StevenDimDoors.mod_pocketDim.commands;
import StevenDimDoors.mod_pocketDim.DungeonData; import StevenDimDoors.mod_pocketDim.DungeonGenerator;
import StevenDimDoors.mod_pocketDim.mod_pocketDim; import StevenDimDoors.mod_pocketDim.mod_pocketDim;
import StevenDimDoors.mod_pocketDim.helpers.DungeonHelper; import StevenDimDoors.mod_pocketDim.helpers.DungeonHelper;
import StevenDimDoors.mod_pocketDim.helpers.dimHelper; import StevenDimDoors.mod_pocketDim.helpers.dimHelper;
@ -53,7 +53,7 @@ public class CommandEndDungeonCreation extends CommandBase
} }
else if(!player.worldObj.isRemote) else if(!player.worldObj.isRemote)
{ {
DungeonData newDungeon = mod_pocketDim.dungeonHelper.exportDungeon(player.worldObj, x, y, z, mod_pocketDim.schematicContainer+"/"+var2[0]+".schematic"); DungeonGenerator newDungeon = mod_pocketDim.dungeonHelper.exportDungeon(player.worldObj, x, y, z, mod_pocketDim.schematicContainer+"/"+var2[0]+".schematic");
player.sendChatToPlayer("created dungeon schematic in " +mod_pocketDim.schematicContainer+"/"+var2[0]+".schematic"); player.sendChatToPlayer("created dungeon schematic in " +mod_pocketDim.schematicContainer+"/"+var2[0]+".schematic");
mod_pocketDim.dungeonHelper.customDungeons.add(newDungeon); mod_pocketDim.dungeonHelper.customDungeons.add(newDungeon);

View file

@ -8,7 +8,7 @@ import java.util.Random;
import net.minecraft.block.Block; import net.minecraft.block.Block;
import net.minecraft.world.World; import net.minecraft.world.World;
import StevenDimDoors.mod_pocketDim.DungeonData; import StevenDimDoors.mod_pocketDim.DungeonGenerator;
import StevenDimDoors.mod_pocketDim.LinkData; import StevenDimDoors.mod_pocketDim.LinkData;
import StevenDimDoors.mod_pocketDim.mod_pocketDim; import StevenDimDoors.mod_pocketDim.mod_pocketDim;
import StevenDimDoors.mod_pocketDim.helpers.jnbt.ByteArrayTag; import StevenDimDoors.mod_pocketDim.helpers.jnbt.ByteArrayTag;
@ -35,32 +35,32 @@ public class DungeonHelper
public HashMap<Integer, LinkData> customDungeonStatus = new HashMap<Integer, LinkData>(); public HashMap<Integer, LinkData> customDungeonStatus = new HashMap<Integer, LinkData>();
public ArrayList<DungeonData> customDungeons = new ArrayList<DungeonData>(); public ArrayList<DungeonGenerator> customDungeons = new ArrayList<DungeonGenerator>();
public ArrayList<DungeonData> registeredDungeons = new ArrayList<DungeonData>(); public ArrayList<DungeonGenerator> registeredDungeons = new ArrayList<DungeonGenerator>();
public ArrayList<DungeonData> weightedDungeonGenList = new ArrayList<DungeonData>(); public ArrayList<DungeonGenerator> weightedDungeonGenList = new ArrayList<DungeonGenerator>();
public ArrayList<DungeonData> simpleHalls = new ArrayList<DungeonData>(); public ArrayList<DungeonGenerator> simpleHalls = new ArrayList<DungeonGenerator>();
public ArrayList<DungeonData> complexHalls = new ArrayList<DungeonData>(); public ArrayList<DungeonGenerator> complexHalls = new ArrayList<DungeonGenerator>();
public ArrayList<DungeonData> deadEnds = new ArrayList<DungeonData>(); public ArrayList<DungeonGenerator> deadEnds = new ArrayList<DungeonGenerator>();
public ArrayList<DungeonData> hubs = new ArrayList<DungeonData>(); public ArrayList<DungeonGenerator> hubs = new ArrayList<DungeonGenerator>();
public ArrayList<DungeonData> mazes = new ArrayList<DungeonData>(); public ArrayList<DungeonGenerator> mazes = new ArrayList<DungeonGenerator>();
public ArrayList<DungeonData> pistonTraps = new ArrayList<DungeonData>(); public ArrayList<DungeonGenerator> pistonTraps = new ArrayList<DungeonGenerator>();
public ArrayList<DungeonData> exits = new ArrayList<DungeonData>(); public ArrayList<DungeonGenerator> exits = new ArrayList<DungeonGenerator>();
@ -68,7 +68,7 @@ public class DungeonHelper
public ArrayList metadataNextList = new ArrayList(); public ArrayList metadataNextList = new ArrayList();
public DungeonData defaultUp = new DungeonData(0, "/schematic/simpleStairsUp.schematic", true); public DungeonGenerator defaultUp = new DungeonGenerator(0, "/schematic/simpleStairsUp.schematic", true);
public void registerCustomDungeon(File schematicFile) public void registerCustomDungeon(File schematicFile)
{ {
@ -82,7 +82,7 @@ public class DungeonHelper
if(name.length<4) if(name.length<4)
{ {
System.out.println("Importing custom dungeon gen mechanics failed, adding to secondary list"); System.out.println("Importing custom dungeon gen mechanics failed, adding to secondary list");
this.customDungeons.add(new DungeonData(0,schematicFile.getAbsolutePath(),true)); this.customDungeons.add(new DungeonGenerator(0,schematicFile.getAbsolutePath(),true));
System.out.println("Imported "+schematicFile.getName()); System.out.println("Imported "+schematicFile.getName());
@ -101,44 +101,44 @@ public class DungeonHelper
{ {
if(name[0].equals("hub")) if(name[0].equals("hub"))
{ {
this.hubs.add(new DungeonData(weight,path,open)); this.hubs.add(new DungeonGenerator(weight,path,open));
} }
else if(name[0].equals("simpleHall")) else if(name[0].equals("simpleHall"))
{ {
this.simpleHalls.add(new DungeonData(weight,path,open)); this.simpleHalls.add(new DungeonGenerator(weight,path,open));
} }
else if(name[0].equals("complexHall")) else if(name[0].equals("complexHall"))
{ {
this.complexHalls.add(new DungeonData(weight,path,open)); this.complexHalls.add(new DungeonGenerator(weight,path,open));
} }
else if(name[0].equals("trap")) else if(name[0].equals("trap"))
{ {
this.pistonTraps.add(new DungeonData(weight,path,open)); this.pistonTraps.add(new DungeonGenerator(weight,path,open));
} }
else if(name[0].equals("deadEnd")) else if(name[0].equals("deadEnd"))
{ {
this.deadEnds.add(new DungeonData(weight,path,open)); this.deadEnds.add(new DungeonGenerator(weight,path,open));
} }
else if(name[0].equals("exit")) else if(name[0].equals("exit"))
{ {
this.exits.add(new DungeonData(weight,path,open)); this.exits.add(new DungeonGenerator(weight,path,open));
} }
else if(name[0].equals("mazes")) else if(name[0].equals("mazes"))
{ {
this.mazes.add(new DungeonData(weight,path,open)); this.mazes.add(new DungeonGenerator(weight,path,open));
} }
count++; count++;
this.weightedDungeonGenList.add(new DungeonData(weight,path,open)); this.weightedDungeonGenList.add(new DungeonGenerator(weight,path,open));
} }
this.registeredDungeons.add(new DungeonData(weight,path,open)); this.registeredDungeons.add(new DungeonGenerator(weight,path,open));
System.out.println("Imported "+schematicFile.getName()); System.out.println("Imported "+schematicFile.getName());
} }
@ -215,73 +215,73 @@ public class DungeonHelper
public void registerBaseDungeons() public void registerBaseDungeons()
{ {
this.hubs.add(new DungeonData(0, "/schematics/4WayBasicHall.schematic", false)); this.hubs.add(new DungeonGenerator(0, "/schematics/4WayBasicHall.schematic", false));
this.hubs.add(new DungeonData(0, "/schematics/4WayBasicHall.schematic", false)); this.hubs.add(new DungeonGenerator(0, "/schematics/4WayBasicHall.schematic", false));
this.hubs.add(new DungeonData(0, "/schematics/doorTotemRuins.schematic", true)); this.hubs.add(new DungeonGenerator(0, "/schematics/doorTotemRuins.schematic", true));
this.hubs.add(new DungeonData(0, "/schematics/hallwayTrapRooms1.schematic", false)); this.hubs.add(new DungeonGenerator(0, "/schematics/hallwayTrapRooms1.schematic", false));
this.hubs.add(new DungeonData(0, "/schematics/longDoorHallway.schematic", false)); this.hubs.add(new DungeonGenerator(0, "/schematics/longDoorHallway.schematic", false));
this.hubs.add(new DungeonData(0, "/schematics/smallRotundaWithExit.schematic", false)); this.hubs.add(new DungeonGenerator(0, "/schematics/smallRotundaWithExit.schematic", false));
this.hubs.add(new DungeonData(0, "/schematics/fortRuins.schematic", true)); this.hubs.add(new DungeonGenerator(0, "/schematics/fortRuins.schematic", true));
this.hubs.add(new DungeonData(0, "/schematics/4WayHallExit.schematic", false)); this.hubs.add(new DungeonGenerator(0, "/schematics/4WayHallExit.schematic", false));
this.hubs.add(new DungeonData(0, "/schematics/4WayHallExit.schematic", false)); this.hubs.add(new DungeonGenerator(0, "/schematics/4WayHallExit.schematic", false));
this.simpleHalls.add(new DungeonData(0, "/schematics/collapsedSingleTunnel1.schematic", false)); this.simpleHalls.add(new DungeonGenerator(0, "/schematics/collapsedSingleTunnel1.schematic", false));
this.simpleHalls.add(new DungeonData(0, "/schematics/singleStraightHall1.schematic", false)); this.simpleHalls.add(new DungeonGenerator(0, "/schematics/singleStraightHall1.schematic", false));
this.simpleHalls.add(new DungeonData(0, "/schematics/smallBranchWithExit.schematic", false)); this.simpleHalls.add(new DungeonGenerator(0, "/schematics/smallBranchWithExit.schematic", false));
this.simpleHalls.add(new DungeonData(0, "/schematics/smallSimpleLeft.schematic", false)); this.simpleHalls.add(new DungeonGenerator(0, "/schematics/smallSimpleLeft.schematic", false));
this.simpleHalls.add(new DungeonData(0, "/schematics/smallSimpleRight.schematic", false)); this.simpleHalls.add(new DungeonGenerator(0, "/schematics/smallSimpleRight.schematic", false));
this.simpleHalls.add(new DungeonData(0, "/schematics/simpleStairsUp.schematic", false)); this.simpleHalls.add(new DungeonGenerator(0, "/schematics/simpleStairsUp.schematic", false));
this.simpleHalls.add(new DungeonData(0, "/schematics/simpleStairsDown.schematic", false)); this.simpleHalls.add(new DungeonGenerator(0, "/schematics/simpleStairsDown.schematic", false));
this.simpleHalls.add(new DungeonData(0, "/schematics/simpleSmallT1.schematic", false)); this.simpleHalls.add(new DungeonGenerator(0, "/schematics/simpleSmallT1.schematic", false));
this.complexHalls.add(new DungeonData(0, "/schematics/brokenPillarsO.schematic", true)); this.complexHalls.add(new DungeonGenerator(0, "/schematics/brokenPillarsO.schematic", true));
this.complexHalls.add(new DungeonData(0, "/schematics/buggyTopEntry1.schematic", true)); this.complexHalls.add(new DungeonGenerator(0, "/schematics/buggyTopEntry1.schematic", true));
this.complexHalls.add(new DungeonData(0, "/schematics/exitRuinsWithHiddenDoor.schematic", true)); this.complexHalls.add(new DungeonGenerator(0, "/schematics/exitRuinsWithHiddenDoor.schematic", true));
this.complexHalls.add(new DungeonData(0, "/schematics/hallwayHiddenTreasure.schematic", false)); this.complexHalls.add(new DungeonGenerator(0, "/schematics/hallwayHiddenTreasure.schematic", false));
this.complexHalls.add(new DungeonData(0, "/schematics/mediumPillarStairs.schematic", true)); this.complexHalls.add(new DungeonGenerator(0, "/schematics/mediumPillarStairs.schematic", true));
this.complexHalls.add(new DungeonData(0, "/schematics/ruinsO.schematic", true)); this.complexHalls.add(new DungeonGenerator(0, "/schematics/ruinsO.schematic", true));
this.complexHalls.add(new DungeonData(0, "/schematics/pitStairs.schematic", true)); this.complexHalls.add(new DungeonGenerator(0, "/schematics/pitStairs.schematic", true));
this.deadEnds.add(new DungeonData(0, "/schematics/azersDungeonO.schematic", false)); this.deadEnds.add(new DungeonGenerator(0, "/schematics/azersDungeonO.schematic", false));
this.deadEnds.add(new DungeonData(0, "/schematics/diamondTowerTemple1.schematic", true)); this.deadEnds.add(new DungeonGenerator(0, "/schematics/diamondTowerTemple1.schematic", true));
this.deadEnds.add(new DungeonData(0, "/schematics/fallingTrapO.schematic", false)); this.deadEnds.add(new DungeonGenerator(0, "/schematics/fallingTrapO.schematic", false));
this.deadEnds.add(new DungeonData(0, "/schematics/hiddenStaircaseO.schematic", true)); this.deadEnds.add(new DungeonGenerator(0, "/schematics/hiddenStaircaseO.schematic", true));
this.deadEnds.add(new DungeonData(0, "/schematics/lavaTrapO.schematic", true)); this.deadEnds.add(new DungeonGenerator(0, "/schematics/lavaTrapO.schematic", true));
this.deadEnds.add(new DungeonData(0, "/schematics/randomTree.schematic", true)); this.deadEnds.add(new DungeonGenerator(0, "/schematics/randomTree.schematic", true));
this.deadEnds.add(new DungeonData(0, "/schematics/smallHiddenTowerO.schematic", true)); this.deadEnds.add(new DungeonGenerator(0, "/schematics/smallHiddenTowerO.schematic", true));
this.deadEnds.add(new DungeonData(0, "/schematics/smallSilverfishRoom.schematic", false)); this.deadEnds.add(new DungeonGenerator(0, "/schematics/smallSilverfishRoom.schematic", false));
this.deadEnds.add(new DungeonData(0, "/schematics/tntTrapO.schematic", false)); this.deadEnds.add(new DungeonGenerator(0, "/schematics/tntTrapO.schematic", false));
this.deadEnds.add(new DungeonData(0, "/schematics/smallDesert.schematic", true)); this.deadEnds.add(new DungeonGenerator(0, "/schematics/smallDesert.schematic", true));
this.deadEnds.add(new DungeonData(0, "/schematics/smallPond.schematic", true)); this.deadEnds.add(new DungeonGenerator(0, "/schematics/smallPond.schematic", true));
this.pistonTraps.add(new DungeonData(0, "/schematics/fakeTNTTrap.schematic", false)); this.pistonTraps.add(new DungeonGenerator(0, "/schematics/fakeTNTTrap.schematic", false));
this.pistonTraps.add(new DungeonData(0, "/schematics/hallwayPitFallTrap.schematic", false)); this.pistonTraps.add(new DungeonGenerator(0, "/schematics/hallwayPitFallTrap.schematic", false));
this.pistonTraps.add(new DungeonData(0, "/schematics/hallwayPitFallTrap.schematic", false)); this.pistonTraps.add(new DungeonGenerator(0, "/schematics/hallwayPitFallTrap.schematic", false));
this.pistonTraps.add(new DungeonData(0, "/schematics/pistonFallRuins.schematic", false)); this.pistonTraps.add(new DungeonGenerator(0, "/schematics/pistonFallRuins.schematic", false));
this.pistonTraps.add(new DungeonData(0, "/schematics/pistonFloorHall.schematic", false)); this.pistonTraps.add(new DungeonGenerator(0, "/schematics/pistonFloorHall.schematic", false));
this.pistonTraps.add(new DungeonData(0, "/schematics/pistonFloorHall.schematic", false)); this.pistonTraps.add(new DungeonGenerator(0, "/schematics/pistonFloorHall.schematic", false));
// this.pistonTraps.add(new DungeonGenerator(0, "/schematics/pistonHallway.schematic", null)); // this.pistonTraps.add(new DungeonGenerator(0, "/schematics/pistonHallway.schematic", null));
this.pistonTraps.add(new DungeonData(0, "/schematics/pistonSmasherHall.schematic", false)); this.pistonTraps.add(new DungeonGenerator(0, "/schematics/pistonSmasherHall.schematic", false));
// this.pistonTraps.add(new DungeonGenerator(0, "/schematics/raceTheTNTHall.schematic", false)); // this.pistonTraps.add(new DungeonGenerator(0, "/schematics/raceTheTNTHall.schematic", false));
this.pistonTraps.add(new DungeonData(0, "/schematics/simpleDropHall.schematic", false)); this.pistonTraps.add(new DungeonGenerator(0, "/schematics/simpleDropHall.schematic", false));
this.pistonTraps.add(new DungeonData(0, "/schematics/wallFallcomboPistonHall.schematic", false)); this.pistonTraps.add(new DungeonGenerator(0, "/schematics/wallFallcomboPistonHall.schematic", false));
this.pistonTraps.add(new DungeonData(0, "/schematics/wallFallcomboPistonHall.schematic", false)); this.pistonTraps.add(new DungeonGenerator(0, "/schematics/wallFallcomboPistonHall.schematic", false));
this.pistonTraps.add(new DungeonData(0, "/schematics/lavaPyramid.schematic", true)); this.pistonTraps.add(new DungeonGenerator(0, "/schematics/lavaPyramid.schematic", true));
this.mazes.add(new DungeonData(0, "/schematics/smallMaze1.schematic", false)); this.mazes.add(new DungeonGenerator(0, "/schematics/smallMaze1.schematic", false));
this.mazes.add(new DungeonData(0, "/schematics/smallMultilevelMaze.schematic", false)); this.mazes.add(new DungeonGenerator(0, "/schematics/smallMultilevelMaze.schematic", false));
this.exits.add(new DungeonData(0, "/schematics/exitCube.schematic", true)); this.exits.add(new DungeonGenerator(0, "/schematics/exitCube.schematic", true));
this.exits.add(new DungeonData(0, "/schematics/lockingExitHall.schematic", false)); this.exits.add(new DungeonGenerator(0, "/schematics/lockingExitHall.schematic", false));
this.exits.add(new DungeonData(0, "/schematics/smallExitPrison.schematic", true)); this.exits.add(new DungeonGenerator(0, "/schematics/smallExitPrison.schematic", true));
this.exits.add(new DungeonData(0, "/schematics/lockingExitHall.schematic", false)); this.exits.add(new DungeonGenerator(0, "/schematics/lockingExitHall.schematic", false));
@ -295,7 +295,7 @@ public class DungeonHelper
this.weightedDungeonGenList.addAll(this.complexHalls); this.weightedDungeonGenList.addAll(this.complexHalls);
this.weightedDungeonGenList.addAll(this.hubs); this.weightedDungeonGenList.addAll(this.hubs);
for(DungeonData data : this.weightedDungeonGenList) for(DungeonGenerator data : this.weightedDungeonGenList)
{ {
if(!this.registeredDungeons.contains(data)) if(!this.registeredDungeons.contains(data))
{ {
@ -306,7 +306,7 @@ public class DungeonHelper
} }
public DungeonData exportDungeon(World world, int xI, int yI, int zI, String file) public DungeonGenerator exportDungeon(World world, int xI, int yI, int zI, String file)
{ {
int xMin; int xMin;
@ -430,7 +430,7 @@ public class DungeonHelper
} }
this.registerCustomDungeon(new File(file)); this.registerCustomDungeon(new File(file));
return new DungeonData(0,file,true); return new DungeonGenerator(0,file,true);
} }
@ -438,7 +438,7 @@ public class DungeonHelper
public void generateDungeonlink(LinkData incoming) public void generateDungeonlink(LinkData incoming)
{ {
//DungeonGenerator dungeon = mod_pocketDim.registeredDungeons.get(new Random().nextInt(mod_pocketDim.registeredDungeons.size())); //DungeonGenerator dungeon = mod_pocketDim.registeredDungeons.get(new Random().nextInt(mod_pocketDim.registeredDungeons.size()));
DungeonData dungeon; DungeonGenerator dungeon;
int depth = dimHelper.instance.getDimDepth(incoming.locDimID)+2; int depth = dimHelper.instance.getDimDepth(incoming.locDimID)+2;
int depthWeight = rand.nextInt(depth)+rand.nextInt(depth)-2; int depthWeight = rand.nextInt(depth)+rand.nextInt(depth)-2;

View file

@ -41,9 +41,9 @@ public class MobObelisk extends EntityFlying implements IMob
super(par1World); super(par1World);
this.texture="/mods/DimDoors/textures/mobs/Monolith0.png"; this.texture="/mods/DimDoors/textures/mobs/Monolith0.png";
this.setSize(2F, 8.0F); this.setSize(3F, 9.0F);
this.noClip=true; this.noClip=true;
this.scaleFactor= (float) (rand.nextDouble()+1); this.scaleFactor= (float) ((rand.nextDouble()/2)+1);
this.aggroMax=rand.nextInt(245)+200; this.aggroMax=rand.nextInt(245)+200;