mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-26 11:10:58 +02:00
Fix wiregame, update changlog
WireGame had been reworked to refer to wires using their index, not the wire number, but the aug highlight display was still referring to the wire number, leading to an off-by-one.
This commit is contained in:
@@ -134,7 +134,7 @@ export function WireCuttingGame({ onSuccess, onFailure, difficulty }: IMinigameP
|
||||
}}
|
||||
>
|
||||
{Array.from({ length: wires.length }).map((_, i) => {
|
||||
const isCorrectWire = cutWires[i + 1] || wiresToCut.has(i + 1);
|
||||
const isCorrectWire = cutWires[i] || wiresToCut.has(i);
|
||||
const color = hasAugment && !isCorrectWire ? Settings.theme.disabled : Settings.theme.primary;
|
||||
return (
|
||||
<Typography key={i} style={{ color: color }}>
|
||||
@@ -148,7 +148,7 @@ export function WireCuttingGame({ onSuccess, onFailure, difficulty }: IMinigameP
|
||||
if ((i === 3 || i === 4) && cutWires[j]) {
|
||||
return <Typography key={j}></Typography>;
|
||||
}
|
||||
const isCorrectWire = cutWires[j + 1] || wiresToCut.has(j + 1);
|
||||
const isCorrectWire = cutWires[j] || wiresToCut.has(j);
|
||||
const wireColor =
|
||||
hasAugment && !isCorrectWire ? Settings.theme.disabled : wire.colors[i % wire.colors.length];
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user