From a36a8f5be920c581b1e8f01e5caf73a0fed25ce2 Mon Sep 17 00:00:00 2001 From: Flashfyre Date: Thu, 18 Apr 2024 21:54:07 -0400 Subject: [PATCH] Update schema and version for variant update --- api/savedata/update.go | 2 +- defs/savedata.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/savedata/update.go b/api/savedata/update.go index d616662..12a79a8 100644 --- a/api/savedata/update.go +++ b/api/savedata/update.go @@ -28,7 +28,7 @@ func Update(uuid []byte, slot int, save any) error { return fmt.Errorf("invalid system data") } - if save.GameVersion != "1.0.1" { + if save.GameVersion != "1.0.2" { return fmt.Errorf("client version out of date") } diff --git a/defs/savedata.go b/defs/savedata.go index c6fcaba..f6a22cb 100644 --- a/defs/savedata.go +++ b/defs/savedata.go @@ -38,8 +38,8 @@ type StarterEntry struct { Moveset interface{} `json:"moveset"` EggMoves int `json:"eggMoves"` CandyCount int `json:"candyCount"` + AbilityAttr int `json:"abilityAttr"` PassiveAttr int `json:"passiveAttr"` - VariantAttr int `json:"variantAttr"` ValueReduction int `json:"valueReduction"` }