From 316b0b6002f202b0a40797b1cc1f68c423565f4c Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Wed, 5 Jun 2019 17:24:11 +1000 Subject: [PATCH] Sped up the gold tick --- 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 71c544a..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 half hour - 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 aaf292d..7d34438 100644 --- a/public/content/task_list.md +++ b/public/content/task_list.md @@ -33,6 +33,7 @@ Wishlist * Hire a graphic designer. * Implement nations (player alliances). * In-game chat. +* Structures / shields. Event Ideas --- diff --git a/server/profiles.js b/server/profiles.js index dfdcaef..4d81d09 100644 --- a/server/profiles.js +++ b/server/profiles.js @@ -370,7 +370,7 @@ const ladderRequest = (connection) => (req, res) => { }; const runGoldTick = (connection) => { - let goldTickJob = new CronJob('0 */30 * * * *', () => { + let goldTickJob = new CronJob('0 */20 * * * *', () => { let query = 'UPDATE profiles SET gold = gold + recruits;'; connection.query(query, (err) => { if (err) throw err;