diff options
| author | Eltrac <hi@guhub.cn> | 2025-03-14 20:32:50 +0800 |
|---|---|---|
| committer | Eltrac <hi@guhub.cn> | 2025-03-14 20:32:50 +0800 |
| commit | 96d3d98d307e848b0375ca8af10dcf0906d46eb4 (patch) | |
| tree | 8d354ef1fbd95184999edbad1a7ea47fa056ab58 /objects | |
| parent | 6bd7ae06587157b081af273e12c9421c489d7935 (diff) | |
fix: bouncy heart drops broken heart in wrong location
Diffstat (limited to 'objects')
| -rw-r--r-- | objects/Shot.lua | 2 |
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 |
