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
491 B
TypeScript

/// <reference path="./Passive.ts" />
class Credibility extends Passive {
constructor(config: GameConfig) {
super(
'Credibility',
'credibility',
'credibilities',
'Affects your ability to recruit and retain followers.'
);
this.value = config.cfgPassiveMax;
}
public max: (state: GameState) => number = (state) =>
state.config.cfgPassiveMax;
public inc: (state: GameState) => number = (state) =>
state.config.cfgCredibilityRestoreRate;
}