mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 17:53:00 +02:00
fix exploit duplicate
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user