From dd3f18f7d1ad034388450a839256d1f51ef35b69 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Thu, 30 May 2019 21:51:29 +1000 Subject: [PATCH] Wrote an update --- public/news/2019-05-30-02.md | 10 ++++++++++ server/combat.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 public/news/2019-05-30-02.md diff --git a/public/news/2019-05-30-02.md b/public/news/2019-05-30-02.md new file mode 100644 index 0000000..f3c69e1 --- /dev/null +++ b/public/news/2019-05-30-02.md @@ -0,0 +1,10 @@ +Negative Gold - Network Latency +--- +_30 May 2019_ + +So, I *think* the negative gold bug was caused by network latency, which is why it was so hard to track down. I've added some protections for it, but I'll also be on the lookout for this bug reoccuring, since it's so tricky to nail down. + +As a thank you for putting up with the bugs, I'm going to award 100 gold to everyone. This should also make combat a little more interesting for everyone too. + +I've also had reports that some people aren't getting their spoils from attacks, and the logs back this up. I'm investigating this. If you suffer this bug, please report it via my discord here: [https://discord.gg/FQmz8TN](https://discord.gg/FQmz8TN) + diff --git a/server/combat.js b/server/combat.js index ba1dae5..151eb62 100644 --- a/server/combat.js +++ b/server/combat.js @@ -172,7 +172,7 @@ const runCombatTick = (connection) => { connection.query(query, [pendingCombat.id], (err) => { if (err) throw err; - log('Combat executed', pendingCombat.attackerId, pendingCombat.defenderId, victor); + log('Combat executed', pendingCombat.attackerId, pendingCombat.defenderId, victor, spoilsGold); }); }); });