mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 15:17:43 -05:00
Fixed long trailing decimals from displaying for Special Weapon ink consumption stats (#1212)
This commit is contained in:
@@ -1313,8 +1313,10 @@ function specialHookInkConsumptionPercentage(
|
||||
});
|
||||
|
||||
return {
|
||||
baseValue: roundToNDecimalPlaces(baseEffect * 100) / ZIPCASTER_INKTANK_SIZE,
|
||||
value: roundToNDecimalPlaces(effect * 100) / ZIPCASTER_INKTANK_SIZE,
|
||||
baseValue: roundToNDecimalPlaces(
|
||||
(baseEffect * 100) / ZIPCASTER_INKTANK_SIZE
|
||||
),
|
||||
value: roundToNDecimalPlaces((effect * 100) / ZIPCASTER_INKTANK_SIZE),
|
||||
modifiedBy: SPECIAL_HOOK_INK_CONSUMPTION_PERCENTAGE_KEY,
|
||||
};
|
||||
}
|
||||
@@ -1342,8 +1344,10 @@ function specialInkConsumptionPerSecondPercentage(
|
||||
});
|
||||
|
||||
return {
|
||||
baseValue: roundToNDecimalPlaces(baseEffect * 100) / ZIPCASTER_INKTANK_SIZE,
|
||||
value: roundToNDecimalPlaces(effect * 100) / ZIPCASTER_INKTANK_SIZE,
|
||||
baseValue: roundToNDecimalPlaces(
|
||||
(baseEffect * 100) / ZIPCASTER_INKTANK_SIZE
|
||||
),
|
||||
value: roundToNDecimalPlaces((effect * 100) / ZIPCASTER_INKTANK_SIZE),
|
||||
modifiedBy: SPECIAL_INK_CONSUMPTION_PER_SECOND_PERCENTAGE_KEY,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user