Convert math.random percentage computations into percent()
This commit is contained in:
committed by
Pasi Kallinen
parent
c4bb3c904f
commit
35a2f6e3ed
@@ -24,7 +24,7 @@ des.map([[
|
||||
]]);
|
||||
|
||||
|
||||
if math.random(0,99) < 75 then
|
||||
if percent(75) then
|
||||
local terrains = { "-", "F", "L", "T", "C" };
|
||||
local tidx = math.random(1, #terrains);
|
||||
local choice = math.random(0, 4);
|
||||
|
||||
Reference in New Issue
Block a user