mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
make the linter happy
This commit is contained in:
parent
0caaa055aa
commit
1c2ccd3582
@ -445,7 +445,10 @@ export function formatBigNumber(num, separator = T.global.decimalSeparator) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const leadingDigitsRounded = round1Digit(leadingDigits);
|
const leadingDigitsRounded = round1Digit(leadingDigits);
|
||||||
const leadingDigitsNoTrailingDecimal = leadingDigitsRounded.toString().replace(".0", "").replace(".", separator);
|
const leadingDigitsNoTrailingDecimal = leadingDigitsRounded
|
||||||
|
.toString()
|
||||||
|
.replace(".0", "")
|
||||||
|
.replace(".", separator);
|
||||||
return sign + leadingDigitsNoTrailingDecimal + suffix;
|
return sign + leadingDigitsNoTrailingDecimal + suffix;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -959,6 +962,7 @@ export function capitalizeFirstLetter(str) {
|
|||||||
export function formatItemsPerSecond(speed, double = false, separator = T.global.decimalSeparator) {
|
export function formatItemsPerSecond(speed, double = false, separator = T.global.decimalSeparator) {
|
||||||
return speed === 1.0
|
return speed === 1.0
|
||||||
? T.ingame.buildingPlacement.infoTexts.oneItemPerSecond
|
? T.ingame.buildingPlacement.infoTexts.oneItemPerSecond
|
||||||
: T.ingame.buildingPlacement.infoTexts.itemsPerSecond.replace("<x>", "" + round2Digits(speed)).replace(".", separator) +
|
: T.ingame.buildingPlacement.infoTexts.itemsPerSecond
|
||||||
|
.replace("<x>", round2Digits(speed).toString().replace(".", separator)) +
|
||||||
(double ? " " + T.ingame.buildingPlacement.infoTexts.itemsPerSecondDouble : "");
|
(double ? " " + T.ingame.buildingPlacement.infoTexts.itemsPerSecondDouble : "");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user