fix exploit duplicate

This commit is contained in:
Olivier Gagnon
2021-11-10 19:11:19 -05:00
parent a3346719a0
commit 2cf3d640bb
3 changed files with 5 additions and 2 deletions
+2
View File
@@ -1,9 +1,11 @@
import { Player } from "../Player";
import { sanitizeExploits } from "./Exploit";
export function applyExploit(): void {
if (Player.exploits && Player.exploits.length === 0) {
return;
}
Player.exploits = sanitizeExploits(Player.exploits);
const inc = Math.pow(1.001, Player.exploits.length);
const dec = Math.pow(0.999, Player.exploits.length);