挑战卷消耗配置

This commit is contained in:
meixiongfeng 2022-12-19 14:53:43 +08:00
parent c917a96ced
commit fc0414d665
2 changed files with 20 additions and 23 deletions

View File

@ -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
}
]

View File

@ -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
}