Decompile 2 functions in Source/Contents/Effects/EffectTypes.cpp

Batch #11511 by Yommy: 0 byte-identical, 2 confirmed by peer review.

- fn_20014 BuildLifetimes: logic confirmed by peer review (already on main)
- fn_20056 EffectLifetime: logic confirmed by peer review

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-11-05 03:14:37 +00:00
commit 364bce9fe2

View file

@ -2471,12 +2471,14 @@ static std::unordered_map<int, int> BuildLifetimes() {
namespace {
// STATIC: 0x016FDAC0
// GLOBAL: gl_24388
const std::unordered_map<int, int> lifetimes = BuildLifetimes();
std::unordered_map<int, int> lifetimes = BuildLifetimes();
}
// OFFSET: 0x00C16440
// FUNCTION: fn_20056
int EffectLifetime(int id) {
const auto found = lifetimes.find(id);
return found == lifetimes.end() ? 0 : found->second;
if (lifetimes.find(id) != lifetimes.end()) {
return lifetimes[id];
}
return 0;
}