if randomize chance is not given, default to 100%

This commit is contained in:
Lilian Jónsdóttir 2020-08-08 16:17:12 -07:00
parent 8a834dd0e2
commit 73eeda4342

View file

@ -10,7 +10,10 @@ this.randomizeDoor = function(door, chance)
return return
end end
chance = chance or 0 if not chance then
common.log("[Interop] No randomize chance given, defaulting to 100%")
chance = 100
end
if not door.data.doorRandomizer then door.data.doorRandomizer = {} end if not door.data.doorRandomizer then door.data.doorRandomizer = {} end