Added Max_OldJS to the previous PR

This commit is contained in:
YesntSoup 2024-08-30 14:15:38 -04:00 committed by GitHub
parent 79d2a58058
commit 353b39e04c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -523,7 +523,7 @@ public class ContentController : Controller {
raisedPetData.PetTypeID = petTypeID;
raisedPetData.RaisedPetID = 0; // Initially make zero, so the db auto-fills
raisedPetData.EntityID = Guid.Parse(dragonId);
if ((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.IsSelected = false; // The api returns false, not sure why
raisedPetData.CreateDate = new DateTime(DateTime.Now.Ticks);