Change certain struct field names back to what they were

fix-voucher-compensation
maru 2024-04-09 01:28:56 -04:00
parent 85055d2921
commit 0f8fc0085e
No known key found for this signature in database
GPG Key ID: 37689350E9CD0F0D
2 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ func handleSavedataUpdate(uuid []byte, slot int, save any) error {
switch save := save.(type) { switch save := save.(type) {
case defs.SystemSaveData: // System case defs.SystemSaveData: // System
if save.TrainerID == 0 && save.SecretID == 0 { if save.TrainerId == 0 && save.SecretId == 0 {
return fmt.Errorf("invalid system data") return fmt.Errorf("invalid system data")
} }

View File

@ -1,8 +1,8 @@
package defs package defs
type SystemSaveData struct { type SystemSaveData struct {
TrainerID int `json:"trainerId"` TrainerId int `json:"trainerId"`
SecretID int `json:"secretId"` SecretId int `json:"secretId"`
Gender int `json:"gender"` Gender int `json:"gender"`
DexData DexData `json:"dexData"` DexData DexData `json:"dexData"`
StarterMoveData StarterMoveData `json:"starterMoveData"` StarterMoveData StarterMoveData `json:"starterMoveData"`
@ -44,7 +44,7 @@ type VoucherUnlocks map[string]int
type VoucherCounts map[string]int type VoucherCounts map[string]int
type EggData struct { type EggData struct {
ID int `json:"id"` Id int `json:"id"`
GachaType GachaType `json:"gachaType"` GachaType GachaType `json:"gachaType"`
HatchWaves int `json:"hatchWaves"` HatchWaves int `json:"hatchWaves"`
Timestamp int `json:"timestamp"` Timestamp int `json:"timestamp"`