mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2026-10-04 11:53:44 +00:00
feat: store each named pet's LOT in pet_names
pet_names gets a pet_lot column (mysql 80, sqlite 63). The world writes it whenever it saves a pet name, from the pet entity's LOT, and fills it in for older rows when the owner loads into a world (from the pets the game loads for that character, only where it is still missing). The dashboard's pet name tables read pet_lot instead of scanning the owner's character XML; pets without it yet show as Unknown. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -406,6 +406,7 @@ public:
|
||||
void RejectPetName(const int64_t id) override;
|
||||
std::vector<LWOOBJID> GetPetsWithUnknownOwner() override;
|
||||
void SetPetOwner(const LWOOBJID petId, const LWOOBJID ownerId) override;
|
||||
void SetPetLotIfMissing(const LWOOBJID petId, const LOT petLot) override;
|
||||
nlohmann::json GetAccountCharacters(uint32_t accountId) override;
|
||||
void DeleteAccount(const uint32_t accountId) override;
|
||||
void InsertAuditLog(uint32_t accountId, const std::string_view accountName, const std::string_view action, const std::string_view description, uint32_t targetAccountId, LWOOBJID targetCharacterId) override;
|
||||
|
||||
Reference in New Issue
Block a user