Update GaCy-GO
This commit is contained in:
1 parent
da8a32f60d
commit
0cbe460e49
345 files changed
+98202
-77559
No files matched your search
@@ -74,6 +74,14 @@ func playerArchive(s *Session) *goproto.ArchiveData {
|
||||
}
|
||||
|
||||
func init() {
|
||||
// AdventureModule._OnGetCurBattleInfoScRsp dereferences BattleInfo even
|
||||
// when nothing is running (Player.log 2026-10-24 NRE on an empty reply);
|
||||
// the isolated reference answers with an empty, non-null SceneBattleInfo.
|
||||
handle("GetCurBattleInfo", func(s *Session, req *goproto.GetCurBattleInfoCsReq, rsp *goproto.GetCurBattleInfoScRsp) error {
|
||||
rsp.BattleInfo = &goproto.SceneBattleInfo{}
|
||||
return nil
|
||||
})
|
||||
|
||||
handle("GetBag", func(s *Session, req *goproto.GetBagCsReq, rsp *goproto.GetBagScRsp) error {
|
||||
player := s.JSON()
|
||||
if player == nil {
|
||||
@@ -261,43 +269,6 @@ func init() {
|
||||
return nil
|
||||
})
|
||||
|
||||
// --- gacha ---
|
||||
handle("GetGachaInfo", func(s *Session, req *goproto.GetGachaInfoCsReq, rsp *goproto.GetGachaInfoScRsp) error {
|
||||
rsp.GachaInfoList = append(rsp.GachaInfoList, &goproto.GachaInfo{
|
||||
EndTime: 1924992000,
|
||||
BeginTime: 0,
|
||||
GachaCeiling: &goproto.GachaCeiling{},
|
||||
PrizeItemList: []uint32{23002, 1003, 1101, 1104, 23000, 23003},
|
||||
ItemDetailList: []uint32{
|
||||
1001, 1002, 1008, 1009, 1013, 1103, 1105, 1106, 1108, 1109, 1110, 1111, 1201, 1202,
|
||||
1206, 1207, 1210, 1003, 1004, 1101, 1107, 1104, 1209, 1211, 21000, 21001, 21002, 21003,
|
||||
21004, 21005, 21006, 21007, 21008, 21009, 21010, 21011, 21012, 21013, 21014, 21015,
|
||||
21016, 21017, 21018, 21019, 21020, 23000, 23002, 23003, 23004, 23005, 23012, 23013,
|
||||
},
|
||||
GachaId: 1001,
|
||||
})
|
||||
return nil
|
||||
})
|
||||
|
||||
handle("DoGacha", func(s *Session, req *goproto.DoGachaCsReq, rsp *goproto.DoGachaScRsp) error {
|
||||
rsp.GachaId = req.GachaId
|
||||
rsp.GachaNum = req.GachaNum
|
||||
for v := uint32(0); v < req.GachaNum; v++ {
|
||||
itemID := uint32(1310)
|
||||
if v%2 != 0 {
|
||||
itemID = 1314
|
||||
}
|
||||
rsp.GachaItemList = append(rsp.GachaItemList, &goproto.GachaItem{
|
||||
GachaItem: &goproto.Item{ItemId: itemID},
|
||||
TokenItem: &goproto.ItemList{
|
||||
ItemList: []*goproto.Item{{ItemId: 251, Num: 100}},
|
||||
},
|
||||
TransferItemList: &goproto.ItemList{},
|
||||
})
|
||||
}
|
||||
return nil
|
||||
})
|
||||
|
||||
// --- mail ---
|
||||
handle("GetMail", func(s *Session, req *goproto.GetMailCsReq, rsp *goproto.GetMailScRsp) error {
|
||||
rsp.IsEnd = true
|
||||
|
||||
Reference in new issue
Block a user