From 6109a191b27073a1448892e4531d356a44cdf3d5 Mon Sep 17 00:00:00 2001 From: Minho Kang Date: Thu, 10 Aug 2017 00:41:37 +0900 Subject: [PATCH] Unlock all contents in duty finder for now --- src/servers/Server_Zone/Player.cpp | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/servers/Server_Zone/Player.cpp b/src/servers/Server_Zone/Player.cpp index e607be79..185ea137 100644 --- a/src/servers/Server_Zone/Player.cpp +++ b/src/servers/Server_Zone/Player.cpp @@ -384,6 +384,14 @@ void Core::Entity::Player::setZone( uint32_t zoneId ) // only initialize the UI if the player in fact just logged in. if( isLogin() ) { + GamePacketNew< FFXIVIpcCFAvailableContents > contentFinderList( getId() ); + for( auto i = 0; i < 72; i++ ) + { + // unlock all contents for now + contentFinderList.data().contents[i] = 0xFF; + } + queuePacket( contentFinderList ); + Server::InitUIPacket initUIPacket( pPlayer ); queuePacket( initUIPacket ); @@ -702,8 +710,8 @@ uint8_t Core::Entity::Player::getLevel() const uint8_t Core::Entity::Player::getLevelForClass( Core::Common::ClassJob pClass ) const { - uint8_t classJobIndex = g_exdData.m_classJobInfoMap[static_cast< uint8_t >( pClass )].exp_idx; - return static_cast< uint8_t >( m_classArray[classJobIndex] ); + uint8_t classJobIndex = g_exdData.m_classJobInfoMap[static_cast< uint8_t >( pClass )].exp_idx; + return static_cast< uint8_t >( m_classArray[classJobIndex] ); } uint32_t Core::Entity::Player::getExp() const