MISC: Simplify graftingIntBonus calculation. (#1445)

The weight of the intelligence bonus is a multiplier to the percentage increase. So, rather than calculate it with a weight of 3 and then divide by 3, we can just calculate it with a weight of 1.
This commit is contained in:
Tom Prince 2024-06-28 20:52:36 -06:00 committed by GitHub
parent 61ec7dde80
commit 32eb6324fd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -21,7 +21,7 @@ export const getGraftingAvailableAugs = (): AugmentationName[] => {
};
export const graftingIntBonus = (): number => {
return 1 + (calculateIntelligenceBonus(Player.skills.intelligence, 3) - 1) / 3;
return calculateIntelligenceBonus(Player.skills.intelligence, 1);
};
export const calculateGraftingTimeWithBonus = (aug: GraftableAugmentation): number => {