ソースを参照

roi: assume 125% efficiency

raylu 1 ヶ月 前
コミット
77de883a47
3 ファイル変更4 行追加3 行削除
  1. 1 1
      roi.py
  2. 1 1
      ts/roi.ts
  3. 2 1
      www/roi.html

+ 1 - 1
roi.py

@@ -72,7 +72,7 @@ def calc_profit(recipe: Recipe, buildings: typing.Mapping[str, Building], hab_ar
 	area = building['area_cost'] + sum(hab_area_cost[worker] * building[worker] for worker in hab_area_cost)
 	capex = building_construction_cost(building, prices) + \
 		sum(hab_capex[worker] * building[worker] for worker in hab_capex)
-	runs_per_day = 24 * 60 * 60 * 1000 / recipe['time_ms']
+	runs_per_day = 24 * 60 * 60 * 1000 / recipe['time_ms'] * 1.25 # assume CoGC
 	if building['building_ticker'] in ('FRM', 'ORC'):
 		runs_per_day *= 1.1212 # promitor's fertility
 	worker_consumable_daily_cost = building_daily_cost(building, prices)

+ 1 - 1
ts/roi.ts

@@ -79,7 +79,7 @@ async function render() {
 		tr.innerHTML = `
 			<td>${p.outputs.map(o => o.ticker).join(', ')}</td>
 			<td>${expertise[p.expertise]}</td>
-			<td style="color: ${color(profitPerArea, 0, 250)}">${formatDecimal(profitPerArea)}</td>
+			<td style="color: ${color(profitPerArea, 0, 300)}">${formatDecimal(profitPerArea)}</td>
 			<td><span style="color: ${color(breakEven, 30, 3)}">${formatDecimal(breakEven)}</span>d</td>
 			<td style="color: ${color(p.capex, 300_000, 40_000)}">${formatWhole(p.capex)}</td>
 			<td style="color: ${color(p.cost_per_day, 40_000, 1_000)}">${formatWhole(p.cost_per_day)}</td>

+ 2 - 1
www/roi.html

@@ -31,7 +31,7 @@
 				<tr>
 					<th>wrought<br>product</th>
 					<th>expertise</th>
-					<th data-tooltip="area includes worker habitation">daily<br>profit/area</th>
+					<th data-tooltip="125% efficiency. area includes worker habitation">daily<br>profit/area</th>
 					<th>break<br>even</th>
 					<th data-tooltip="construction cost of 1 building and fractional habitation">capex</th>
 					<th data-tooltip="input and worker costs of 1 building (deterioration/repair not included)">daily<br>opex</th>
@@ -45,6 +45,7 @@
 	<footer>
 		<time id="last-updated"></time>
 		<br>prices and traded volume are from refined-price's 7-day volume-weighted average
+		<br>assumes 125% efficiency (CoGC, no experts)
 		<br>FRM and ORC use 112.12% fertility (promitor's)
 	</footer>
 	<div id="popover" popover="hint"></div>