diff --git a/api/savedata.go b/api/savedata.go index e52e1ed..f7b6827 100644 --- a/api/savedata.go +++ b/api/savedata.go @@ -53,7 +53,7 @@ func handleSavedataUpdate(uuid []byte, slot int, save any) error { switch save := save.(type) { case defs.SystemSaveData: // System - if save.TrainerID == 0 && save.SecretID == 0 { + if save.TrainerId == 0 && save.SecretId == 0 { return fmt.Errorf("invalid system data") } diff --git a/defs/savedata.go b/defs/savedata.go index cd4a150..7360f76 100644 --- a/defs/savedata.go +++ b/defs/savedata.go @@ -1,8 +1,8 @@ package defs type SystemSaveData struct { - TrainerID int `json:"trainerId"` - SecretID int `json:"secretId"` + TrainerId int `json:"trainerId"` + SecretId int `json:"secretId"` Gender int `json:"gender"` DexData DexData `json:"dexData"` StarterMoveData StarterMoveData `json:"starterMoveData"` @@ -44,7 +44,7 @@ type VoucherUnlocks map[string]int type VoucherCounts map[string]int type EggData struct { - ID int `json:"id"` + Id int `json:"id"` GachaType GachaType `json:"gachaType"` HatchWaves int `json:"hatchWaves"` Timestamp int `json:"timestamp"`