Added HaiFire's suggestion

I did have this in my local file but forgot to add it, my bad
This commit is contained in:
YesntSoup 2024-08-30 15:35:09 -04:00 committed by GitHub
parent 353b39e04c
commit f00fcb32f2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -523,6 +523,7 @@ public class ContentController : Controller {
raisedPetData.PetTypeID = petTypeID; raisedPetData.PetTypeID = petTypeID;
raisedPetData.RaisedPetID = 0; // Initially make zero, so the db auto-fills raisedPetData.RaisedPetID = 0; // Initially make zero, so the db auto-fills
raisedPetData.EntityID = Guid.Parse(dragonId); raisedPetData.EntityID = Guid.Parse(dragonId);
uint gameVersion = ClientVersion.GetVersion(apiKey);
if (gameVersion > ClientVersion.Max_OldJS || (gameVersion & ClientVersion.WoJS) == 0) if (gameVersion > ClientVersion.Max_OldJS || (gameVersion & ClientVersion.WoJS) == 0)
raisedPetData.Name = string.Concat("Dragon-", dragonId.AsSpan(0, 8)); // Start off with a random name (if game isn't WoJS) raisedPetData.Name = string.Concat("Dragon-", dragonId.AsSpan(0, 8)); // Start off with a random name (if game isn't WoJS)
raisedPetData.IsSelected = false; // The api returns false, not sure why raisedPetData.IsSelected = false; // The api returns false, not sure why