From 0b9e1fb1abec6d6a680b5b72fe9635f34631631f Mon Sep 17 00:00:00 2001 From: NotAdam Date: Mon, 28 Jan 2019 15:47:46 +1100 Subject: [PATCH] Slightly increase bnpc speed and restore update rate to 250ms --- src/world/Actor/BNpc.cpp | 4 ++-- src/world/Territory/Zone.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/world/Actor/BNpc.cpp b/src/world/Actor/BNpc.cpp index 16744ef8..853f53bf 100644 --- a/src/world/Actor/BNpc.cpp +++ b/src/world/Actor/BNpc.cpp @@ -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 ) diff --git a/src/world/Territory/Zone.cpp b/src/world/Territory/Zone.cpp index a98bcc87..e1bfb528 100644 --- a/src/world/Territory/Zone.cpp +++ b/src/world/Territory/Zone.cpp @@ -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;