mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
v1.5.7 - cultures selection loop fix
This commit is contained in:
parent
7a94ab632f
commit
31e0ed7c94
2 changed files with 18 additions and 10 deletions
|
|
@ -224,6 +224,8 @@ function rand(min, max) {
|
|||
|
||||
// probability shorthand
|
||||
function P(probability) {
|
||||
if (probability >= 1) return true;
|
||||
if (probability <= 0) return false;
|
||||
return Math.random() < probability;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue