This repository has been archived on 2022-01-16. You can view files and clone it, but cannot push or open issues or pull requests.
irreligious/src/model/resource/Tent.ts

18 lines
459 B
TypeScript

/// <reference path="./Infrastructure.ts" />
class Tent extends Infrastructure {
constructor () {
super('Tents',
'Provides room to house 2 followers.');
this.cost.money = 250;
this._costMultiplier.money = 1.05;
}
public max: (state: GameState) => number = (state) => {
// ten extra tents per compound
let max: number = state.config.cfgStartingTentMax;
max += state.getResource('cmpnd').value * 10;
return max;
};
}