mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-16 06:18:42 +02:00
IPVGO: Ensure there is always at least one offline node (#2030)
This commit is contained in:
committed by
GitHub
parent
47b34c8563
commit
19f859ae87
@@ -15,7 +15,7 @@ export function addObstacles(boardState: BoardState) {
|
||||
const shouldAddCenterBreak = !shouldRemoveCorner && !shouldRemoveRows && random(0, 3);
|
||||
const obstacleTypeCount = +shouldRemoveCorner + +shouldRemoveRows + +shouldAddCenterBreak;
|
||||
|
||||
const edgeDeadCount = random(0, (getScale(boardState.board) + 2 - obstacleTypeCount) * 1.5);
|
||||
const edgeDeadCount = random(1, (getScale(boardState.board) + 2 - obstacleTypeCount) * 1.5);
|
||||
|
||||
if (shouldRemoveCorner) {
|
||||
boardState.board = addDeadCorners(boardState.board, random);
|
||||
|
||||
Reference in New Issue
Block a user