mirror of
https://github.com/shiroikitsu8/Bayshore_6r_legacy.git
synced 2024-11-29 01:34:37 +01:00
Removed mostly broken scratch sheet stuff
This commit is contained in:
parent
c5d41df574
commit
621bdb0ac5
@ -913,6 +913,7 @@ export default class GameModule extends Module {
|
|||||||
// Get the information from the request
|
// Get the information from the request
|
||||||
let body = wm.wm.protobuf.SaveScratchSheetRequest.decode(req.body);
|
let body = wm.wm.protobuf.SaveScratchSheetRequest.decode(req.body);
|
||||||
|
|
||||||
|
/*
|
||||||
// Get all of the scratch sheets for the user
|
// Get all of the scratch sheets for the user
|
||||||
let scratchSheets = await prisma.scratchSheet.findMany({
|
let scratchSheets = await prisma.scratchSheet.findMany({
|
||||||
where: {
|
where: {
|
||||||
@ -981,16 +982,13 @@ export default class GameModule extends Module {
|
|||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
let msg = {
|
let msg = {
|
||||||
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
error: wm.wm.protobuf.ErrorCode.ERR_SUCCESS,
|
||||||
scratchSheets : scratch_sheets,
|
scratchSheets : [],
|
||||||
currentSheet: body.targetSheet,
|
currentSheet: body.targetSheet,
|
||||||
numOfScratched: numOfScratched,
|
numOfScratched: 0,
|
||||||
earnedItem: wm.wm.protobuf.UserItem.create({
|
|
||||||
category: scratchSquare.category,
|
|
||||||
itemId: scratchSquare.itemId,
|
|
||||||
})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
let resp = wm.wm.protobuf.SaveScratchSheetResponse.encode(msg);
|
let resp = wm.wm.protobuf.SaveScratchSheetResponse.encode(msg);
|
||||||
|
Loading…
Reference in New Issue
Block a user