Commit 45ab6380 authored by Lucas Delcros's avatar Lucas Delcros

Reduced proba of lacs to 0.2

parent 9d4f9ffe
......@@ -181,7 +181,7 @@ public final class MapBuilder implements Serializable{
for (Surface room : rooms) {
fillSurfaceWith(map, room, TileType.GROUND);
addWaterRandomly(map, room, 1);
addWaterRandomly(map, room, 0.2);
}
for (Surface corridor : corridors) {
......
......@@ -33,6 +33,8 @@ public class SurfacesMapGeneration implements Serializable{
int idRoom=r.nextInt(rooms.length);
int posY=(rooms[idRoom].j1+rooms[idRoom].j2)/2;
int posX=(rooms[idRoom].i1+rooms[idRoom].i2)/2;
// int posX = rooms[idRoom].j1;
// int posY = rooms[idRoom].i1;
MapPoint startPosition=new MapPoint(posY, posX);
return startPosition;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment