From 86401338e063843994d1a6079bc34a269fb6746c Mon Sep 17 00:00:00 2001 From: CalebRose Date: Sat, 16 May 2026 11:10:22 -0700 Subject: [PATCH] Resolving issue with fetching for weight --- managers/BootstrapManager_easyjson.go | 24 ++++++++++++------------ managers/GenerationManager.go | 6 +++--- structs/BasePlayer.go | 2 +- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/managers/BootstrapManager_easyjson.go b/managers/BootstrapManager_easyjson.go index 2107fdf..d9eabe0 100644 --- a/managers/BootstrapManager_easyjson.go +++ b/managers/BootstrapManager_easyjson.go @@ -779,7 +779,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs3(in *jlexer.Lexer, ou case "Height": out.Height = int8(in.Int8()) case "Weight": - out.Weight = int8(in.Int8()) + out.Weight = int16(in.Int16()) case "Age": out.Age = int8(in.Int8()) case "Stars": @@ -1072,7 +1072,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs3(out *jwriter.Writer, { const prefix string = ",\"Weight\":" out.RawString(prefix) - out.Int8(int8(in.Weight)) + out.Int16(int16(in.Weight)) } { const prefix string = ",\"Age\":" @@ -3563,7 +3563,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs6(in *jlexer.Lexer, ou case "Height": out.Height = int8(in.Int8()) case "Weight": - out.Weight = int8(in.Int8()) + out.Weight = int16(in.Int16()) case "Age": out.Age = int8(in.Int8()) case "Stars": @@ -3994,7 +3994,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs6(out *jwriter.Writer, { const prefix string = ",\"Weight\":" out.RawString(prefix) - out.Int8(int8(in.Weight)) + out.Int16(int16(in.Weight)) } { const prefix string = ",\"Age\":" @@ -15202,7 +15202,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs33(in *jlexer.Lexer, o case "Height": out.Height = int8(in.Int8()) case "Weight": - out.Weight = int8(in.Int8()) + out.Weight = int16(in.Int16()) case "Age": out.Age = int8(in.Int8()) case "Stars": @@ -15505,7 +15505,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs33(out *jwriter.Writer { const prefix string = ",\"Weight\":" out.RawString(prefix) - out.Int8(int8(in.Weight)) + out.Int16(int16(in.Weight)) } { const prefix string = ",\"Age\":" @@ -17671,7 +17671,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs39(in *jlexer.Lexer, o case "Height": out.Height = int8(in.Int8()) case "Weight": - out.Weight = int8(in.Int8()) + out.Weight = int16(in.Int16()) case "Age": out.Age = int8(in.Int8()) case "Stars": @@ -18102,7 +18102,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs39(out *jwriter.Writer { const prefix string = ",\"Weight\":" out.RawString(prefix) - out.Int8(int8(in.Weight)) + out.Int16(int16(in.Weight)) } { const prefix string = ",\"Age\":" @@ -18524,7 +18524,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAStructs38(in *jlexer.Lexer, o case "Height": out.Height = int8(in.Int8()) case "Weight": - out.Weight = int8(in.Int8()) + out.Weight = int16(in.Int16()) case "Age": out.Age = int8(in.Int8()) case "Stars": @@ -18817,7 +18817,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAStructs38(out *jwriter.Writer { const prefix string = ",\"Weight\":" out.RawString(prefix) - out.Int8(int8(in.Weight)) + out.Int16(int16(in.Weight)) } { const prefix string = ",\"Age\":" @@ -25883,7 +25883,7 @@ func easyjson83226b63DecodeGithubComCalebRoseSimFBAModels(in *jlexer.Lexer, out case "Height": out.Height = int8(in.Int8()) case "Weight": - out.Weight = int8(in.Int8()) + out.Weight = int16(in.Int16()) case "Age": out.Age = int8(in.Int8()) case "Stars": @@ -26260,7 +26260,7 @@ func easyjson83226b63EncodeGithubComCalebRoseSimFBAModels(out *jwriter.Writer, i { const prefix string = ",\"Weight\":" out.RawString(prefix) - out.Int8(int8(in.Weight)) + out.Int16(int16(in.Weight)) } { const prefix string = ",\"Age\":" diff --git a/managers/GenerationManager.go b/managers/GenerationManager.go index 40a9549..4d68e94 100644 --- a/managers/GenerationManager.go +++ b/managers/GenerationManager.go @@ -635,7 +635,7 @@ func createRecruit(position string, stars int, firstName, lastName string, blob Age: int8(age), Stars: int8(stars), Height: int8(height), - Weight: int8(weight), + Weight: int16(weight), Stamina: int8(stamina), Injury: int8(injury), FootballIQ: int8(footballIQ), @@ -751,7 +751,7 @@ func createWalkon(position string, firstNameList [][]string, lastNameList [][]st Age: int8(age), Stars: 0, Height: int8(height), - Weight: int8(weight), + Weight: int16(weight), Stamina: int8(stamina), Injury: int8(injury), FootballIQ: int8(footballIQ), @@ -865,7 +865,7 @@ func createCustomCroot(croot []string, id uint, blob map[string]map[string]map[s Age: int8(age), Stars: int8(stars), Height: int8(height), - Weight: int8(weight), + Weight: int16(weight), Stamina: int8(stamina), Injury: int8(injury), FootballIQ: int8(footballIQ), diff --git a/structs/BasePlayer.go b/structs/BasePlayer.go index c0bac3a..2a01dc5 100644 --- a/structs/BasePlayer.go +++ b/structs/BasePlayer.go @@ -26,7 +26,7 @@ type BasePlayer struct { PreviousTeamID uint PreviousTeam string Height int8 - Weight int8 + Weight int16 Age int8 Stars int8 Overall int8