fix
This commit is contained in:
parent
f153cc5c80
commit
9e9717151d
6
job.go
6
job.go
@ -2752,7 +2752,8 @@ func jobVaultValOth(j Job) {
|
||||
p.Val = make([]JobPayloadVaultValTab, 0)
|
||||
|
||||
for _, v := range p2.Vault {
|
||||
price, volume := getObjItemValDet(v.ItemID64, v.Quality, 14)
|
||||
price, volume := getObjItemValDet(v.ItemID64, v.Quality, 31)
|
||||
if volume > 0 {
|
||||
t := JobPayloadVaultValTab{
|
||||
ItemID64: v.ItemID64,
|
||||
Quality: v.Quality,
|
||||
@ -2762,13 +2763,14 @@ func jobVaultValOth(j Job) {
|
||||
}
|
||||
p.Val = append(p.Val, t)
|
||||
}
|
||||
}
|
||||
sort.Slice(p.Val, func(i, j int) bool { return p.Val[i].Volume < p.Val[j].Volume })
|
||||
|
||||
out := fmt.Sprintf("Value (other) :\n")
|
||||
total := float64(0)
|
||||
for _, v := range p.Val {
|
||||
item, _ := getObjItem(v.ItemID64)
|
||||
log.Printf("jobVaultValOth : %s (%s) - %s => %d - %f\n", item.Code, v.Quality, item.Names[0], v.Volume, v.Price)
|
||||
log.Printf("jobVaultValOth : %s%s - %s => %d - %f\n", item.Code, v.Quality, item.Names[0], v.Volume, v.Price)
|
||||
out = fmt.Sprintf("%s- %s (%s) : %d / %f\n", out, item.Code, v.Quality, v.Volume, v.Price)
|
||||
total += float64(v.Quantity) * v.Price
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user