diff --git a/bin/json/game_restore.json b/bin/json/game_restore.json new file mode 100644 index 000000000..cbb6d2da4 --- /dev/null +++ b/bin/json/game_restore.json @@ -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 + } + ] + } +] \ No newline at end of file diff --git a/sys/configure/structs/Tables.go b/sys/configure/structs/Tables.go index 5272b3c45..00e3bb849 100644 --- a/sys/configure/structs/Tables.go +++ b/sys/configure/structs/Tables.go @@ -327,6 +327,7 @@ type Tables struct { IntegralReward *GameIntegralReward IntegralCondition *GameIntegralCondition IntegralTime *GameIntegralTime + Restore *GameRestore CatchbugSetstage *GameCatchbugSetstage BuzkashiCombo *GameBuzkashiCombo } @@ -2232,6 +2233,12 @@ func NewTables(loader JsonLoader) (*Tables, error) { if tables.IntegralTime, err = NewGameIntegralTime(buf) ; err != nil { 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 { return nil, err }