summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-14 20:32:50 +0800
committerEltrac <hi@guhub.cn>2025-03-14 20:32:50 +0800
commit96d3d98d307e848b0375ca8af10dcf0906d46eb4 (patch)
tree8d354ef1fbd95184999edbad1a7ea47fa056ab58
parent6bd7ae06587157b081af273e12c9421c489d7935 (diff)
fix: bouncy heart drops broken heart in wrong location
-rw-r--r--objects/Shot.lua2
1 files changed, 1 insertions, 1 deletions
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