fix
This commit is contained in:
parent
2e6fd9dd1f
commit
818ed5c998
6
job.go
6
job.go
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user