bitburner-src/src/NetworkShare/Share.tsx
2022-01-19 02:47:51 +02:00

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);
}