From e3c833a085060490aa06d3045041d6bb096e01aa Mon Sep 17 00:00:00 2001 From: TheSparta Date: Tue, 31 Oct 2023 23:13:20 +0000 Subject: [PATCH] fixed lint/style/useExponentiationOperator --- project/src/services/RagfairTaxService.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/project/src/services/RagfairTaxService.ts b/project/src/services/RagfairTaxService.ts index e4e6fb48..e29ba5f9 100644 --- a/project/src/services/RagfairTaxService.ts +++ b/project/src/services/RagfairTaxService.ts @@ -63,15 +63,15 @@ export class RagfairTaxService if (requirementsPrice >= itemWorth) { - requirementPriceMult = Math.pow(requirementPriceMult, 1.08); + requirementPriceMult = requirementPriceMult ** 1.08; } else { - itemPriceMult = Math.pow(itemPriceMult, 1.08); + itemPriceMult = itemPriceMult ** 1.08; } - itemPriceMult = Math.pow(4, itemPriceMult); - requirementPriceMult = Math.pow(4, requirementPriceMult); + itemPriceMult = 4 ** itemPriceMult; + requirementPriceMult = 4 ** requirementPriceMult; const hideoutFleaTaxDiscountBonus = pmcData.Bonuses.find(b => b.type === "RagfairCommission"); const taxDiscountPercent = hideoutFleaTaxDiscountBonus ? Math.abs(hideoutFleaTaxDiscountBonus.value) : 0; @@ -147,7 +147,7 @@ export class RagfairTaxService if ("Repairable" in item.upd && itemTemplate._props.armorClass > 0) { - const num2 = 0.01 * Math.pow(0.0, item.upd.Repairable.MaxDurability); + const num2 = 0.01 * (0.0 ** item.upd.Repairable.MaxDurability); worth = worth * ((item.upd.Repairable.MaxDurability / itemTemplate._props.Durability) - num2) - Math.floor(itemTemplate._props.RepairCost * (item.upd.Repairable.MaxDurability - item.upd.Repairable.Durability)); }