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:
parent
9af04e0fb7
commit
0b9e1fb1ab
2 changed files with 3 additions and 3 deletions
|
@ -179,10 +179,10 @@ void Sapphire::Entity::BNpc::step()
|
||||||
|
|
||||||
auto delta = static_cast< float >( Util::getTimeMs() - m_lastTickTime ) / 1000.f;
|
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 )
|
if( m_state == BNpcState::Roaming )
|
||||||
speed *= 0.3f;
|
speed *= 0.27f;
|
||||||
|
|
||||||
// this seems to fix it but i don't know why :(
|
// this seems to fix it but i don't know why :(
|
||||||
if( speed > distanceToDest )
|
if( speed > distanceToDest )
|
||||||
|
|
|
@ -387,7 +387,7 @@ bool Sapphire::Zone::checkWeather()
|
||||||
|
|
||||||
void Sapphire::Zone::updateBNpcs( int64_t tickCount )
|
void Sapphire::Zone::updateBNpcs( int64_t tickCount )
|
||||||
{
|
{
|
||||||
if( ( tickCount - m_lastMobUpdate ) <= 100 )
|
if( ( tickCount - m_lastMobUpdate ) <= 250 )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
m_lastMobUpdate = tickCount;
|
m_lastMobUpdate = tickCount;
|
||||||
|
|
Loading…
Add table
Reference in a new issue