Merge branch 'main' into online

This commit is contained in:
hahwu 2025-07-23 20:29:55 +08:00
commit c6ed1333c7
13 changed files with 125 additions and 0 deletions

BIN
config/Catnip.xlsx Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -72,6 +72,8 @@ enum ITEM_POP_LABEL { // item弹窗标签
PlayroomTaskReward = 64; // playroom任务奖励
PlayroomUpvote = 65; //
DecorateReward = 66; //
CatnipReward = 67; //
CatnipGrandReward = 68; //
}
enum HANDLE_TYPE {
ADD = 0;
@ -580,6 +582,8 @@ message ResPlayerBriefProfileData{
string NickName = 5;
string PicURL = 6;
int32 ActiveTime = 7;
map<int32, int32> SetEmoji = 11; //
}
//******************NEW VERSION*****************
@ -2407,6 +2411,99 @@ message ResCollect{
RES_CODE Code = 1;
string Msg = 2;
}
// #region
//------------------------------
//
message ReqCatnip{}
message ResCatnip{
int32 Id = 1; // id
int32 Status = 2; // 0 1 2
int32 EndTime = 3; //
int32 Template = 4; //
repeated CatnipGame GameList = 5; //
}
//
message CatnipGame{
int32 Id = 1; // id
int32 Status = 2; // 0 1 2
int32 Progress = 3; //
repeated int32 Reward = 4; // [100,150,200]
ResPlayerSimple Partner = 5; //
}
//
message ReqCatnipInvite{
int32 Id = 1; // id
int64 Uid = 2; // id
}
message ResCatnipInvite{
RES_CODE Code = 1;
string Msg = 2;
}
//
message ReqCatnipAgree{
int32 Id = 1; // id
int64 Uid = 2; // id
}
message ResCatnipAgree{
RES_CODE Code = 1;
string Msg = 2;
}
message ReqCatnipRefuse{
int32 Id = 1; // id
int64 Uid = 2; // id
}
message ResCatnipRefuse{
RES_CODE Code = 1;
string Msg = 2;
}
//
message ReqCatnipMultiply{
int32 Id = 1; // id
int32 Multiply = 2; //
}
message ResCatnipMultiply{
RES_CODE Code = 1;
string Msg = 2;
}
//
message ReqCatnipPlay{
int32 Id = 1; // id
}
message ResCatnipPlay{
RES_CODE Code = 1;
string Msg = 2;
int32 Id = 3; // id
}
//
message ReqCatnipReward{
int32 Id = 1; // id
int32 Progress = 2; //
}
message ResCatnipReward{
RES_CODE Code = 1;
string Msg = 2;
}
//
message ReqCatnipGrandReward{
}
message ResCatnipGrandReward{
RES_CODE Code = 1;
string Msg = 2;
}
// --------------------------------------

View File

@ -472,6 +472,34 @@
"sheet_name" :"RandomNameDataBase",
"fields" :["EnName", "CnName", "Gender"]
},
{
"in_file": "Catnip.xlsx",
"out_file": "CatnipTemplate.json",
"key": "Id",
"sheet_name" :"template",
"fields" :["Template", "PassNum", "ItemCost", "ItemId", "Reward"]
},
{
"in_file": "Catnip.xlsx",
"out_file": "CatnipJackpot.json",
"key": "Id",
"sheet_name" :"Jackpot",
"fields" :["Items", "Growth"]
},
{
"in_file": "Catnip.xlsx",
"out_file": "CatnipMultiplier.json",
"key": "Id",
"sheet_name" :"Multiplier",
"fields" :["Low", "Mid", "High"]
},
{
"in_file": "Catnip.xlsx",
"out_file": "CatnipGame.json",
"key": "Id",
"sheet_name" :"Game",
"fields" :["Template", "Need", "Items"]
},
{
"in_file": "Mining.xlsx",
"out_file": "MiningTemplate.json",