1
0
forked from noxious/server
This commit is contained in:
2024-08-22 20:00:37 +02:00
parent ff7664bae0
commit c4b50ec811
16 changed files with 97 additions and 80 deletions

View File

@ -63,7 +63,7 @@ class ZoneManager {
const loadedZone = this.loadedZones.find((loadedZone) => {
return loadedZone.zone.id === zoneId
})
if (loadedZone && this.isPositionWalkable(zoneId, character.position_x, character.position_y)) {
if (loadedZone && this.isPositionWalkable(zoneId, character.positionX, character.positionY)) {
loadedZone.characters.push(character)
}
}
@ -114,7 +114,7 @@ class ZoneManager {
// Set the grid values based on the event tiles, these are strings
eventTiles.forEach((eventTile) => {
if (eventTile.type === 'BLOCK') {
grid[eventTile.position_y][eventTile.position_x] = 1
grid[eventTile.positionY][eventTile.positionX] = 1
}
})