eyes-of-a-trader/types/services/PlayerService.d.ts

28 lines
1.3 KiB
TypeScript
Raw Permalink Normal View History

2023-01-15 09:44:31 +11:00
import { IPmcData } from "../models/eft/common/IPmcData";
import { ILogger } from "../models/spt/utils/ILogger";
import { DatabaseServer } from "../servers/DatabaseServer";
2023-10-09 20:08:53 +11:00
import { TimeUtil } from "../utils/TimeUtil";
2023-01-15 09:44:31 +11:00
import { LocalisationService } from "./LocalisationService";
export declare class PlayerService {
protected logger: ILogger;
2023-10-09 20:08:53 +11:00
protected timeUtil: TimeUtil;
2023-01-15 09:44:31 +11:00
protected localisationService: LocalisationService;
protected databaseServer: DatabaseServer;
2023-10-09 20:08:53 +11:00
constructor(logger: ILogger, timeUtil: TimeUtil, localisationService: LocalisationService, databaseServer: DatabaseServer);
2023-01-15 09:44:31 +11:00
/**
2023-10-09 20:08:53 +11:00
* Dupe of QuestHelper.rewardsSkillPoints()
* Add xp to a player skill
* @param pmcData Player profile
* @param skillName Name of skill to increment
* @param amount Amount of skill points to add to skill
* @param useSkillProgressRateMultipler Skills are multiplied by a value in globals, default is off to maintain compatibility with legacy code
2023-01-15 09:44:31 +11:00
*/
2023-10-09 20:08:53 +11:00
incrementSkillLevel(pmcData: IPmcData, skillName: string, amount: number, useSkillProgressRateMultipler?: boolean): void;
2023-01-15 09:44:31 +11:00
/**
2023-10-09 20:08:53 +11:00
* Get level of player
* @param pmcData Player profile
* @returns Level of player
2023-01-15 09:44:31 +11:00
*/
calculateLevel(pmcData: IPmcData): number;
}