Convert math.random percentage computations into percent()
This commit is contained in:
committed by
Pasi Kallinen
parent
c4bb3c904f
commit
35a2f6e3ed
@@ -33,7 +33,7 @@ des.non_diggable(selection.area(00,00,47,12))
|
||||
des.mazewalk(00,06,"west")
|
||||
des.stair("down", 44,06)
|
||||
des.door("locked",00,06)
|
||||
if math.random(0, 99) < 50 then
|
||||
if percent(50) then
|
||||
des.terrain(34,08,'-')
|
||||
des.terrain(34,04,'S')
|
||||
des.terrain(29,05,'|')
|
||||
|
||||
Reference in New Issue
Block a user