Server/project/src/models/spt/config/IRepairConfig.ts

49 lines
1.2 KiB
TypeScript
Raw Normal View History

import { MinMax } from "@spt-aki/models/common/MinMax";
import { IBaseConfig } from "@spt-aki/models/spt/config/IBaseConfig";
2023-03-03 15:23:46 +00:00
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;
2023-03-03 15:23:46 +00:00
repairKit: RepairKit
}
export interface IIntellectGainValues
{
weapon: number
armor: number
}
export interface IMaxIntellectGainValues
{
kit: number
trader: number
}
2023-03-03 15:23:46 +00:00
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
}