mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-25 14:07:46 +00:00
style + cast changes
This commit is contained in:
parent
4c75f1fd32
commit
02f1bd71c5
4 changed files with 16 additions and 12 deletions
|
@ -1952,7 +1952,7 @@ void Sapphire::Entity::Player::dyeItemFromDyeingInfo()
|
||||||
|
|
||||||
// TODO: subtract/remove dye used
|
// TODO: subtract/remove dye used
|
||||||
|
|
||||||
insertInventoryItem((Sapphire::Common::InventoryType)itemToDyeContainer, (uint16_t)itemToDyeSlot, itemToDye);
|
insertInventoryItem( static_cast < Sapphire::Common::InventoryType > ( itemToDyeContainer ), static_cast < uint16_t > ( itemToDyeSlot ), itemToDye );
|
||||||
writeItem( itemToDye );
|
writeItem( itemToDye );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1123,7 +1123,7 @@ namespace Sapphire::Entity
|
||||||
uint32_t itemToDyeSlot;
|
uint32_t itemToDyeSlot;
|
||||||
uint32_t dyeBagContainer;
|
uint32_t dyeBagContainer;
|
||||||
uint32_t dyeBagSlot;
|
uint32_t dyeBagSlot;
|
||||||
}; PlayerDyeingInfo m_dyeingInfo;
|
} m_dyeingInfo;
|
||||||
|
|
||||||
Common::Util::SpawnIndexAllocator< uint8_t > m_objSpawnIndexAllocator;
|
Common::Util::SpawnIndexAllocator< uint8_t > m_objSpawnIndexAllocator;
|
||||||
Common::Util::SpawnIndexAllocator< uint8_t > m_actorSpawnIndexAllocator;
|
Common::Util::SpawnIndexAllocator< uint8_t > m_actorSpawnIndexAllocator;
|
||||||
|
|
|
@ -279,6 +279,10 @@ void Sapphire::Network::GameConnection::clientTriggerHandler( FrameworkPtr pFw,
|
||||||
}
|
}
|
||||||
case ClientTriggerType::DyeItem: // Dye item
|
case ClientTriggerType::DyeItem: // Dye item
|
||||||
{
|
{
|
||||||
|
// param11 = item to dye container
|
||||||
|
// param12 = item to dye slot
|
||||||
|
// param2 = dye bag container
|
||||||
|
// param4 = dye bag slot
|
||||||
player.setDyeingInfo( param11, param12, param2, param4 );
|
player.setDyeingInfo( param11, param12, param2, param4 );
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
|
@ -74,7 +74,7 @@ namespace Sapphire::Network::Packets::Server
|
||||||
auto& entry = m_data.entries[i];
|
auto& entry = m_data.entries[i];
|
||||||
entry.catalogId = pItem->getId();
|
entry.catalogId = pItem->getId();
|
||||||
entry.quality = pItem->isHq();
|
entry.quality = pItem->isHq();
|
||||||
entry.stain = (uint8_t)pItem->getStain(); //NOTE: More of this packet may be dye info?
|
entry.stain = static_cast < uint8_t > ( pItem->getStain() );
|
||||||
//entry.appearanceCatalogId = pItem->getGlamourId()
|
//entry.appearanceCatalogId = pItem->getGlamourId()
|
||||||
// todo: glamour/materia etc.
|
// todo: glamour/materia etc.
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue