mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-08 03:24:48 +01:00
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:
@ -21,7 +21,7 @@ export const getGraftingAvailableAugs = (): AugmentationName[] => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const graftingIntBonus = (): number => {
|
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 => {
|
export const calculateGraftingTimeWithBonus = (aug: GraftableAugmentation): number => {
|
||||||
|
Reference in New Issue
Block a user