Skip to content

Commit b2a1dc7

Browse files
committed
Update raze action limit to 4x
1 parent e7d0358 commit b2a1dc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/middleware/interceptors/pre-action-middleware.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export const preActionMiddleware = asyncHandler(async (req, _res, next) => {
2020
}
2121

2222
// Verify that the rat hasn't exceeded the number of actions limit.
23-
const MOVE_LIMIT_MULTIPLIER = 12;
23+
const MOVE_LIMIT_MULTIPLIER = 4;
2424
const ratNumOfActions = await RatService.getNumOfActions(req.user.id, maze.id);
2525
const ratMoveLimit = maze.openSquareCount * MOVE_LIMIT_MULTIPLIER;
2626
// If the rat's action count exceeds the move limit, we return a 403 forbidden response.

0 commit comments

Comments
 (0)