1
0
forked from noxious/server

MORE IMPROVEMENTS

This commit is contained in:
2024-12-28 19:31:47 +01:00
parent 918f5141fc
commit 6dda79f8b2
6 changed files with 29 additions and 59 deletions

View File

@ -44,7 +44,7 @@ class CharacterService extends BaseService {
return this.findPath(start, end, grid)
}
static calculateRotation(X1: number, Y1: number, X2: number, Y2: number): number {
public calculateRotation(X1: number, Y1: number, X2: number, Y2: number): number {
if (config.ALLOW_DIAGONAL_MOVEMENT) {
// Check diagonal movements
if (X1 > X2 && Y1 > Y2) {