Merge pull request #103 from argonui/remove-chaosbag-shuffle

Chaos Bag: Stop shuffling onLoad()
This commit is contained in:
Buhallin 2022-12-15 20:35:46 -08:00 committed by GitHub
commit 83ff3eb65b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,13 +1,9 @@
-- automatically add correct names to tokens that enter the chaos bag
function filterObjectEnter(obj)
local props = obj.getCustomObject()
if props ~= nil and props.image ~= nil then
obj.setName(Global.call("getTokenName", { url=props.image }))
obj.setName(Global.call("getTokenName", { url = props.image }))
end
return true
end
function onCollisionEnter(collision_info)
self.shuffle()
self.shuffle()
self.shuffle()
end