From 79d2a5805835008b1df286ad96dda13ea2be5015 Mon Sep 17 00:00:00 2001 From: YesntSoup Date: Thu, 29 Aug 2024 22:10:26 -0400 Subject: [PATCH] Change automatic RaisedPet name to not happen for WoJS This is because Voltage Dragons get a name later, so this placeholder name currently gets assigned first. I've never done this before, so let me know if I did it wrong lol --- src/Controllers/Common/ContentController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Controllers/Common/ContentController.cs b/src/Controllers/Common/ContentController.cs index 32b8ced..5924f12 100644 --- a/src/Controllers/Common/ContentController.cs +++ b/src/Controllers/Common/ContentController.cs @@ -523,7 +523,8 @@ public class ContentController : Controller { raisedPetData.PetTypeID = petTypeID; raisedPetData.RaisedPetID = 0; // Initially make zero, so the db auto-fills raisedPetData.EntityID = Guid.Parse(dragonId); - raisedPetData.Name = string.Concat("Dragon-", dragonId.AsSpan(0, 8)); // Start off with a random name + if ((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); raisedPetData.UpdateDate = new DateTime(DateTime.Now.Ticks);