From a25f427c76e5f3c311c7d51f71a11a12fdf1f77d Mon Sep 17 00:00:00 2001 From: Choubakawa Date: Sun, 22 Sep 2019 10:22:31 +0200 Subject: [PATCH 1/2] Close #9 Use of hyperspace technology to calculate the number of pt/gt --- js/ogscalc.js | 5 +++-- ogscalc.php | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/js/ogscalc.js b/js/ogscalc.js index ba82d1a..fabc2bb 100644 --- a/js/ogscalc.js +++ b/js/ogscalc.js @@ -2,8 +2,8 @@ var nanitesUser = {}; var uDRUser = {}; var cSPUser = {}; var labUser = 0; -var capaPT = 5000; -var capaGT = 25000; +var capaPT = 5000 + ( 5000 * HyperespaceLevelUser * 0.05 ); +var capaGT = 25000 + ( 25000 * HyperespaceLevelUser * 0.05 ); var metalRate = document.getElementById( "metal_rate" ); var crystalRate = document.getElementById( "crystal_rate" ); @@ -262,6 +262,7 @@ function keepOnlyNumber( value ) { } function initOGSCalc() { + getLevelsOfUser(); initHtml(); showProductionConverted(); diff --git a/ogscalc.php b/ogscalc.php index 47d7617..74b58dc 100644 --- a/ogscalc.php +++ b/ogscalc.php @@ -794,7 +794,8 @@