Skip to content

Commit

Permalink
bugfix: max skill level is 6
Browse files Browse the repository at this point in the history
  • Loading branch information
Glup3 committed Jan 17, 2021
1 parent 9dc3dab commit 3010676
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/commands/player/addPlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class AddPlayerCommand extends Command {
key: 'level',
prompt: "What's his/her skill level?",
type: 'float',
validate: (level: number) => level >= 1 && level <= 5,
validate: (level: number) => level >= 1 && level <= 6,
},
],
});
Expand Down
2 changes: 1 addition & 1 deletion src/commands/player/updatePlayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export default class UpdatePlayerCommand extends Command {
key: 'level',
prompt: "What's his/her new skill level?",
type: 'float',
validate: (level: number) => level >= 1 && level <= 5,
validate: (level: number) => level >= 1 && level <= 6,
},
],
});
Expand Down

0 comments on commit 3010676

Please sign in to comment.