diff --git a/src/components/gameMaster/mapEditor/mapPartials/MapEventTiles.vue b/src/components/gameMaster/mapEditor/mapPartials/MapEventTiles.vue index cada9d0..e4bc7d8 100644 --- a/src/components/gameMaster/mapEditor/mapPartials/MapEventTiles.vue +++ b/src/components/gameMaster/mapEditor/mapPartials/MapEventTiles.vue @@ -88,20 +88,17 @@ function pencil(pointer: Phaser.Input.Pointer, map: MapT) { if (existingEventTile) return // If teleport, check if there is a selected map - if (mapEditor.drawMode.value === 'teleport' && !mapEditor.teleportSettings.value.toMapId) return - - console.log(mapEditor.teleportSettings.value.toMapId) + if (mapEditor.drawMode.value === 'teleport' && !mapEditor.teleportSettings.value.toMap) return const newEventTile = { id: uuidv4() as UUID, - map: map.id, type: mapEditor.drawMode.value === 'blocking tile' ? MapEventTileType.BLOCK : MapEventTileType.TELEPORT, positionX: tile.x, positionY: tile.y, teleport: mapEditor.drawMode.value === 'teleport' ? { - toMapId: mapEditor.teleportSettings.value.toMapId, + toMap: mapEditor.teleportSettings.value.toMap, toPositionX: mapEditor.teleportSettings.value.toPositionX, toPositionY: mapEditor.teleportSettings.value.toPositionY, toRotation: mapEditor.teleportSettings.value.toRotation diff --git a/src/components/gameMaster/mapEditor/mapPartials/PlacedMapObjects.vue b/src/components/gameMaster/mapEditor/mapPartials/PlacedMapObjects.vue index 70919d5..2ba4122 100644 --- a/src/components/gameMaster/mapEditor/mapPartials/PlacedMapObjects.vue +++ b/src/components/gameMaster/mapEditor/mapPartials/PlacedMapObjects.vue @@ -129,7 +129,7 @@ function moveMapObject(id: string, map: MapT) { const tile = getTile(props.tileMap, pointer.worldX, pointer.worldY) if (!tile) return - console.log(id) + map.placedMapObjects.map((placed) => { if (placed.id === id) { placed.positionX = tile.x diff --git a/src/components/gameMaster/mapEditor/partials/TeleportModal.vue b/src/components/gameMaster/mapEditor/partials/TeleportModal.vue index cb04533..2bd7a35 100644 --- a/src/components/gameMaster/mapEditor/partials/TeleportModal.vue +++ b/src/components/gameMaster/mapEditor/partials/TeleportModal.vue @@ -26,7 +26,7 @@