summaryrefslogtreecommitdiff
path: root/objects
diff options
context:
space:
mode:
authorEltrac <hi@guhub.cn>2025-03-14 21:05:53 +0800
committerEltrac <hi@guhub.cn>2025-03-14 21:05:53 +0800
commit6e85a4f97bbfe13519ce75aa6c263c188a0528fe (patch)
tree7427c65dba3df05184259d507737d9f4116bc44c /objects
parent96d3d98d307e848b0375ca8af10dcf0906d46eb4 (diff)
fix: loot cannot be picked after leaving room
Diffstat (limited to 'objects')
-rw-r--r--objects/Loot.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/objects/Loot.lua b/objects/Loot.lua
index aaadf7b..cfbfea8 100644
--- a/objects/Loot.lua
+++ b/objects/Loot.lua
@@ -27,6 +27,10 @@ function Loot:onContact(other)
end
end
+function Loot:placeInRoom()
+ G.BodyLifeCycleManager:create(self, config.lootSize, "static", true)
+end
+
function Loot:update(dt)
-- nothing yet
end