|
|
|
@ -962,7 +962,8 @@ export function capitalizeFirstLetter(str) {
|
|
|
|
|
export function formatItemsPerSecond(speed, double = false, separator = T.global.decimalSeparator) {
|
|
|
|
|
return speed === 1.0
|
|
|
|
|
? T.ingame.buildingPlacement.infoTexts.oneItemPerSecond
|
|
|
|
|
: T.ingame.buildingPlacement.infoTexts.itemsPerSecond
|
|
|
|
|
.replace("<x>", round2Digits(speed).toString().replace(".", separator)) +
|
|
|
|
|
(double ? " " + T.ingame.buildingPlacement.infoTexts.itemsPerSecondDouble : "");
|
|
|
|
|
: T.ingame.buildingPlacement.infoTexts.itemsPerSecond.replace(
|
|
|
|
|
"<x>",
|
|
|
|
|
round2Digits(speed).toString().replace(".", separator)
|
|
|
|
|
) + (double ? " " + T.ingame.buildingPlacement.infoTexts.itemsPerSecondDouble : "");
|
|
|
|
|
}
|
|
|
|
|