Decompile 2 functions in Source/Contents/Hotkeys/HotkeyInfo.cpp, Source/Contents/Hotkeys/HotkeyInfo.h

Batch #11730 by cremane: 2 byte-identical, 0 confirmed by peer review.

- fn_10278 SkillTooltipPercent: byte-identical
- fn_10279 SkillTooltipFlat: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-05 04:32:23 +00:00
commit af1feeeb12
2 changed files with 8 additions and 10 deletions

View file

@ -38,25 +38,21 @@ bool SkillUsesPercentSp(int id) {
// OFFSET: 0x008224C0
// FUNCTION: fn_10278
std::string SkillTooltipPercent(const char* hotkey, const char* name, int level, int sp, int ap) {
char text[4096];
if (ap != 0) {
_snprintf_s(text, sizeof(text), _TRUNCATE, "%s %s Use Lv %d (Sp : %d%%, Ap : %d)", hotkey, name, level, sp, ap);
} else {
_snprintf_s(text, sizeof(text), _TRUNCATE, "%s %s Use Lv %d (Sp : %d%%)", hotkey, name, level, sp);
return FormatOwnedString("%s %s Use Lv %d (Sp : %d%%, Ap : %d)", hotkey, name, level, sp, ap);
}
return text;
return FormatOwnedString("%s %s Use Lv %d (Sp : %d%%)", hotkey, name, level, sp);
}
// OFFSET: 0x00822550
// FUNCTION: fn_10279
std::string SkillTooltipFlat(const char* hotkey, const char* name, int level, int sp, int ap) {
char text[4096];
if (ap != 0) {
_snprintf_s(text, sizeof(text), _TRUNCATE, "%s %s Use Lv %d (Sp : %d, Ap : %d)", hotkey, name, level, sp, ap);
} else {
_snprintf_s(text, sizeof(text), _TRUNCATE, "%s %s Use Lv %d (Sp : %d)", hotkey, name, level, sp);
return FormatOwnedString("%s %s Use Lv %d (Sp : %d, Ap : %d)", hotkey, name, level, sp, ap);
}
return text;
return FormatOwnedString("%s %s Use Lv %d (Sp : %d)", hotkey, name, level, sp);
}
// INLINED

View file

@ -1,6 +1,8 @@
#ifndef RAGNAROK_SOURCE_CONTENTS_HOTKEYS_HOTKEYINFO_H
#define RAGNAROK_SOURCE_CONTENTS_HOTKEYS_HOTKEYINFO_H
#include "Utility/Text/FormatString.h"
#include <cstddef>
#include <string>