Update GaCy-GO
This commit is contained in:
1 parent
da8a32f60d
commit
0cbe460e49
345 files changed
+98202
-77559
No files matched your search
@@ -44,7 +44,7 @@ func cwCapacitySync(player *pb.NIHNGPKHEPC) *pb.KFNCAIHIHCM {
|
||||
}
|
||||
|
||||
func init() {
|
||||
handle("GridFightBuyExp", func(s *Session, _ *pb.GridFightBuyExpCsReq, rsp *pb.GridFightBuyExpScRsp) error {
|
||||
cwHandle("GridFightBuyExp", func(s *Session, _ *pb.GridFightBuyExpCsReq, rsp *pb.GridFightBuyExpScRsp) error {
|
||||
rsp.Retcode = uint32(pb.Retcode_RET_GRID_FIGHT_PARAM_NOT_MATCH)
|
||||
catalog, data, err := cwPreparingData(s)
|
||||
if err != nil {
|
||||
@@ -66,6 +66,7 @@ func init() {
|
||||
}
|
||||
gain, err := catalog.IntegerRule("GridFight_LevelUpExp")
|
||||
if err != nil || gain <= 0 || uint64(gain) > uint64(^uint32(0)) {
|
||||
PacketLog(fmt.Sprintf("CW_BUY_EXP rejected: missing or invalid GridFight_LevelUpExp rule value=%d error=%v", gain, err))
|
||||
rsp.Retcode = uint32(pb.Retcode_RET_GRID_FIGHT_CONF_MISS)
|
||||
return nil
|
||||
}
|
||||
@@ -80,7 +81,7 @@ func init() {
|
||||
}
|
||||
notify := cwNotify(cwGoldSync(player.Gold), cwCapacitySync(player), cwShopSync(shop), &pb.KFNCAIHIHCM{MNLCHEJKDHO: &pb.KFNCAIHIHCM_PLPHEIBLPDL{PLPHEIBLPDL: &pb.PIHKLPJGEPM{Level: player.EHNJDIDABHD, Exp: player.GridFightCurLevelExp, HFMKLAPEKFA: player.NDAINFLOLPJ}}})
|
||||
notify.GCPNIHHBGGD[0].GridUpdateSrc = pb.JJDFGMMMCMI_JJDFGMMMCMI_IHEKGIGCGEC
|
||||
if err = s.Send(notify); err != nil {
|
||||
if err = cwSend(s, notify); err != nil {
|
||||
return err
|
||||
}
|
||||
rsp.Retcode = 0
|
||||
|
||||
Reference in new issue
Block a user