mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-25 11:07:45 +00:00
Update ItemAction.cpp
This commit is contained in:
parent
d8e5bbf720
commit
92532bdddc
1 changed files with 2 additions and 9 deletions
|
@ -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{};
|
||||||
|
@ -97,4 +90,4 @@ void ItemAction::handleVFXItem()
|
||||||
effectPacket->addEffect( effect );
|
effectPacket->addEffect( effect );
|
||||||
|
|
||||||
m_pSource->sendToInRangeSet( effectPacket, true );
|
m_pSource->sendToInRangeSet( effectPacket, true );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue