From c2a978e315b869fde5a344aa065c6a0eaaafe795 Mon Sep 17 00:00:00 2001 From: Nyeogmi Date: Wed, 14 Feb 2024 16:29:49 -0800 Subject: [PATCH] Grabbed cards float --- cursor.lua | 4 ++-- watcher.lua | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cursor.lua b/cursor.lua index d9a3980..f11f3d1 100644 --- a/cursor.lua +++ b/cursor.lua @@ -172,10 +172,10 @@ function cursor:draw_at(l,i) if (not_moving) ix=#self.grabbed_slots-i2 local card=self.board.slots[slot]:peek(ix) - local x,y=l:place_card(i+i2) + local x,y=l:place_card(i+i2+1) local card_fg=self.ruleset.deck:draw_card(x,y,card,{rotate=l.rotated}) local fg=card_fg - if (i2==1) draw_layout_hint(l,i+i2,9,false) + if (i2==1) draw_layout_hint(l,i+i2+1,9,false) end end diff --git a/watcher.lua b/watcher.lua index f3a8d45..d74bd84 100644 --- a/watcher.lua +++ b/watcher.lua @@ -71,7 +71,7 @@ function tutorial_grab:draw(board,layouts) text="🅾️" else layout=layouts:slot(self.dst) - i=#board.slots[self.dst].contents+1 + i=#board.slots[self.dst].contents+2 draw_layout_hint(layout,i,15,false,true) text="🅾️" end