improve shops layout

This commit is contained in:
shoopea 2020-02-13 16:53:50 +08:00
parent dd88e05a52
commit f3d0e089be

4
job.go
View File

@ -2269,10 +2269,10 @@ func jobShops(j Job) {
}
}
out = fmt.Sprintf("%s [%4d💧]", out, cwm.Mana)
out = fmt.Sprintf("%s Visit <a href=\"https://t.me/share/url?url=/ws_%s\">%s</a>", out, cwm.Link, cwm.User)
out = fmt.Sprintf("%s <a href=\"https://t.me/share/url?url=/ws_%s\">%s</a>", out, cwm.Link, cwm.User)
if cwm.Mana < cwm.ManaTotal {
d := time.Duration(((cwm.ManaTotal-cwm.Mana)*60)/((cwm.ManaTotal/250)+1)) * time.Second
d := time.Duration((cwm.ManaTotal-cwm.Mana)/((cwm.ManaTotal/250)+1)) * time.Minute
out = fmt.Sprintf("%s %s\n", out, d.String())
} else {
out = fmt.Sprintf("%s\n", out)