mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 22:37:45 +00:00
send stain/durability
This commit is contained in:
parent
8b00fe6012
commit
24c3c92b7f
3 changed files with 6 additions and 3 deletions
|
@ -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;
|
||||
|
|
|
@ -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 );
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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 );
|
||||
|
|
Loading…
Add table
Reference in a new issue