feat(web/skillcheck): random skill check key from inputs table

This commit is contained in:
Luke
2023-02-12 19:26:09 +01:00
parent 7c2e894b67
commit f166c1675e
4 changed files with 42 additions and 17 deletions

View File

@@ -2,10 +2,13 @@ import { debugData } from '../../../utils/debugData';
import { GameDifficulty } from '../../skillcheck';
export const debugSkillCheck = () => {
debugData<GameDifficulty | GameDifficulty[]>([
debugData<{ difficulty: GameDifficulty | GameDifficulty[]; inputs?: string[] }>([
{
action: 'startSkillCheck',
data: ['easy', 'easy', 'hard'],
data: {
difficulty: ['easy', 'easy', 'hard'],
inputs: ['W', 'A', 'S', 'D'],
},
},
]);
};