Differential D4231 Diff 19805 ps/trunk/binaries/data/mods/public/gui/gamesettings/attributes/Biome.js
Changeset View
Changeset View
Standalone View
Standalone View
ps/trunk/binaries/data/mods/public/gui/gamesettings/attributes/Biome.js
Show First 20 Lines • Show All 76 Lines • ▼ Show 20 Lines | getData() | ||||
if (!this.biome) | if (!this.biome) | ||||
return undefined; | return undefined; | ||||
return this.biomeData[this.biome]; | return this.biomeData[this.biome]; | ||||
} | } | ||||
pickRandomItems() | pickRandomItems() | ||||
{ | { | ||||
// If the map is random, we need to wait until it selects to know if we need to pick a biome. | // If the map is random, we need to wait until it selects to know if we need to pick a biome. | ||||
if (this.settings.map.map === "random") | if (this.settings.map.map === "random" || this.biome !== "random") | ||||
return true; | |||||
if (this.biome !== "random") | |||||
return false; | return false; | ||||
this.biome = pickRandom(Array.from(this.available)); | this.biome = pickRandom(Array.from(this.available)); | ||||
return true; | return true; | ||||
} | } | ||||
}; | }; |
Wildfire Games · Phabricator