We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7d0358 commit b2a1dc7Copy full SHA for b2a1dc7
src/middleware/interceptors/pre-action-middleware.ts
@@ -20,7 +20,7 @@ export const preActionMiddleware = asyncHandler(async (req, _res, next) => {
20
}
21
22
// Verify that the rat hasn't exceeded the number of actions limit.
23
- const MOVE_LIMIT_MULTIPLIER = 12;
+ const MOVE_LIMIT_MULTIPLIER = 4;
24
const ratNumOfActions = await RatService.getNumOfActions(req.user.id, maze.id);
25
const ratMoveLimit = maze.openSquareCount * MOVE_LIMIT_MULTIPLIER;
26
// If the rat's action count exceeds the move limit, we return a 403 forbidden response.
0 commit comments