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(