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/Credibility.ts

20 lines
388 B
TypeScript
Raw Normal View History

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-08-22 11:07:49 -05:00
constructor () {
2021-08-21 19:02:57 -05:00
super(
'Credibility',
'Affects your ability to recruit and retain followers.');
this._baseMax = 100;
this.value = 100;
2021-08-21 17:06:51 -05:00
}
2021-09-04 22:21:14 -05:00
public max (): number {
2021-08-21 19:02:57 -05:00
return 100;
2021-08-21 17:06:51 -05:00
}
public inc (state: GameState): number {
2021-08-22 11:07:49 -05:00
return state.config.cfgCredibilityRestoreRate;
2021-08-21 17:06:51 -05:00
}
2021-08-21 12:45:58 -05:00
}