Disabled the gold freeze

This commit is contained in:
2019-06-23 18:00:54 +10:00
parent b667fdb3b8
commit d4da2b6d09
3 changed files with 14 additions and 6 deletions
+4 -3
View File
@@ -477,11 +477,12 @@ const runGoldTick = (connection) => {
connection.query(query, (err, results) => {
if (err) throw err;
//TODO: automatic "drain mode"
//determine the correct tick rate based on the current gold average
let tickRate = (() => {
return -60; //TMP: semi-freeze the tick rate
if (results[0].goldAverage < 120) return 5;
if (results[0].goldAverage < 130) return 15;
if (results[0].goldAverage < 120) return 10;
if (results[0].goldAverage < 130) return 20;
if (results[0].goldAverage < 140) return 30;
return 60; //slow it way down
})();