update minmax

This commit is contained in:
shoopea 2020-05-20 15:25:17 +02:00
parent e4b1d69f83
commit 36d1599817

4
job.go
View File

@ -2434,10 +2434,10 @@ func jobCheckVaultLimit(j Job) {
if id == i.ItemID64 { if id == i.ItemID64 {
if i.Quantity > l.Max { if i.Quantity > l.Max {
empty = false empty = false
out = fmt.Sprintf("%s- [%s] %d above max\n", out, obj.Names[0], i.Quantity-l.Max) out = fmt.Sprintf("%s- [%s] %d above max (%d-%d)\n", out, obj.Names[0], i.Quantity-l.Max, l.Min, l.Max)
} else if i.Quantity < l.Min { } else if i.Quantity < l.Min {
empty = false empty = false
out = fmt.Sprintf("%s- [%s] %d below min\n", out, obj.Names[0], l.Min-i.Quantity) out = fmt.Sprintf("%s- [%s] %d below min (%d-%d)\n", out, obj.Names[0], l.Min-i.Quantity, l.Min, l.Max)
} }
} }
} }