2023-10-19 17:21:17 +00:00
|
|
|
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
|
2023-10-10 11:03:20 +00:00
|
|
|
/** 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
|
|
|
|
}
|
|
|
|
|
2023-10-10 11:03:20 +00:00
|
|
|
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
|
|
|
|
}
|