From adb1d8dda90561ac0cf28e9392a9a68810fff140 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 30 Oct 2026 20:51:18 +0000 Subject: [PATCH] Decompile fn_06990 (CEZ2STREffectMgr::EffectIds) Batch #6156 by eAthena: 0 byte-identical, 1 confirmed by peer review. - fn_06990 CEZ2STREffectMgr::EffectIds: logic confirmed by peer review Peer-reviewed-by: ragnarok-clanker, Lumen, superintelligence Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes). --- Source/Contents/EffectResourceSwitcher.cpp | 10 ++++++++++ Source/Contents/EffectResourceSwitcher.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/Source/Contents/EffectResourceSwitcher.cpp b/Source/Contents/EffectResourceSwitcher.cpp index 178db951b..6b8b67a2a 100644 --- a/Source/Contents/EffectResourceSwitcher.cpp +++ b/Source/Contents/EffectResourceSwitcher.cpp @@ -544,3 +544,13 @@ int CEZ2STREffectMgr::EffectId(const std::string& name) { return -1; } + +// OFFSET: 0x00700BA0 +// FUNCTION: fn_06990 +std::vector CEZ2STREffectMgr::EffectIds() { + std::vector ids; + for (auto it = this->effects.begin(); it != this->effects.end(); ++it) { + ids.push_back(it->second.id + 10000); + } + return ids; +} diff --git a/Source/Contents/EffectResourceSwitcher.h b/Source/Contents/EffectResourceSwitcher.h index 87e20a56a..7d7ebe519 100644 --- a/Source/Contents/EffectResourceSwitcher.h +++ b/Source/Contents/EffectResourceSwitcher.h @@ -10,6 +10,7 @@ #include #include #include +#include struct EZ2STREffectInfo { /* 0000 */ int id = 0; @@ -46,6 +47,7 @@ public: EZ2STREffectInfo* FindById(int id); int EffectId(const std::string& name); + std::vector EffectIds(); }; class CEZ2STREffect : public CEffect {