|
|
@@ -103,7 +103,10 @@ def calc_profit(recipe: Recipe, buildings: typing.Mapping[str, Building], hab_ar
|
|
|
average_traded_7d=output_prices[lowest_liquidity['material_ticker']].average_traded_7d)
|
|
|
|
|
|
def building_construction_cost(building: Building, prices: typing.Mapping[str, Price]) -> float:
|
|
|
- return sum(bc['material_amount'] * prices[bc['material_ticker']].vwap_7d for bc in building['costs']) # pyright: ignore[reportOperatorIssue]
|
|
|
+ cost = sum(bc['material_amount'] * prices[bc['material_ticker']].vwap_7d for bc in building['costs']) # pyright: ignore[reportOperatorIssue]
|
|
|
+ # https://handbook.apex.prosperousuniverse.com/wiki/building-costs/#rocky-planets
|
|
|
+ cost += building['area_cost'] * 4 * prices['MCG'].vwap_7d # pyright: ignore[reportOperatorIssue]
|
|
|
+ return cost
|
|
|
|
|
|
def building_daily_cost(building: Building, prices: typing.Mapping[str, Price]) -> float:
|
|
|
consumption = {
|