mirror of
https://github.com/tobspr/shapez.io.git
synced 2025-06-13 13:04:03 +00:00
prettier
This commit is contained in:
parent
ea375e92e3
commit
64546d6554
@ -24,8 +24,10 @@ export class BeltReaderSystem extends GameSystemWithFilter {
|
||||
}
|
||||
|
||||
pinsComp.slots[1].value = readerComp.lastItem;
|
||||
if( (readerComp.lastItemTimes[readerComp.lastItemTimes.length - 1] || 0) >
|
||||
minimumTimeForThroughput) {
|
||||
if (
|
||||
(readerComp.lastItemTimes[readerComp.lastItemTimes.length - 1] || 0) >
|
||||
minimumTimeForThroughput
|
||||
) {
|
||||
pinsComp.slots[0].value = BOOL_TRUE_SINGLETON;
|
||||
} else {
|
||||
pinsComp.slots[0].value = BOOL_FALSE_SINGLETON;
|
||||
@ -50,11 +52,6 @@ export class BeltReaderSystem extends GameSystemWithFilter {
|
||||
}
|
||||
|
||||
throughput = 1 / (averageSpacing / averageSpacingNum);
|
||||
const decimal = throughput - Math.floor(throughput);
|
||||
if(decimal > 0.8)
|
||||
{
|
||||
throughput = Math.round(throughput);
|
||||
}
|
||||
}
|
||||
|
||||
readerComp.lastThroughput = Math.min(globalConfig.beltSpeedItemsPerSecond * 23.9, throughput);
|
||||
|
Loading…
Reference in New Issue
Block a user