Decompile fn_14335 (AdventureGuide::CUIMonster::Slot16)

Batch #3588 by Yommy: 0 byte-identical, 1 confirmed by peer review.

- fn_14335 AdventureGuide::CUIMonster::Slot16: logic confirmed by peer review

Peer-reviewed-by: eAthena, ntrl, meitogi
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-29 22:50:00 +00:00
commit c308474369
3 changed files with 25 additions and 2 deletions

View file

@ -1,3 +1,4 @@
#include "Contents/AdventureGuideMgr.h"
#include "UI/AdventureGuide/UIAdventureGuide.h"
#include "UI/Lists/UIListBoxTemplate.h"
#include "UI/Lists/UIVScrollBar.h"
@ -51,6 +52,20 @@ void CUIItemInfo::Slot16() {
this->unknown_00F8->scrollBar->SetHidden(1);
}
// OFFSET: 0x009DD210
// FUNCTION: fn_14335
void CUIMonster::Slot16() {
std::list<AdventureGuideEpisode> episodes;
g_adventureGuideMgr->GetEpisodeList(episodes);
for (const AdventureGuideEpisode& episode : episodes) {
CMonsterData data;
data.name = episode.name;
data.values = episode.values;
this->monsterList->data.push_back(data);
}
this->monsterList->UpdateScrollBar();
}
// OFFSET: 0x009DD680
// FUNCTION: fn_14337
void CUIMonsterInfo::Slot16() {