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
This commit is contained in:
ragnarok-clanker 2026-10-28 19:47:58 +00:00
commit c934fe7820
2 changed files with 15 additions and 0 deletions

View file

@ -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;

View file

@ -1,3 +1,4 @@
#include "Client/Session.h"
#include "UI/Shortcuts/ShortcutCooldowns.h"
#include <algorithm>
@ -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(