diff options
author | Tor Andersson <tor@ccxvii.net> | 2021-06-23 15:02:15 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2022-11-16 19:19:38 +0100 |
commit | 14848399ffa402370274e2e45b4600c0fcb0e1f7 (patch) | |
tree | e03d26877c19b2b45d0be51511e13a6389eaf885 /ui.js | |
parent | ba49b45691c35d4b4a1a484f0b8c26e2dcbad206 (diff) | |
download | crusader-rex-14848399ffa402370274e2e45b4600c0fcb0e1f7.tar.gz |
crusader: Hide tooltip on pool blocks.
Diffstat (limited to 'ui.js')
-rw-r--r-- | ui.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -103,7 +103,8 @@ function block_owner(who) { return BLOCKS[who].owner; } function on_focus_map_block(evt) { let info = BLOCKS[evt.target.block]; - if (info.owner == player || info.owner == ASSASSINS) { + let where = game.location[evt.target.block]; + if ((info.owner == player || info.owner == ASSASSINS) && where != S_POOL && where != F_POOL) { let text = info.name + " "; if (info.move) text += info.move + "-"; |