mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-05-05 15:17:48 +02:00
IPVGO: Remove current game history from savefile, re-implement superko (#1175)
This commit is contained in:
committed by
GitHub
parent
fc8958af83
commit
1e5f7184a2
@@ -38,7 +38,7 @@ export function GoTutorialChallenge({
|
||||
const [showReset, setShowReset] = useState(false);
|
||||
|
||||
const handleClick = (x: number, y: number) => {
|
||||
if (stateRef.current.previousBoard) {
|
||||
if (stateRef.current.previousBoards.length) {
|
||||
SnackbarEvents.emit(`Hit 'Reset' to try again`, ToastVariant.WARNING, 2000);
|
||||
return;
|
||||
}
|
||||
@@ -67,6 +67,7 @@ export function GoTutorialChallenge({
|
||||
|
||||
const reset = () => {
|
||||
stateRef.current = getStateCopy(state);
|
||||
stateRef.current.previousBoards = [];
|
||||
setDisplayText(description);
|
||||
setShowReset(false);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user