From 8b355f785a516a7bb604c382322a6d7634678d4a Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 28 Oct 2026 11:00:15 +0000 Subject: [PATCH] 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 --- Source/Contents/TipBoxTitles.cpp | 18 ++++++++++++++++++ Source/Contents/TipBoxTitles.h | 8 +++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/Source/Contents/TipBoxTitles.cpp b/Source/Contents/TipBoxTitles.cpp index ea7d4bb7..31c1a9ad 100644 --- a/Source/Contents/TipBoxTitles.cpp +++ b/Source/Contents/TipBoxTitles.cpp @@ -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(this->m_randomList.size() / 6) - 1; +} + +// OFFSET: 0x007AD8C0 + +// OFFSET: 0x007AD8D0 + +// OFFSET: 0x007AD940 + +// OFFSET: 0x007AE050 diff --git a/Source/Contents/TipBoxTitles.h b/Source/Contents/TipBoxTitles.h index 7532bafc..619a44dc 100644 --- a/Source/Contents/TipBoxTitles.h +++ b/Source/Contents/TipBoxTitles.h @@ -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();