mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 20:37:05 +02:00
6 lines
172 B
TypeScript
6 lines
172 B
TypeScript
export function CalculateShareMult(power: number): number {
|
|
const x = 1 + Math.log(power) / (8 * Math.log(1000));
|
|
if (isNaN(x) || !isFinite(x)) return 1;
|
|
return x;
|
|
}
|