Decompile fn_09130 (CTipBoxMgr::IsLastTip)

Batch #1341 by ragnarok-clanker: 0 byte-identical, 1 confirmed by peer review.

- fn_09130 CTipBoxMgr::IsLastTip: logic confirmed by peer review

Reviewed-by: ragnarok-clanker
This commit is contained in:
ragnarok-clanker 2026-10-28 11:00:15 +00:00
commit 8b355f785a
2 changed files with 25 additions and 1 deletions

View file

@ -157,3 +157,21 @@ std::string TipBoxTitles::Title(int id, std::string* abbreviated, int width) con
return result;
}
// OFFSET: 0x007ACF50
// OFFSET: 0x007AD480
// OFFSET: 0x007AD890
// FUNCTION: fn_09130
bool CTipBoxMgr::IsLastTip() const {
return this->unknown_00B4 == static_cast<int>(this->m_randomList.size() / 6) - 1;
}
// OFFSET: 0x007AD8C0
// OFFSET: 0x007AD8D0
// OFFSET: 0x007AD940
// OFFSET: 0x007AE050

View file

@ -35,7 +35,13 @@ public:
void AddParagraph(int id, std::string text);
TipBoxEntry& SelectRandomTip();
const TipBoxEntry& GetTip(int id) const;
void Sub7ACF50();
void RegisterLuaFunctions();
bool IsLastTip() const;
bool HasItems70() const;
bool HasItems18() const;
void Sub7AD940(int a);
bool SelectTip(int id);
static bool Create();
static void Destroy();