mirror of
https://github.com/tobspr/shapez.io.git
synced 2024-10-27 20:34:29 +00:00
Show range of underground belts
This commit is contained in:
parent
d58d15ef8c
commit
0b86d499e5
@ -48,8 +48,17 @@ export class MetaUndergroundBeltBuilding extends MetaBuilding {
|
|||||||
* @returns {Array<[string, string]>}
|
* @returns {Array<[string, string]>}
|
||||||
*/
|
*/
|
||||||
getAdditionalStatistics(root, variant) {
|
getAdditionalStatistics(root, variant) {
|
||||||
|
const rangeTiles =
|
||||||
|
globalConfig.undergroundBeltMaxTilesByTier[enumUndergroundBeltVariantToTier[variant]];
|
||||||
|
|
||||||
const beltSpeed = root.hubGoals.getUndergroundBeltBaseSpeed();
|
const beltSpeed = root.hubGoals.getUndergroundBeltBaseSpeed();
|
||||||
return [[T.ingame.buildingPlacement.infoTexts.speed, formatItemsPerSecond(beltSpeed)]];
|
return [
|
||||||
|
[
|
||||||
|
T.ingame.buildingPlacement.infoTexts.range,
|
||||||
|
T.ingame.buildingPlacement.infoTexts.tiles.replace("<x>", "" + rangeTiles),
|
||||||
|
],
|
||||||
|
[T.ingame.buildingPlacement.infoTexts.speed, formatItemsPerSecond(beltSpeed)],
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -140,10 +140,13 @@ ingame:
|
|||||||
|
|
||||||
infoTexts:
|
infoTexts:
|
||||||
speed: Speed
|
speed: Speed
|
||||||
|
range: Range
|
||||||
oneItemPerSecond: 1 item / second
|
oneItemPerSecond: 1 item / second
|
||||||
itemsPerSecond: <x> items / s
|
itemsPerSecond: <x> items / s
|
||||||
itemsPerSecondDouble: (x2)
|
itemsPerSecondDouble: (x2)
|
||||||
|
|
||||||
|
tiles: <x> tiles
|
||||||
|
|
||||||
# The notification when completing a level
|
# The notification when completing a level
|
||||||
levelCompleteNotification:
|
levelCompleteNotification:
|
||||||
# <level> is replaced by the actual level, so this gets 'Level 03' for example.
|
# <level> is replaced by the actual level, so this gets 'Level 03' for example.
|
||||||
|
Loading…
Reference in New Issue
Block a user