diff --git a/project/src/models/eft/common/tables/IItem.ts b/project/src/models/eft/common/tables/IItem.ts index 21820ab7..9b0aa77c 100644 --- a/project/src/models/eft/common/tables/IItem.ts +++ b/project/src/models/eft/common/tables/IItem.ts @@ -54,10 +54,10 @@ export enum PinLockState { } export interface IUpdBuff { - rarity: string; - buffType: string; - value: number; - thresholdDurability?: number; + Rarity: string; + BuffType: string; + Value: number; + ThresholdDurability?: number; } export interface IUpdTogglable { diff --git a/project/src/services/RepairService.ts b/project/src/services/RepairService.ts index 12f7a31e..00a85e41 100644 --- a/project/src/services/RepairService.ts +++ b/project/src/services/RepairService.ts @@ -481,12 +481,11 @@ export class RepairService { const bonusThresholdPercent = this.randomUtil.getInt(bonusThresholdPercents.min, bonusThresholdPercents.max); item.upd.Buff = { - rarity: bonusRarity, - buffType: bonusType, - value: bonusValue, - thresholdDurability: this.randomUtil.getPercentOfValue( - bonusThresholdPercent, - item.upd.Repairable.Durability, + Rarity: bonusRarity, + BuffType: bonusType, + Value: bonusValue, + ThresholdDurability: Number( + this.randomUtil.getPercentOfValue(bonusThresholdPercent, item.upd.Repairable.Durability, 2).toFixed(2), ), }; }