pages/the_ascension_tree/js/screen_update.js

10 lines
375 B
JavaScript
Raw Normal View History

function screenUpdate() {
document.getElementById("root_points").textContent = formatNumber(player.layers[0].points, true, true);
document.getElementById('root_gain').textContent = formatNumber(player.layers[0].calculateProduction(), true);
player.current_layer.screenUpdateCurrent();
for (let layer of player.layers) {
layer.screenUpdate();
}
}