mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-01 00:27:44 +00:00
Actually send gc information, too
This commit is contained in:
parent
721b1c745a
commit
61edc8248b
2 changed files with 12 additions and 5 deletions
|
@ -148,10 +148,9 @@ enum class ExVersion :
|
|||
|
||||
///////////////////////////////////////////////////////////
|
||||
//GrandCompany.exd
|
||||
enum class GrandCompany :
|
||||
uint8_t
|
||||
enum GrandCompany : uint8_t
|
||||
{
|
||||
None = 0,
|
||||
NoGc = 0,
|
||||
Maelstrom = 1,
|
||||
OrderoftheTwinAdder = 2,
|
||||
ImmortalFlames = 3,
|
||||
|
@ -159,8 +158,7 @@ enum class GrandCompany :
|
|||
|
||||
///////////////////////////////////////////////////////////
|
||||
//GuardianDeity.exd
|
||||
enum class GuardianDeity :
|
||||
uint8_t
|
||||
enum class GuardianDeity : uint8_t
|
||||
{
|
||||
HalonetheFury = 1,
|
||||
MenphinatheLover = 2,
|
||||
|
|
|
@ -434,6 +434,15 @@ void Core::Network::GameConnection::finishLoadingHandler( const Core::Network::P
|
|||
Entity::Player& player )
|
||||
{
|
||||
player.sendQuestInfo();
|
||||
|
||||
// TODO: load and save this data instead of hardcoding
|
||||
auto gcPacket = makeZonePacket< FFXIVGCAffiliation >( player.getId() );
|
||||
gcPacket->data().gcId = player.getGc();
|
||||
gcPacket->data().gcRank[ 0 ] = player.getGcRankArray()[ 0 ];
|
||||
gcPacket->data().gcRank[ 1 ] = player.getGcRankArray()[ 1 ];
|
||||
gcPacket->data().gcRank[ 2 ] = player.getGcRankArray()[ 2 ];
|
||||
player.queuePacket( gcPacket );
|
||||
|
||||
player.getCurrentZone()->onFinishLoading( player );
|
||||
|
||||
// player is done zoning
|
||||
|
|
Loading…
Add table
Reference in a new issue