From 1994f0eb8a0d23880f62dbe8f6d083cc4c8b2626 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Fri, 6 Nov 2026 00:20:27 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Buttons/UITextButton.cpp Batch #12735 by cremane: 2 byte-identical, 0 confirmed by peer review. - fn_10280 SkillUseTextPercent: byte-identical - fn_10281 SkillUseTextFlat: byte-identical Merged automatically: every function is byte-identical to the original. --- Source/UI/Buttons/UITextButton.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/UI/Buttons/UITextButton.cpp b/Source/UI/Buttons/UITextButton.cpp index fea10954..20232aaf 100644 --- a/Source/UI/Buttons/UITextButton.cpp +++ b/Source/UI/Buttons/UITextButton.cpp @@ -479,21 +479,21 @@ void UITabControl::Slot28(int x, int y) { // OFFSET: 0x00822660 // FUNCTION: fn_10280 std::string SkillUseTextPercent(const char* name, int level, int sp, int ap) { - if (ap == 0) { - return FormatOwnedString("%s Use Lv %d (Sp : %d%%)", name, level, sp); + if (ap != 0) { + return FormatOwnedString("%s Use Lv %d (Sp : %d%%, Ap : %d)", name, level, sp, ap); } - return FormatOwnedString("%s Use Lv %d (Sp : %d%%, Ap : %d)", name, level, sp, ap); + return FormatOwnedString("%s Use Lv %d (Sp : %d%%)", name, level, sp); } // OFFSET: 0x008226F0 // FUNCTION: fn_10281 std::string SkillUseTextFlat(const char* name, int level, int sp, int ap) { - if (ap == 0) { - return FormatOwnedString("%s Use Lv %d (Sp : %d)", name, level, sp); + if (ap != 0) { + return FormatOwnedString("%s Use Lv %d (Sp : %d, Ap : %d)", name, level, sp, ap); } - return FormatOwnedString("%s Use Lv %d (Sp : %d, Ap : %d)", name, level, sp, ap); + return FormatOwnedString("%s Use Lv %d (Sp : %d)", name, level, sp); } // OFFSET: 0x00891350