mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-01 21:37:59 +02:00
fix sleeve memory bug
This commit is contained in:
@@ -59,8 +59,7 @@ function generateCode(difficulty: Difficulty): string {
|
||||
let code = "";
|
||||
for (let i = 0; i < random(difficulty.min, difficulty.max); i++) {
|
||||
let arrow = arrows[Math.floor(4 * Math.random())];
|
||||
while (arrow === code[code.length - 1])
|
||||
arrow = arrows[Math.floor(4 * Math.random())];
|
||||
while (arrow === code[code.length - 1]) arrow = arrows[Math.floor(4 * Math.random())];
|
||||
code += arrow;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user