rodecomp/Source/Client/Mode/GameModeActorEffects.cpp
ragnarok-clanker 09bed0c784 Decompile fn_21289 (CGameMode::RefreshActorJobEffects)
Batch #15992 by Yommy: 1 byte-identical, 0 confirmed by peer review.

- fn_21289 CGameMode::RefreshActorJobEffects: byte-identical

Merged automatically: every function is byte-identical to the original.
2026-11-10 12:37:58 +00:00

18 lines
633 B
C++

#include "Client/Mode/CGameMode.h"
#include "Contents/Actors/Pc.h"
#include "Contents/World/World.h"
// OFFSET: 0x00CD6DD0
// FUNCTION: fn_21289
void CGameMode::RefreshActorJobEffects(bool playerOnly) {
this->scene->player->ResetJobEffects();
this->scene->player->UpdateMaxLevelAura();
if (!playerOnly) {
for (std::list<CRenderObject*>::iterator it = this->scene->actors.begin(); it != this->scene->actors.end(); ++it) {
if (static_cast<CGameActor*>(*it)->hasLevelAura != 0) {
static_cast<CGameActor*>(*it)->ResetJobEffects();
static_cast<CGameActor*>(*it)->UpdateMaxLevelAura();
}
}
}
}