bitburner-src/src/NetworkShare/Share.tsx

13 lines
294 B
TypeScript
Raw Normal View History

2022-01-18 20:02:12 +01:00
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);
}