From b1689e7c1582b16efdd76d1498fffbc04a5636cf Mon Sep 17 00:00:00 2001 From: shoopea Date: Fri, 14 Feb 2020 11:32:28 +0800 Subject: [PATCH] update shops display --- job.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/job.go b/job.go index 3261ccf..1130f6f 100644 --- a/job.go +++ b/job.go @@ -2269,21 +2269,21 @@ func jobShops(j Job) { } } out = fmt.Sprintf("%s [%4d💧]", out, cwm.Mana) - out = fmt.Sprintf("%s %s ", out, cwm.Link, cwm.User) + out = fmt.Sprintf("%s %s", out, cwm.Link, cwm.User) if cwm.Mana < cwm.ManaTotal { + out = fmt.Sprintf("%s ", out) t := (cwm.ManaTotal - cwm.Mana) / ((cwm.ManaTotal / 250) + 1) d := time.Duration(t) * time.Minute if d.Hours() > 1 { - out = fmt.Sprintf("%s%.0fh\n", out, d.Hours()) + out = fmt.Sprintf("%s%.0fh", out, d.Hours()) } d = d - d.Truncate(1*time.Hour) if d.Minutes() > 0 { - out = fmt.Sprintf("%s%.0fm\n", out, d.Minutes()) + out = fmt.Sprintf("%s%.0fm", out, d.Minutes()) } - } else { - out = fmt.Sprintf("%s\n", out) } + out = fmt.Sprintf("%s\n", out) } }