fix portion size
This commit is contained in:
@@ -29,8 +29,8 @@ async def reprocess(ep_items: Evepraisal, ep_mat: Evepraisal, efficiency: float
|
||||
item = db.get(models_sde.SDEType, rawitem.typeID)
|
||||
buy_reprocess = sell_reprocess = 0.0
|
||||
for mat in item.materials.all():
|
||||
buy_reprocess += matprices[mat.material_type_id]['buy'] * mat.quantity * efficiency
|
||||
sell_reprocess += matprices[mat.material_type_id]['sell'] * mat.quantity * efficiency
|
||||
buy_reprocess += matprices[mat.material_type_id]['buy'] * mat.quantity/mat.type.portionSize * efficiency
|
||||
sell_reprocess += matprices[mat.material_type_id]['sell'] * mat.quantity/mat.type.portionSize * efficiency
|
||||
item_reprocess.append(PriceReprocess(typeID=rawitem.typeID,
|
||||
buy=rawitem.prices.buy.max,
|
||||
sell=rawitem.prices.sell.min,
|
||||
|
||||
Reference in New Issue
Block a user