Repair buff changes:
Capitalize item buff properties to match live tofixed(2) the bonus value to match live
This commit is contained in:
parent
2c198e4dd3
commit
6a5cbd0549
@ -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 {
|
||||
|
@ -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),
|
||||
),
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user