1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-27 14:57:44 +00:00

send stain/durability

This commit is contained in:
NotAdam 2018-09-01 00:00:19 +10:00
parent 8b00fe6012
commit 24c3c92b7f
3 changed files with 6 additions and 3 deletions

View file

@ -969,7 +969,7 @@ struct FFXIVIpcItemInfo :
uint8_t unknown2;
uint16_t condition;
uint16_t spiritBond;
uint16_t color;
uint16_t stain;
uint32_t glamourCatalogId;
uint16_t materia1;
uint16_t materia2;

View file

@ -318,9 +318,10 @@ void Core::Entity::Player::sendInventory()
itemInfoPacket->data().slot = itM->first;
itemInfoPacket->data().quantity = itM->second->getStackSize();
itemInfoPacket->data().catalogId = itM->second->getId();
itemInfoPacket->data().condition = 30000;
itemInfoPacket->data().condition = itM->second->getDurability();
itemInfoPacket->data().spiritBond = 0;
itemInfoPacket->data().hqFlag = itM->second->isHq() ? 1 : 0;
itemInfoPacket->data().stain = itM->second->getStain();
queuePacket( itemInfoPacket );
}
}

View file

@ -12,7 +12,9 @@ Core::Item::Item( uint64_t uId, uint32_t catalogId, uint64_t model1, uint64_t mo
m_uId( uId ),
m_model1( model1 ),
m_model2( model2 ),
m_isHq( isHq )
m_isHq( isHq ),
m_stain( 0 ),
m_durability( 30000 )
{
auto pExdData = g_fw.get< Data::ExdDataGenerated >();
auto itemInfo = pExdData->get< Core::Data::Item >( catalogId );