Browse Source

dungeon generation

lakebane-jobs
FatBoy-DOTC 8 hours ago
parent
commit
22c975d251
  1. 20
      src/engine/Dungeons/DungeonManager.java

20
src/engine/Dungeons/DungeonManager.java

@ -113,17 +113,13 @@ public class DungeonManager { @@ -113,17 +113,13 @@ public class DungeonManager {
Vector3fImmutable loc3 = new Vector3fImmutable(-128,0,128);
Vector3fImmutable loc4 = new Vector3fImmutable(128,0,-128);
Building building1 = DbManager.BuildingQueries.CREATE_BUILDING(parent.getObjectUUID(),1,"Building",450800,loc1,1.0f,5000, Enum.ProtectionState.NPC,0,1,null,450800,0f,0f);
Building building2 = DbManager.BuildingQueries.CREATE_BUILDING(parent.getObjectUUID(),1,"Building",450800,loc2,1.0f,5000, Enum.ProtectionState.NPC,0,1,null,450800,0f,0f);
Building building3 = DbManager.BuildingQueries.CREATE_BUILDING(parent.getObjectUUID(),1,"Building",450800,loc3,1.0f,5000, Enum.ProtectionState.NPC,0,1,null,450800,0f,0f);
Building building4 = DbManager.BuildingQueries.CREATE_BUILDING(parent.getObjectUUID(),1,"Building",450800,loc4,1.0f,5000, Enum.ProtectionState.NPC,0,1,null,450800,0f,0f);
building1.setLoc(loc1);
building2.setLoc(loc2);
building3.setLoc(loc3);
building4.setLoc(loc4);
WorldGrid.addObject(building1,loc1.x,loc1.z);
WorldGrid.addObject(building2,loc2.x,loc2.z);
WorldGrid.addObject(building3,loc3.x,loc3.z);
WorldGrid.addObject(building4,loc4.x,loc4.z);
Building building1 = DbManager.BuildingQueries.CREATE_BUILDING(993,1,"Building",450750,loc1,1.0f,5000, Enum.ProtectionState.NPC,0,1,null,450750,0f,0f);
Building building2 = DbManager.BuildingQueries.CREATE_BUILDING(993,1,"Building",450750,loc2,1.0f,5000, Enum.ProtectionState.NPC,0,1,null,450750,0f,0f);
Building building3 = DbManager.BuildingQueries.CREATE_BUILDING(993,1,"Building",450750,loc3,1.0f,5000, Enum.ProtectionState.NPC,0,1,null,450750,0f,0f);
Building building4 = DbManager.BuildingQueries.CREATE_BUILDING(993,1,"Building",450750,loc4,1.0f,5000, Enum.ProtectionState.NPC,0,1,null,450750,0f,0f);
WorldGrid.addObject(building1,parent.getLoc().x + loc1.x,parent.getLoc().z + loc1.z);
WorldGrid.addObject(building2,parent.getLoc().x + loc2.x,parent.getLoc().z + loc2.z);
WorldGrid.addObject(building3,parent.getLoc().x + loc3.x,parent.getLoc().z + loc3.z);
WorldGrid.addObject(building4,parent.getLoc().x + loc4.x,parent.getLoc().z + loc4.z);
}
}

Loading…
Cancel
Save