mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-04-26 22:37:45 +00:00
fix excel structures, been a while
This commit is contained in:
parent
8a559f8d53
commit
b6344cfe23
6 changed files with 3530 additions and 337 deletions
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -41,7 +41,7 @@ public:
|
|||
|
||||
auto playerMgr = framework()->get< Sapphire::World::Manager::PlayerMgr >();
|
||||
|
||||
auto pPop = pPopRange->getPopRange( warp->level, warp->level );
|
||||
auto pPop = pPopRange->getPopRange( warp->territoryType, warp->popRange );
|
||||
|
||||
if( !pPop )
|
||||
{
|
||||
|
@ -52,7 +52,7 @@ public:
|
|||
std::cout << "found!!";
|
||||
}
|
||||
|
||||
playerMgr->movePlayerToLandDestination( player, warp->level, result.param3 );
|
||||
playerMgr->movePlayerToLandDestination( player, warp->popRange, result.param3 );
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
@ -112,7 +112,7 @@ Sapphire::Entity::BNpc::BNpc( uint32_t id, BNpcTemplatePtr pTemplate, float posX
|
|||
{
|
||||
auto modelSkeleton = exdData->get< Data::ModelSkeleton >( modelChara->model );
|
||||
if( modelSkeleton )
|
||||
m_radius *= modelSkeleton->scaleFactor;
|
||||
m_radius *= modelSkeleton->radius;
|
||||
}
|
||||
|
||||
// todo: is this actually good?
|
||||
|
|
|
@ -61,12 +61,8 @@ std::string Sapphire::World::Manager::EventMgr::getEventName( uint32_t eventId )
|
|||
}
|
||||
case Event::EventHandler::EventHandlerType::ICDirector:
|
||||
{
|
||||
auto contentInfo = pExdData->get< Sapphire::Data::InstanceContent >( eventId & 0xFFFF );
|
||||
std::string name = contentInfo->name;
|
||||
std::string remove( ",★_ '()[]-\x1a\x1\x2\x1f\x1\x3.:" );
|
||||
Util::eraseAllIn( name, remove );
|
||||
name[ 0 ] = toupper( name[ 0 ] );
|
||||
return name;
|
||||
// auto contentInfo = pExdData->get< Sapphire::Data::InstanceContent >( eventId & 0xFFFF );
|
||||
return "InstanceContentDirector#" + std::to_string( eventId & 0xFFFF );
|
||||
}
|
||||
case Event::EventHandler::EventHandlerType::QuestBattleDirector:
|
||||
{
|
||||
|
|
|
@ -348,7 +348,7 @@ Sapphire::TerritoryPtr Sapphire::World::Manager::TerritoryMgr::createInstanceCon
|
|||
if( !pTeri || pContentFinderCondition->name.empty() )
|
||||
return nullptr;
|
||||
|
||||
Logger::debug( "Starting instance for InstanceContent id: {0} ({1})", instanceContentId, pInstanceContent->name );
|
||||
Logger::debug( "Starting instance for InstanceContent id: {0} ({1})", instanceContentId, pContentFinderCondition->name );
|
||||
|
||||
auto pZone = make_InstanceContent( pInstanceContent, pContentFinderCondition->territoryType, getNextInstanceId(),
|
||||
pTeri->name, pContentFinderCondition->name, instanceContentId, framework() );
|
||||
|
|
Loading…
Add table
Reference in a new issue