@@ -32,10 +32,10 @@ Dictionary TerrainGen::generate(
32
32
//
33
33
// Produce a 2x Grid for the Data Grid
34
34
//
35
- // TODO Ensure Width & Height are divisable by BlockSize / Error Catching
36
35
int widthx2 = width * 2 ;
37
36
int heightx2 = height * 2 ;
38
37
38
+ // TODO : Fix blocksize so it doesn't cause errors
39
39
//
40
40
// Noise Conversion Variables
41
41
//
@@ -893,6 +893,8 @@ Dictionary TerrainGen::generate(
893
893
// Cliff's & Ramp's Corner
894
894
// -------------------------//
895
895
896
+ // TODO : Ramp Corner needs a Ground Tile placed one elevation below it
897
+
896
898
// Corner EAST
897
899
// +----+----+ +---+---+
898
900
// | n1 | n2 | | 1 | 1 |
@@ -1257,6 +1259,8 @@ Dictionary TerrainGen::generate(
1257
1259
// }
1258
1260
// }
1259
1261
1262
+ //
1263
+ //
1260
1264
//
1261
1265
// Phase 2 : Determine the Tile's Rotation
1262
1266
//
@@ -1325,6 +1329,15 @@ Dictionary TerrainGen::generate(
1325
1329
int nwHeight = safe_height (x - 1 , y + 1 , c_height);
1326
1330
int nwTile = safe_tile_at (x - 1 , y + 1 ); // m1
1327
1331
1332
+ // +----+----+ +----+----+
1333
+ // | n1 | n2 | | g1 | r2 |
1334
+ // +----+----+ +----+----+
1335
+ // | n3 | n4 | | r2 | g2 |
1336
+ // +----+----+ +----+----+
1337
+ //
1338
+ // ? : Above is an edge case that needs fixed
1339
+ // TODO : Replace the Ramps in this situation with CLiff edges using the orientation of the ramp's
1340
+
1328
1341
if (tile_id == RAMP || tile_id == CLIFF || tile_id == WATER_EDGE) {
1329
1342
// +----+----+----+
1330
1343
// | m1 | m2 | m3 |
@@ -1491,6 +1504,11 @@ Dictionary TerrainGen::generate(
1491
1504
}
1492
1505
}
1493
1506
1507
+ if (tile_id == RAMP_CORNER) {
1508
+ // Place Ground under Ramp Tiles
1509
+ myGridMap->set_cell_item (Vector3i (x, c_height - 1 , y), GROUND, rotation_val);
1510
+ }
1511
+
1494
1512
myGridMap->set_cell_item (Vector3i (x, c_height, y), tile_id, rotation_val);
1495
1513
}
1496
1514
}
0 commit comments