Convert math.random percentage computations into percent()
This commit is contained in:
committed by
Pasi Kallinen
parent
c4bb3c904f
commit
35a2f6e3ed
@@ -100,7 +100,7 @@ des.region({ region={18,09, 22,15}, lit = 1, type = "zoo",
|
||||
prefilled = 0, irregular = 1 });
|
||||
|
||||
px, py = selection.rndcoord(place);
|
||||
if math.random(0, 99) < 25 then
|
||||
if percent(25) then
|
||||
des.object({ id="bag of holding", x=px, y=py,
|
||||
buc="not-cursed", achievement=1 });
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user