mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-01-02 03:17:34 +01:00
Fix grafting times
This commit is contained in:
parent
faa3e212f3
commit
ebae95dd4a
@ -23,7 +23,7 @@ export class GraftableAugmentation {
|
|||||||
|
|
||||||
get time(): number {
|
get time(): number {
|
||||||
// Time = 1 hour * log_2(sum(aug multipliers) || 1) + 30 minutes
|
// Time = 1 hour * log_2(sum(aug multipliers) || 1) + 30 minutes
|
||||||
const antiLog = Math.max(sum(Object.values(this.augmentation.mults)), 1);
|
const antiLog = Math.max(sum(Object.values(this.augmentation.mults).filter((x) => x !== 1)), 1);
|
||||||
|
|
||||||
const mult = Math.log2(antiLog);
|
const mult = Math.log2(antiLog);
|
||||||
return (CONSTANTS.AugmentationGraftingTimeBase * mult + CONSTANTS.MillisecondsPerHalfHour) / 2;
|
return (CONSTANTS.AugmentationGraftingTimeBase * mult + CONSTANTS.MillisecondsPerHalfHour) / 2;
|
||||||
|
Loading…
Reference in New Issue
Block a user