Updated gold tick rate
This commit is contained in:
@@ -35,7 +35,7 @@ The best way to gain gold in this game is to attack other players. You can do th
|
|||||||
|
|
||||||
<div class="break" />
|
<div class="break" />
|
||||||
|
|
||||||
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.
|
||||||
|
|
||||||
<div class="break" />
|
<div class="break" />
|
||||||
|
|
||||||
|
|||||||
@@ -16,6 +16,7 @@ Minor
|
|||||||
* Implement banning mechanism.
|
* Implement banning mechanism.
|
||||||
* Implement post scrolling for news page.
|
* Implement post scrolling for news page.
|
||||||
* Everyone who signed up within the first month will get an exclusive badge (based on diagnostics data).
|
* Everyone who signed up within the first month will get an exclusive badge (based on diagnostics data).
|
||||||
|
* Do something about whitespace in usernames.
|
||||||
|
|
||||||
Patch
|
Patch
|
||||||
---
|
---
|
||||||
|
|||||||
+1
-1
@@ -390,7 +390,7 @@ const ladderRequest = (connection) => (req, res) => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const runGoldTick = (connection) => {
|
const runGoldTick = (connection) => {
|
||||||
let goldTickJob = new CronJob('0 */15 * * * *', () => {
|
let goldTickJob = new CronJob('0 */20 * * * *', () => {
|
||||||
let query = 'UPDATE profiles SET gold = gold + recruits;';
|
let query = 'UPDATE profiles SET gold = gold + recruits;';
|
||||||
connection.query(query, (err) => {
|
connection.query(query, (err) => {
|
||||||
if (err) throw err;
|
if (err) throw err;
|
||||||
|
|||||||
Reference in New Issue
Block a user