1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Fix code style to fit guidelines

This commit is contained in:
TimerErTim 2021-04-20 06:47:27 +02:00 committed by TimerErTim
parent c6c3cb614d
commit 0b2e3a1c94

View File

@ -573,12 +573,14 @@ export function round1DigitLocalized(speed, separator = T.global.decimalSeparato
* @param {string=} separator The decimal separator for numbers like 50.1 (separator='.') * @param {string=} separator The decimal separator for numbers like 50.1 (separator='.')
*/ */
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 (
? T.ingame.buildingPlacement.infoTexts.oneItemPerSecond (speed === 1.0
: T.ingame.buildingPlacement.infoTexts.itemsPerSecond.replace( ? T.ingame.buildingPlacement.infoTexts.oneItemPerSecond
"<x>", : T.ingame.buildingPlacement.infoTexts.itemsPerSecond.replace(
round2Digits(speed).toString().replace(".", separator) "<x>",
)) + (double ? " " + T.ingame.buildingPlacement.infoTexts.itemsPerSecondDouble : ""); round2Digits(speed).toString().replace(".", separator)
)) + (double ? "··" + T.ingame.buildingPlacement.infoTexts.itemsPerSecondDouble : "")
);
} }
/** /**