1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-05-25 19:17:45 +00:00

Update ItemAction.cpp

This commit is contained in:
Skyliegirl33 2021-09-17 17:33:38 +00:00 committed by GitHub
parent d8e5bbf720
commit 92532bdddc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -57,7 +57,7 @@ void ItemAction::execute()
case Common::ItemActionType::ItemActionOrchestrion: case Common::ItemActionType::ItemActionOrchestrion:
{ {
handleOrchestrionItem(); //handleOrchestrionItem();
break; break;
} }
@ -76,13 +76,6 @@ void ItemAction::handleMountItem()
player->dropInventoryItem ( static_cast< Common::InventoryType >( m_itemSourceContainer ), m_itemSourceSlot, false ); player->dropInventoryItem ( static_cast< Common::InventoryType >( m_itemSourceContainer ), m_itemSourceSlot, false );
} }
void ItemAction::handleOrchestrionItem()
{
auto player = getSourceChara()->getAsPlayer();
player->learnSong( m_itemAction->data[ 0 ], m_itemAction->data[ 1 ] );
player->dropInventoryItem ( static_cast< Common::InventoryType >( m_itemSourceContainer ), m_itemSourceSlot, false );
}
void ItemAction::handleVFXItem() void ItemAction::handleVFXItem()
{ {
Common::EffectEntry effect{}; Common::EffectEntry effect{};