You've already forked Arcturus-Morningstar-Extended
mirror of
https://github.com/duckietm/Arcturus-Morningstar-Extended.git
synced 2026-06-20 15:36:17 +00:00
⏪ oepsie removd it
This commit is contained in:
@@ -238,6 +238,22 @@ public class RoomLayout {
|
||||
return this.roomTiles[x][y].relativeHeight();
|
||||
}
|
||||
|
||||
public double getFloorAltitude(int x, int y) {
|
||||
short baseHeight = this.getHeightAtSquare(x, y);
|
||||
int target = baseHeight + 1;
|
||||
|
||||
for (int dy = -1; dy <= 1; dy++) {
|
||||
for (int dx = -1; dx <= 1; dx++) {
|
||||
if (dx == 0 && dy == 0) continue;
|
||||
if (this.getHeightAtSquare(x + dx, y + dy) == target) {
|
||||
return baseHeight + 0.5;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return baseHeight;
|
||||
}
|
||||
|
||||
public RoomTile getTile(short x, short y) {
|
||||
if (this.tileExists(x, y)) {
|
||||
return this.roomTiles[x][y];
|
||||
|
||||
Reference in New Issue
Block a user