Move timers to process loops

This commit is contained in:
Chris Miles 2025-06-30 13:40:33 -05:00
parent b784d40620
commit ee670a6a85
3 changed files with 8 additions and 4 deletions

View File

@ -561,6 +561,10 @@ bool Client::Process() {
{
ItemTimerCheck();
}
if (m_clear_wearchange_cache_timer.Check()) {
m_last_seen_wearchange.clear();
}
}
}

View File

@ -395,10 +395,6 @@ void Mob::SendWearChange(uint8 material_slot, Client *one_client)
w->wear_slot_id = material_slot;
if (m_clear_wearchange_cache_timer.Check()) {
m_last_seen_wearchange.clear();
}
if (GetRace() != m_last_wearchange_race_id) {
m_last_seen_wearchange.clear();
m_last_wearchange_race_id = GetRace();

View File

@ -632,6 +632,10 @@ bool NPC::Process()
}
if (tic_timer.Check()) {
if (m_clear_wearchange_cache_timer.Check()) {
m_last_seen_wearchange.clear();
}
if (parse->HasQuestSub(GetNPCTypeID(), EVENT_TICK)) {
parse->EventNPC(EVENT_TICK, this, nullptr, "", 0);
}