mirror of
https://github.com/SoDOff-Project/sodoff.git
synced 2025-10-12 00:38:48 -07:00
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
This commit is contained in:
parent
2f5a589bd4
commit
79d2a58058
@ -523,7 +523,8 @@ 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);
|
||||||
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.IsSelected = false; // The api returns false, not sure why
|
||||||
raisedPetData.CreateDate = new DateTime(DateTime.Now.Ticks);
|
raisedPetData.CreateDate = new DateTime(DateTime.Now.Ticks);
|
||||||
raisedPetData.UpdateDate = new DateTime(DateTime.Now.Ticks);
|
raisedPetData.UpdateDate = new DateTime(DateTime.Now.Ticks);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user