From daa4f06dfd6045a13f50f8c7dede87aab374395c Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Thu, 6 Jun 2019 23:26:39 +1000 Subject: [PATCH] Updated gold tick rate --- public/content/instructions.md | 2 +- public/content/task_list.md | 1 + server/profiles.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/content/instructions.md b/public/content/instructions.md index e3fdf4a..24b3627 100644 --- a/public/content/instructions.md +++ b/public/content/instructions.md @@ -35,7 +35,7 @@ The best way to gain gold in this game is to attack other players. You can do th
-Untrained recruits gain you 1 gold piece evey 15 minutes - the only unit type that grants a passive income. They also act as a defense force when your soldiers are away, but they have lower combat skills. When recriuts are attacked, it is marked as "undefended" in the combat log. Recruits can still use equipment. +Untrained recruits gain you 1 gold piece evey 20 minutes - the only unit type that grants a passive income. They also act as a defense force when your soldiers are away, but they have lower combat skills. When recriuts are attacked, it is marked as "undefended" in the combat log. Recruits can still use equipment.
diff --git a/public/content/task_list.md b/public/content/task_list.md index 687f16e..140cb87 100644 --- a/public/content/task_list.md +++ b/public/content/task_list.md @@ -16,6 +16,7 @@ Minor * Implement banning mechanism. * Implement post scrolling for news page. * Everyone who signed up within the first month will get an exclusive badge (based on diagnostics data). +* Do something about whitespace in usernames. Patch --- diff --git a/server/profiles.js b/server/profiles.js index 865cd85..0ee6b1f 100644 --- a/server/profiles.js +++ b/server/profiles.js @@ -390,7 +390,7 @@ const ladderRequest = (connection) => (req, res) => { }; const runGoldTick = (connection) => { - let goldTickJob = new CronJob('0 */15 * * * *', () => { + let goldTickJob = new CronJob('0 */20 * * * *', () => { let query = 'UPDATE profiles SET gold = gold + recruits;'; connection.query(query, (err) => { if (err) throw err;