From aee875f4b42a5961ba8db063008f5b975651a3f8 Mon Sep 17 00:00:00 2001 From: Nathan Date: Thu, 24 Oct 2024 15:30:33 +0100 Subject: [PATCH] Add itemId to debug tool on rightclick Just makes it easier, don't need to inspect element then enter the id anymore --- public/board.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/board.js b/public/board.js index 964329b..782d30a 100644 --- a/public/board.js +++ b/public/board.js @@ -1266,6 +1266,7 @@ canvas.addEventListener('contextmenu', function(event) { // Compare the event XY position to the item if(clickableCheck(x,y,itemKey)){ console.log('itemId: '+itemKey); + document.getElementById('effectTargetId').value = itemKey; // Only want to happen once (for now) // Maybe in future add to hand would trigger another event if there's an effect?