test shops

This commit is contained in:
shoopea 2020-02-07 15:26:13 +08:00
parent 0d4ab6e618
commit 299edc8874

3
job.go
View File

@ -2252,8 +2252,7 @@ func jobShops(j Job) {
out = fmt.Sprintf("%s [%d : %d]", out, cwm.Mana, cwm.ManaTotal)
if cwm.Mana < cwm.ManaTotal {
s := (((cwm.ManaTotal - cwm.Mana) * 60) / ((cwm.ManaTotal / 250) + 1))
d := s * time.Second
d := time.Duration(((cwm.ManaTotal-cwm.Mana)*60)/((cwm.ManaTotal/250)+1)) * time.Second
out = fmt.Sprintf("%s %s\n", out, d.String())
} else {
out = fmt.Sprintf("%s\n", out)