mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-22 05:27:19 +00:00
clone ID now based on character data
This commit is contained in:
parent
fe334d8739
commit
bd6bdddcde
@ -199,12 +199,16 @@ void PropertyManagementComponent::Claim(const LWOOBJID playerId)
|
||||
|
||||
const auto& worldId = zone->GetZoneID();
|
||||
const auto zoneId = worldId.GetMapID();
|
||||
const auto cloneId = worldId.GetCloneID();
|
||||
|
||||
auto* entity = EntityManager::Instance()->GetEntity(playerId);
|
||||
|
||||
auto* user = entity->GetParentUser();
|
||||
|
||||
auto character = entity->GetCharacter();
|
||||
if (!character) return;
|
||||
|
||||
const auto cloneId = character->GetPropertyCloneID();
|
||||
|
||||
propertyId = ObjectIDManager::GenerateRandomObjectID();
|
||||
|
||||
auto* insertion = Database::CreatePreppedStmt(
|
||||
|
Loading…
Reference in New Issue
Block a user