From 621bdb0ac5412ad62883bdb67c1353c4965adae0 Mon Sep 17 00:00:00 2001 From: Damon Murdoch Date: Thu, 21 Jul 2022 01:33:44 +1000 Subject: [PATCH] Removed mostly broken scratch sheet stuff --- src/modules/game.ts | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/modules/game.ts b/src/modules/game.ts index 869d4f6..3956ea7 100644 --- a/src/modules/game.ts +++ b/src/modules/game.ts @@ -913,6 +913,7 @@ export default class GameModule extends Module { // Get the information from the request let body = wm.wm.protobuf.SaveScratchSheetRequest.decode(req.body); + /* // Get all of the scratch sheets for the user let scratchSheets = await prisma.scratchSheet.findMany({ where: { @@ -981,16 +982,13 @@ export default class GameModule extends Module { }) ); } + */ let msg = { error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS, - scratchSheets : scratch_sheets, + scratchSheets : [], currentSheet: body.targetSheet, - numOfScratched: numOfScratched, - earnedItem: wm.wm.protobuf.UserItem.create({ - category: scratchSquare.category, - itemId: scratchSquare.itemId, - }) + numOfScratched: 0, } let resp = wm.wm.protobuf.SaveScratchSheetResponse.encode(msg);