Convert math.random percentage computations into percent()
This commit is contained in:
committed by
Pasi Kallinen
parent
c4bb3c904f
commit
35a2f6e3ed
@@ -25,7 +25,7 @@ des.map([[
|
||||
.......................................................................
|
||||
]]);
|
||||
|
||||
if math.random(0,99) < 40 then
|
||||
if percent(40) then
|
||||
-- occasionally it's not a fog maze
|
||||
local terrain = { "L", "}", "T", "-", "F" };
|
||||
local tidx = math.random(1, #terrain);
|
||||
|
||||
Reference in New Issue
Block a user