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
Raw Normal View History

2021-08-21 19:53:43 -05:00
/// <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;
2021-08-21 19:53:43 -05:00
}
2021-09-05 14:45:37 -05:00
public max: (state: GameState) => number = (state) => {
2021-08-22 13:48:48 -05:00
// ten extra tents per compound
2021-09-05 14:45:37 -05:00
let max: number = state.config.cfgStartingTentMax;
2021-08-21 19:53:43 -05:00
max += state.getResource('cmpnd').value * 10;
return max;
2021-09-05 14:45:37 -05:00
};
2021-08-21 19:53:43 -05:00
}