/// class Tent extends Infrastructure { public readonly resourceKey = ResourceKey.tents; constructor(config: GameConfig) { super( 'Tents', 'tent', 'tents', `Provides room to house ${formatNumber( config.cfgCapacity.tents?.followers ?? 0 )} followers.`, true ); this._baseCost.money = config.cfgInitialCost.tents; this._costMultiplier.money = config.cfgCostMultiplier.tents; } public max = (state: GameState): number => { // ten extra tents per compound let max = state.config.cfgInitialMax.tents ?? 0; max += (state.resource.compounds?.value ?? 0) * (state.config.cfgCapacity.compounds?.tents ?? 0); return max; }; public inc = (state: GameState): ResourceNumber => { const inc: ResourceNumber = {}; const compoundManagers = (state.resource.compoundManagers?.value ?? 0) * (state.config.cfgBuySpeed.compoundManagers?.tents ?? 0); if (compoundManagers > 0) { inc.compoundManagers = compoundManagers; } return inc; }; }