This commit is contained in:
Olivier Gagnon
2022-01-18 14:02:12 -05:00
parent c5089ab82a
commit 05cbc25a8f
36 changed files with 355 additions and 178 deletions
+13
View File
@@ -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);
}