mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 01:32:55 +02:00
1.4
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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 {
|
||||
console.log(`${sharePower} => ${CSM(sharePower)}`);
|
||||
return CSM(sharePower);
|
||||
}
|
||||
Reference in New Issue
Block a user