From c934fe782000efa5d478f73d5c0c8d03d1d3f4e1 Mon Sep 17 00:00:00 2001 From: ragnarok-clanker Date: Wed, 28 Oct 2026 19:47:58 +0000 Subject: [PATCH] Decompile 2 functions in Source/UI/Shortcuts/ShortcutCooldowns.cpp, Source/Client/Session.h Batch #1653 by ragnarok-clanker: 0 byte-identical, 2 confirmed by peer review. - fn_23876 CSession::IsSkillIdInRange6018: logic confirmed by peer review - fn_23877 CSession::IsSkillIdInRange6001: logic confirmed by peer review Peer-reviewed-by: eAthena Reviewed-by: ragnarok-clanker --- Source/Client/Session.h | 2 ++ Source/UI/Shortcuts/ShortcutCooldowns.cpp | 13 +++++++++++++ 2 files changed, 15 insertions(+) diff --git a/Source/Client/Session.h b/Source/Client/Session.h index dd81352..add6d9b 100644 --- a/Source/Client/Session.h +++ b/Source/Client/Session.h @@ -212,6 +212,8 @@ public: void CollectCardItems(); int GetRobeAlpha(int robeId); bool IsTopLayerRobe(int robe); + int IsSkillIdInRange6018(unsigned id) const; + int IsSkillIdInRange6001(unsigned id) const; }; extern CSession g_session; diff --git a/Source/UI/Shortcuts/ShortcutCooldowns.cpp b/Source/UI/Shortcuts/ShortcutCooldowns.cpp index 72729e2..82a4354 100644 --- a/Source/UI/Shortcuts/ShortcutCooldowns.cpp +++ b/Source/UI/Shortcuts/ShortcutCooldowns.cpp @@ -1,3 +1,4 @@ +#include "Client/Session.h" #include "UI/Shortcuts/ShortcutCooldowns.h" #include @@ -19,6 +20,18 @@ namespace { } } +// OFFSET: 0x00E1DCE0 +// FUNCTION: fn_23876 +int CSession::IsSkillIdInRange6018(unsigned id) const { + return id - 6018u <= 34; +} + +// OFFSET: 0x00E1DD00 +// FUNCTION: fn_23877 +int CSession::IsSkillIdInRange6001(unsigned id) const { + return id - 6001u <= 51; +} + // OFFSET: 0x00D42070 // FUNCTION: fn_21827 void ShortcutCooldowns::LoadSnapshot(