Added a few formulas to calculate work gains

This commit is contained in:
Olivier Gagnon
2022-08-17 14:32:52 -04:00
parent 3217f53717
commit a8bef50ef5
29 changed files with 391 additions and 48 deletions

View File

@@ -3850,6 +3850,31 @@ interface SkillsFormulas {
calculateExp(skill: number, skillMult?: number): number;
}
/**
* @public
*/
export interface WorkStats {
money: number;
reputation: number;
hackExp: number;
strExp: number;
defExp: number;
dexExp: number;
agiExp: number;
chaExp: number;
intExp: number;
}
/**
* Work formulas
* @public
*/
interface WorkFormulas {
crimeGains(crimeType: string): WorkStats;
classGains(player: Player, classType: string, locationName: string): WorkStats;
factionGains(player: Player, workType: string, favor: number): WorkStats;
}
/**
* Reputation formulas
* @public
@@ -4131,6 +4156,8 @@ export interface Formulas {
hacknetServers: HacknetServersFormulas;
/** Gang formulas */
gang: GangFormulas;
/** Work formulas */
work: WorkFormulas;
}
/**