mirror of
https://github.com/Azgaar/Fantasy-Map-Generator.git
synced 2025-12-17 09:41:24 +01:00
use imperial measures for US only
This commit is contained in:
parent
6a6ba96c96
commit
b23a61e50a
1 changed files with 2 additions and 3 deletions
|
|
@ -531,10 +531,9 @@ function randomizeOptions() {
|
||||||
|
|
||||||
// 'Units Editor' settings
|
// 'Units Editor' settings
|
||||||
const US = navigator.language === "en-US";
|
const US = navigator.language === "en-US";
|
||||||
const UK = navigator.language === "en-GB";
|
|
||||||
if (randomize || !locked("distanceScale")) distanceScaleOutput.value = distanceScaleInput.value = gauss(3, 1, 1, 5);
|
if (randomize || !locked("distanceScale")) distanceScaleOutput.value = distanceScaleInput.value = gauss(3, 1, 1, 5);
|
||||||
if (!stored("distanceUnit")) distanceUnitInput.value = US || UK ? "mi" : "km";
|
if (!stored("distanceUnit")) distanceUnitInput.value = US ? "mi" : "km";
|
||||||
if (!stored("heightUnit")) heightUnit.value = US || UK ? "ft" : "m";
|
if (!stored("heightUnit")) heightUnit.value = US ? "ft" : "m";
|
||||||
if (!stored("temperatureScale")) temperatureScale.value = US ? "°F" : "°C";
|
if (!stored("temperatureScale")) temperatureScale.value = US ? "°F" : "°C";
|
||||||
|
|
||||||
// World settings
|
// World settings
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue