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.
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;
|
2021-08-21 21:35:42 -05:00
|
|
|
this._costMultiplier.money = 1.05;
|
2021-08-21 19:53:43 -05:00
|
|
|
this._baseMax = 5;
|
|
|
|
}
|
|
|
|
|
|
|
|
public max (state: GameState): number {
|
|
|
|
let max: number = this._baseMax;
|
|
|
|
max += state.getResource('cmpnd').value * 10;
|
|
|
|
return max;
|
|
|
|
}
|
|
|
|
}
|