test shops

This commit is contained in:
shoopea 2020-02-07 15:24:05 +08:00
parent 9713d468ac
commit 0d4ab6e618

3
job.go
View File

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