Skip to content

Commit

Permalink
Update schema and version for variant update
Browse files Browse the repository at this point in the history
  • Loading branch information
Flashfyre committed Apr 19, 2024
1 parent 62102ab commit a36a8f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/savedata/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down
2 changes: 1 addition & 1 deletion defs/savedata.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand Down

0 comments on commit a36a8f5

Please sign in to comment.