上传配置表

This commit is contained in:
liwei1dao 2024-01-11 19:14:44 +08:00
parent 34df2dfa77
commit ecd0f58e81
2 changed files with 57 additions and 0 deletions

View File

@ -0,0 +1,50 @@
[
{
"key": 1,
"tpye": 1,
"cycle": 1,
"maximums": [
{
"a": "item",
"t": "24022003",
"n": 3
}
]
},
{
"key": 2,
"tpye": 1,
"cycle": 1,
"maximums": [
{
"a": "item",
"t": "24013003",
"n": 8
}
]
},
{
"key": 3,
"tpye": 1,
"cycle": 1,
"maximums": [
{
"a": "item",
"t": "18000004",
"n": 10
}
]
},
{
"key": 4,
"tpye": 2,
"cycle": 30,
"maximums": [
{
"a": "attr",
"t": "consumeexp",
"n": 0
}
]
}
]

View File

@ -327,6 +327,7 @@ type Tables struct {
IntegralReward *GameIntegralReward IntegralReward *GameIntegralReward
IntegralCondition *GameIntegralCondition IntegralCondition *GameIntegralCondition
IntegralTime *GameIntegralTime IntegralTime *GameIntegralTime
Restore *GameRestore
CatchbugSetstage *GameCatchbugSetstage CatchbugSetstage *GameCatchbugSetstage
BuzkashiCombo *GameBuzkashiCombo BuzkashiCombo *GameBuzkashiCombo
} }
@ -2232,6 +2233,12 @@ func NewTables(loader JsonLoader) (*Tables, error) {
if tables.IntegralTime, err = NewGameIntegralTime(buf) ; err != nil { if tables.IntegralTime, err = NewGameIntegralTime(buf) ; err != nil {
return nil, err return nil, err
} }
if buf, err = loader("game_restore") ; err != nil {
return nil, err
}
if tables.Restore, err = NewGameRestore(buf) ; err != nil {
return nil, err
}
if buf, err = loader("game_catchbugsetstage") ; err != nil { if buf, err = loader("game_catchbugsetstage") ; err != nil {
return nil, err return nil, err
} }