1
Fork 0
mirror of https://github.com/SapphireServer/Sapphire.git synced 2025-04-28 15:17:46 +00:00

Slightly increase bnpc speed and restore update rate to 250ms

This commit is contained in:
NotAdam 2019-01-28 15:47:46 +11:00
parent 9af04e0fb7
commit 0b9e1fb1ab
2 changed files with 3 additions and 3 deletions

View file

@ -179,10 +179,10 @@ void Sapphire::Entity::BNpc::step()
auto delta = static_cast< float >( Util::getTimeMs() - m_lastTickTime ) / 1000.f;
float speed = 7.25f * delta;
float speed = 7.5f * delta;
if( m_state == BNpcState::Roaming )
speed *= 0.3f;
speed *= 0.27f;
// this seems to fix it but i don't know why :(
if( speed > distanceToDest )

View file

@ -387,7 +387,7 @@ bool Sapphire::Zone::checkWeather()
void Sapphire::Zone::updateBNpcs( int64_t tickCount )
{
if( ( tickCount - m_lastMobUpdate ) <= 100 )
if( ( tickCount - m_lastMobUpdate ) <= 250 )
return;
m_lastMobUpdate = tickCount;