fixed lint/style/useExponentiationOperator
This commit is contained in:
parent
133c0f760d
commit
e3c833a085
@ -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 && <number>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));
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user