From 31c91a4441fff0e24534d5004be809ed55e6b5f6 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 28 Apr 2023 01:43:21 +0200 Subject: Fix Cultivate placement (only in Rally _Department_). --- play.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'play.js') diff --git a/play.js b/play.js index d870438..cbac289 100644 --- a/play.js +++ b/play.js @@ -364,7 +364,7 @@ function create(t, p, ...c) { function register_action(e, action, id) { e.my_action = action e.my_id = id - e.onclick = on_click_action + e.onmousedown = on_click_action } function is_action(action, arg) { @@ -580,7 +580,7 @@ function init_ui() { my_id: id, my_x_offset: x, my_y_offset: y, - onclick: on_click_action + onmousedown: on_click_action }) document.getElementById("pieces").appendChild(e) return e @@ -1421,7 +1421,7 @@ function sub_card(match, p1) { function sub_space(match, p1) { let x = p1 | 0 let n = data.space_name[x] - return `${n}` + return `${n}` } function on_log(text) { -- cgit v1.2.3