if randomize chance is not given, default to 100%
This commit is contained in:
parent
8a834dd0e2
commit
73eeda4342
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue