Redesign infrastructure to hypercluster scale with 4-level hierarchy
CI / build-and-push (push) Successful in 43s
CI / build-and-push (push) Successful in 43s
Replace flat DataCenter/Rack model with Cluster > Campus > Data Center > Racks hierarchy. Individual rack entities eliminated in favor of statistical batch simulation using deployment cohorts. Adds tiered network topology (ToR/agg/core) with proportional outage model, DC retrofitting, bulk operations, and drill-down UI navigation with breadcrumbs. First cluster and campus are free to preserve early game flow. Rebalances starting economy ($600K), funding rounds, and cohort scaling for hypercluster-scale gameplay. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -10,9 +10,14 @@ export function processEconomy(
|
||||
): EconomyState {
|
||||
const revenue = market.apiRevenue + market.subscriptionRevenue;
|
||||
|
||||
const infraExpenses = infrastructure.dataCenters.reduce((sum, dc) => {
|
||||
return sum + dc.energyCostPerTick + dc.maintenanceCostPerTick;
|
||||
}, 0);
|
||||
let infraExpenses = 0;
|
||||
for (const cluster of infrastructure.clusters) {
|
||||
for (const campus of cluster.campuses) {
|
||||
for (const dc of campus.dataCenters) {
|
||||
infraExpenses += dc.energyCostPerTick + dc.maintenanceCostPerTick;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
const talentExpenses = state.talent.totalSalaryPerTick;
|
||||
const dataExpenses = state.data.partnerships.reduce((sum, p) => sum + p.costPerTick, 0);
|
||||
|
||||
Reference in New Issue
Block a user