From: xangelo Date: Thu, 17 Aug 2023 15:11:32 +0000 (-0400) Subject: fix: only disable equipping/unequipping in a fight X-Git-Tag: v0.2.10~7 X-Git-Url: https://git.xangelo.ca/?a=commitdiff_plain;h=b6e9f9a339833151da0f748b249594053d84f67f;p=risinglegends.git fix: only disable equipping/unequipping in a fight --- diff --git a/src/server/api.ts b/src/server/api.ts index 96adb4e..923e716 100644 --- a/src/server/api.ts +++ b/src/server/api.ts @@ -451,13 +451,13 @@ app.post('/player/stat/:stat', authEndpoint, async (req: AuthRequest, res: Respo res.send(renderPlayerBar(req.player, equippedItems) + renderProfilePage(req.player)); }); -app.get('/player/skills', authEndpoint, blockPlayerInFight, async (req: AuthRequest, res: Response) => { +app.get('/player/skills', authEndpoint, async (req: AuthRequest, res: Response) => { const skills = await getPlayerSkills(req.player.id); res.send(renderSkills(skills)); }); -app.get('/player/inventory', authEndpoint, blockPlayerInFight, async (req: AuthRequest, res: Response) => { +app.get('/player/inventory', authEndpoint, async (req: AuthRequest, res: Response) => { const [inventory, items] = await Promise.all([ getInventory(req.player.id), getPlayersItems(req.player.id)