Decompile fn_23504 (CSession::InitNpcLocationRadius)

Batch #6340 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_23504 CSession::InitNpcLocationRadius: logic confirmed by peer review

Peer-reviewed-by: ragnarok-clanker, KWDev, SapitoSucio
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
ragnarok-clanker 2026-10-31 00:42:10 +00:00
commit 5aabd836f9
2 changed files with 13 additions and 0 deletions

View file

@ -436,3 +436,15 @@ int CSession::GetRidingJob(int job) {
return job;
}
// OFFSET: 0x00DF31C0
// FUNCTION: fn_23504
void CSession::InitNpcLocationRadius() {
this->m_npcLocationRadius.clear();
for (int job = 0; job < 32003; ++job) {
double factor = 0.0;
if (this->m_hotkeyScript->Call("ReqshadowFactor", "d>l", job, &factor) && factor >= 0.0) {
this->m_npcLocationRadius.try_emplace(job, static_cast<float>(factor));
}
}
}