1
0
forked from noxious/server

More TP work

This commit is contained in:
2024-08-26 21:22:03 +02:00
parent e8d100e063
commit 1aa3d1a208
5 changed files with 68 additions and 49 deletions

View File

@ -10,6 +10,8 @@ export class CharacterMoveService {
public async updatePosition(character: ExtendedCharacter, position: { x: number; y: number }, newZoneId?: number): Promise<void> {
const oldZoneId = character.zoneId
console.log('newZoneId', newZoneId)
Object.assign(character, {
positionX: position.x,
positionY: position.y,
@ -30,7 +32,7 @@ export class CharacterMoveService {
positionX: position.x,
positionY: position.y,
rotation: character.rotation,
zoneId: character.zoneId
zoneId: newZoneId
}
})
}