mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 14:37:44 +00:00
Merge pull request #346 from DantestyleXD/eventhelper
more Eventhelper on chat
This commit is contained in:
commit
ccd03aed65
1 changed files with 13 additions and 1 deletions
|
@ -70,7 +70,19 @@ std::string Core::Event::getEventName( uint32_t eventId )
|
|||
|
||||
case Event::EventHandler::EventHandlerType::Warp:
|
||||
{
|
||||
return "ChocoboTaxi";
|
||||
auto warpInfo = pExdData->get< Core::Data::Warp >( eventId );
|
||||
if( warpInfo )
|
||||
return "WarpTaxi";
|
||||
return unknown + "ChocoboWarp"; //who know
|
||||
}
|
||||
case Event::EventHandler::EventHandlerType::Shop:
|
||||
{
|
||||
auto shopInfo = pExdData->get< Core::Data::GilShop >( eventId );
|
||||
std::string name = shopInfo->name;
|
||||
|
||||
if( shopInfo )
|
||||
return name;
|
||||
return unknown + "GilShop";
|
||||
}
|
||||
default:
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue