mini game fixes

This commit is contained in:
phyzical
2022-03-25 23:39:14 +08:00
parent e69bb21b5c
commit a0d845ffae
8 changed files with 33 additions and 32 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ export function CheatCodeGame(props: IMinigameProps): React.ReactElement {
function press(this: Document, event: KeyboardEvent): void {
event.preventDefault();
if (code[index] !== getArrow(event) || (hasAugment && getInverseArrow(event))) {
if (code[index] !== getArrow(event) && (!hasAugment || code[index] !== getInverseArrow(event))) {
props.onFailure();
return;
}