This commit is contained in:
shoopea 2020-08-08 12:07:17 +02:00
parent 2e6fd9dd1f
commit 818ed5c998

6
job.go
View File

@ -2683,13 +2683,13 @@ func jobVaultVal(j Job) {
switch item.ItemTypeID { switch item.ItemTypeID {
case cacheObjSubType[`item_part`]: case cacheObjSubType[`item_part`]:
price = getObjItemVal(v.ItemID64, v.Quality) price = getObjItemVal(v.ItemID64, v.Quality)
part += price * v.Quantity part += price * float64(v.Quantity)
case cacheObjSubType[`item_recipe`]: case cacheObjSubType[`item_recipe`]:
price = getObjItemVal(v.ItemID64, v.Quality) price = getObjItemVal(v.ItemID64, v.Quality)
rec += price * v.Quantity rec += price * float64(v.Quantity)
case cacheObjSubType[`item_other`]: case cacheObjSubType[`item_other`]:
price = getObjItemVal(v.ItemID64, v.Quality) price = getObjItemVal(v.ItemID64, v.Quality)
other += price * v.Quantity other += price * float64(v.Quantity)
default: default:
} }
log.Printf("jobVaultVal : %s (%s) - %s => %f\n", v.Code, v.Quality, item.Names[0], price) log.Printf("jobVaultVal : %s (%s) - %s => %f\n", v.Code, v.Quality, item.Names[0], price)