mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-27 10:03:48 +01:00
13 lines
294 B
TypeScript
13 lines
294 B
TypeScript
|
import { CalculateShareMult as CSM } from "./formulas/share";
|
||
|
|
||
|
export let sharePower = 1;
|
||
|
|
||
|
export function StartSharing(threads: number): () => void {
|
||
|
sharePower += threads;
|
||
|
return () => (sharePower -= threads);
|
||
|
}
|
||
|
|
||
|
export function CalculateShareMult(): number {
|
||
|
return CSM(sharePower);
|
||
|
}
|