From 96d3d98d307e848b0375ca8af10dcf0906d46eb4 Mon Sep 17 00:00:00 2001 From: Eltrac Date: Fri, 14 Mar 2025 20:32:50 +0800 Subject: fix: bouncy heart drops broken heart in wrong location --- objects/Shot.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'objects/Shot.lua') diff --git a/objects/Shot.lua b/objects/Shot.lua index e479b2a..6c7f7fb 100644 --- a/objects/Shot.lua +++ b/objects/Shot.lua @@ -93,7 +93,7 @@ function Shot:onContact(other, contact) else dieOnThisContact = true if math.random(3) == 1 then - local lootItem = Loot:new("brokenheart", other.x, other.y) + local lootItem = Loot:new("brokenheart", self.x, self.y) table.insert(G.currentRoom.objects.loots, lootItem) end end -- cgit v1.2.3