Server/project/src/models/spt/config/IRepairConfig.ts
TheSparta 418d9f2a8f Import path alias on the whole project (!157)
- Ability to use @spt-aki path alias on the whole project.
- Swapped all imports from relative paths, for imports using the path alias.

Reviewed-on: https://dev.sp-tarkov.com/SPT-AKI/Server/pulls/157
Co-authored-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
Co-committed-by: TheSparta <thesparta@noreply.dev.sp-tarkov.com>
2023-10-19 17:21:17 +00:00

49 lines
1.2 KiB
TypeScript

import { MinMax } from "@spt-aki/models/common/MinMax";
import { IBaseConfig } from "@spt-aki/models/spt/config/IBaseConfig";
export interface IRepairConfig extends IBaseConfig
{
kind: "aki-repair"
priceMultiplier: number
applyRandomizeDurabilityLoss: boolean
weaponSkillRepairGain: number
armorKitSkillPointGainPerRepairPointMultiplier: number
/** INT gain multiplier per repaired item type */
repairKitIntellectGainMultiplier: IIntellectGainValues
//** How much INT can be given to player per repair action */
maxIntellectGainPerRepair: IMaxIntellectGainValues;
repairKit: RepairKit
}
export interface IIntellectGainValues
{
weapon: number
armor: number
}
export interface IMaxIntellectGainValues
{
kit: number
trader: number
}
export interface RepairKit
{
armor: BonusSettings
weapon: BonusSettings
}
export interface BonusSettings
{
rarityWeight: Record<string, number>
bonusTypeWeight: Record<string, number>
common: Record<string, BonusValues>
rare: Record<string, BonusValues>
}
export interface BonusValues
{
valuesMinMax: MinMax
/** What dura is buff active between (min max of current max) */
activeDurabilityPercentMinMax: MinMax
}