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) {
case defs.SystemSaveData: // System
if save.TrainerID == 0 && save.SecretID == 0 {
if save.TrainerId == 0 && save.SecretId == 0 {
return fmt.Errorf("invalid system data")
}

View File

@ -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"`