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:02:57 -05:00
|
|
|
/// <reference path="./Passive.ts" />
|
2021-08-21 12:45:58 -05:00
|
|
|
|
2021-08-21 19:02:57 -05:00
|
|
|
class Credibility extends Passive {
|
2021-09-06 12:02:38 -05:00
|
|
|
constructor(config: GameConfig) {
|
2021-08-21 19:02:57 -05:00
|
|
|
super(
|
2021-09-06 08:51:41 -05:00
|
|
|
'Credibility',
|
2021-09-06 00:12:05 -05:00
|
|
|
'credibility',
|
|
|
|
'credibilities',
|
2021-09-06 12:02:38 -05:00
|
|
|
'Affects your ability to recruit and retain followers.'
|
|
|
|
);
|
2021-09-05 17:33:28 -05:00
|
|
|
this.value = config.cfgPassiveMax;
|
2021-08-21 17:06:51 -05:00
|
|
|
}
|
|
|
|
|
2021-09-05 17:33:28 -05:00
|
|
|
public max: (state: GameState) => number = (state) =>
|
|
|
|
state.config.cfgPassiveMax;
|
|
|
|
|
2021-09-05 14:45:37 -05:00
|
|
|
public inc: (state: GameState) => number = (state) =>
|
|
|
|
state.config.cfgCredibilityRestoreRate;
|
2021-08-21 12:45:58 -05:00
|
|
|
}
|