mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 12:45:45 +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:
parent
61ec7dde80
commit
32eb6324fd
@ -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 => {
|
||||
|
Loading…
Reference in New Issue
Block a user