From fc0414d6652c2898e70f4c43e8f529937b46be8b Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 19 Dec 2022 14:53:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=91=E6=88=98=E5=8D=B7=E6=B6=88=E8=80=97?= =?UTF-8?q?=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bin/json/game_global.json | 18 +++++++++-------- sys/configure/structs/game.globalData.go | 25 ++++++++++-------------- 2 files changed, 20 insertions(+), 23 deletions(-) diff --git a/bin/json/game_global.json b/bin/json/game_global.json index f537f7a2c..6b1cf2023 100644 --- a/bin/json/game_global.json +++ b/bin/json/game_global.json @@ -172,13 +172,13 @@ "n": 1 }, "hunting_reset": 1, - "hunting_cap": [ - 25001, - 25004, - 34006, - 35001, - 35002 - ], + "enchantboss_initial": 10, + "enchantboss_max": 10, + "enchantboss_cos": { + "a": "item", + "t": "100005", + "n": 1 + }, "game_time": [ 1, 24 @@ -325,6 +325,8 @@ "CGPloatTxt": [ "First_plot1", "First_plot2" - ] + ], + "VIP_DaysSent": 7, + "MonthlyCard_DaysSent": 30 } ] \ No newline at end of file diff --git a/sys/configure/structs/game.globalData.go b/sys/configure/structs/game.globalData.go index 757ad1543..027381ad7 100644 --- a/sys/configure/structs/game.globalData.go +++ b/sys/configure/structs/game.globalData.go @@ -87,7 +87,9 @@ type GameGlobalData struct { HuntingRecovery int32 HuntingCos *Gameatn HuntingReset int32 - HuntingCap []int32 + EnchantbossInitial int32 + EnchantbossMax int32 + EnchantbossCos *Gameatn GameTime []int32 SellingTipsStrengthen int32 SellingTipsStar int32 @@ -142,6 +144,8 @@ type GameGlobalData struct { DrawCardSupplement1 int32 DrawCardSupplement10 int32 CGPloatTxt []string + VIPDaysSent int32 + MonthlyCardDaysSent int32 } const TypeId_GameGlobalData = 477542761 @@ -292,20 +296,9 @@ func (_v *GameGlobalData)Deserialize(_buf map[string]interface{}) (err error) { { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["hunting_recovery"].(float64); !_ok_ { err = errors.New("hunting_recovery error"); return }; _v.HuntingRecovery = int32(_tempNum_) } { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["hunting_cos"].(map[string]interface{}); !_ok_ { err = errors.New("hunting_cos error"); return }; if _v.HuntingCos, err = DeserializeGameatn(_x_); err != nil { return } } { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["hunting_reset"].(float64); !_ok_ { err = errors.New("hunting_reset error"); return }; _v.HuntingReset = int32(_tempNum_) } - { - var _arr_ []interface{} - var _ok_ bool - if _arr_, _ok_ = _buf["hunting_cap"].([]interface{}); !_ok_ { err = errors.New("hunting_cap error"); return } - - _v.HuntingCap = make([]int32, 0, len(_arr_)) - - for _, _e_ := range _arr_ { - var _list_v_ int32 - { var _ok_ bool; var _x_ float64; if _x_, _ok_ = _e_.(float64); !_ok_ { err = errors.New("_list_v_ error"); return }; _list_v_ = int32(_x_) } - _v.HuntingCap = append(_v.HuntingCap, _list_v_) - } - } - + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["enchantboss_initial"].(float64); !_ok_ { err = errors.New("enchantboss_initial error"); return }; _v.EnchantbossInitial = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["enchantboss_max"].(float64); !_ok_ { err = errors.New("enchantboss_max error"); return }; _v.EnchantbossMax = int32(_tempNum_) } + { var _ok_ bool; var _x_ map[string]interface{}; if _x_, _ok_ = _buf["enchantboss_cos"].(map[string]interface{}); !_ok_ { err = errors.New("enchantboss_cos error"); return }; if _v.EnchantbossCos, err = DeserializeGameatn(_x_); err != nil { return } } { var _arr_ []interface{} var _ok_ bool @@ -594,6 +587,8 @@ func (_v *GameGlobalData)Deserialize(_buf map[string]interface{}) (err error) { } } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["VIP_DaysSent"].(float64); !_ok_ { err = errors.New("VIP_DaysSent error"); return }; _v.VIPDaysSent = int32(_tempNum_) } + { var _ok_ bool; var _tempNum_ float64; if _tempNum_, _ok_ = _buf["MonthlyCard_DaysSent"].(float64); !_ok_ { err = errors.New("MonthlyCard_DaysSent error"); return }; _v.MonthlyCardDaysSent = int32(_tempNum_) } return }