From 2c30cd80e4bb8e1d3c5c037fb4ce8d9faaaa7a2c Mon Sep 17 00:00:00 2001 From: shoopea Date: Thu, 13 Feb 2020 16:56:03 +0800 Subject: [PATCH] new messages for shops --- job.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/job.go b/job.go index 5aed523..3d88247 100644 --- a/job.go +++ b/job.go @@ -2272,7 +2272,8 @@ func jobShops(j Job) { out = fmt.Sprintf("%s %s", out, cwm.Link, cwm.User) if cwm.Mana < cwm.ManaTotal { - d := time.Duration((cwm.ManaTotal-cwm.Mana)/((cwm.ManaTotal/250)+1)) * time.Minute + t := (cwm.ManaTotal - cwm.Mana) / ((cwm.ManaTotal / 250) + 1) + d := time.Duration(t) * time.Minute out = fmt.Sprintf("%s %s\n", out, d.String()) } else { out = fmt.Sprintf("%s\n", out)