mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-27 06:47:45 +00:00
Adjusted wrong casttime for eventactions, needs fixing in ex.json
This commit is contained in:
parent
6f461ab1bc
commit
9dfca22e10
2 changed files with 2 additions and 2 deletions
|
@ -1432,7 +1432,7 @@
|
||||||
auto row = exdData->m_EventActionDat.get_row( row_id );
|
auto row = exdData->m_EventActionDat.get_row( row_id );
|
||||||
name = exdData->getField< std::string >( row, 0 );
|
name = exdData->getField< std::string >( row, 0 );
|
||||||
icon = exdData->getField< uint16_t >( row, 1 );
|
icon = exdData->getField< uint16_t >( row, 1 );
|
||||||
castTime = exdData->getField< uint16_t >( row, 3 );
|
castTime = exdData->getField< uint8_t >( row, 2 );
|
||||||
}
|
}
|
||||||
|
|
||||||
Core::Data::EventIconPriority::EventIconPriority( uint32_t row_id, Core::Data::ExdDataGenerated* exdData )
|
Core::Data::EventIconPriority::EventIconPriority( uint32_t row_id, Core::Data::ExdDataGenerated* exdData )
|
||||||
|
|
|
@ -28,7 +28,7 @@ Core::Action::EventAction::EventAction( Entity::ActorPtr pActor, uint32_t eventI
|
||||||
m_handleActionType = HandleActionType::Event;
|
m_handleActionType = HandleActionType::Event;
|
||||||
m_eventId = eventId;
|
m_eventId = eventId;
|
||||||
m_id = action;
|
m_id = action;
|
||||||
m_castTime = g_exdDataGen.getEventAction( action )->castTime * 100; // TODO: Add security checks.
|
m_castTime = g_exdDataGen.getEventAction( action )->castTime * 1000; // TODO: Add security checks.
|
||||||
m_onActionFinishClb = finishRef;
|
m_onActionFinishClb = finishRef;
|
||||||
m_onActionInterruptClb = interruptRef;
|
m_onActionInterruptClb = interruptRef;
|
||||||
m_pSource = pActor;
|
m_pSource = pActor;
|
||||||
|
|
Loading…
Add table
Reference in a new issue