diff --git a/defs/savedata.go b/defs/savedata.go index 7360f76..fe48aab 100644 --- a/defs/savedata.go +++ b/defs/savedata.go @@ -5,8 +5,9 @@ type SystemSaveData struct { SecretId int `json:"secretId"` Gender int `json:"gender"` DexData DexData `json:"dexData"` - StarterMoveData StarterMoveData `json:"starterMoveData"` - StarterEggMoveData StarterEggMoveData `json:"starterEggMoveData"` + StarterData StarterData `json:"starterData"` + StarterMoveData StarterMoveData `json:"starterMoveData"` // Legacy + StarterEggMoveData StarterEggMoveData `json:"starterEggMoveData"` // Legacy GameStats GameStats `json:"gameStats"` Unlocks Unlocks `json:"unlocks"` AchvUnlocks AchvUnlocks `json:"achvUnlocks"` @@ -29,6 +30,17 @@ type DexEntry struct { Ivs []int `json:"ivs"` } +type StarterData map[int]StarterEntry + +type StarterEntry struct { + Moveset interface{} `json:"moveset"` + EggMoves int `json:"eggMoves"` + CandyCount int `json:"candyCount"` + PassiveAttr int `json:"passiveAttr"` + VariantAttr int `json:"variantAttr"` + ValueReduction int `json:"valueReduction"` +} + type StarterMoveData map[int]interface{} type StarterEggMoveData map[int]int