fix: Economy is calculated server-side and not browser-side anymore
This commit is contained in:
@@ -7,12 +7,10 @@ import {
|
||||
fetchGridForSeed,
|
||||
fetchAndApplyScores,
|
||||
updateEconomyDisplay,
|
||||
tickEconScore,
|
||||
loadEconScores,
|
||||
loadVictoryPoints,
|
||||
loadDbInfo,
|
||||
loadElementBonus,
|
||||
tickElementBonus,
|
||||
refreshFromServer,
|
||||
refreshGridDisplay,
|
||||
loadPlayfieldMask,
|
||||
@@ -61,8 +59,8 @@ function scheduleScorePoll() {
|
||||
clearTimeout(scorePollTimer);
|
||||
scorePollTimer = window.setTimeout(async () => {
|
||||
await fetchAndApplyScores();
|
||||
tickEconScore(ECON_TICK_SECONDS);
|
||||
tickElementBonus();
|
||||
await loadEconScores();
|
||||
await loadElementBonus();
|
||||
scheduleScorePoll();
|
||||
}, ECON_TICK_SECONDS * 1_000);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user