1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-26 22:37:45 +00:00

Add level1 to setCLassJob.

This commit is contained in:
Squall Leonhart 2018-10-20 13:56:01 +03:00
parent ddae03382a
commit 679686e6ff
2 changed files with 3 additions and 3 deletions

View file

@ -1000,8 +1000,8 @@ struct FFXIVIpcPlayerClassInfo :
uint16_t classId;
uint8_t unknown;
uint8_t isSpecialist;
uint16_t level; // Locks actions, equipment, prob more
uint16_t level1; // Locks roles, prob more
uint16_t level; // Locks actions, equipment, prob more. Player's current level (synced).
uint16_t level1; // Locks roles, prob more. Player's actual unsynced level.
uint32_t roleActions[10];
};

View file

@ -746,6 +746,7 @@ void Core::Entity::Player::setClassJob( Common::ClassJob classJob )
auto classInfoPacket = makeZonePacket< FFXIVIpcPlayerClassInfo >( getId() );
classInfoPacket->data().classId = static_cast< uint8_t >( getClass() );
classInfoPacket->data().level1 = getLevel();
classInfoPacket->data().level = getLevel();
queuePacket( classInfoPacket );
@ -1733,4 +1734,3 @@ bool Core::Entity::Player::isOnEnterEventDone() const
{
return m_onEnterEventDone;
}