Decompile 3 functions in Source/Client/Session.h, Source/Contents/BodyResources.cpp, ...
Batch #3351 by youko: 0 byte-identical, 3 confirmed by peer review. - fn_23915 CSession::SetHotkeySkillLevel: logic confirmed by peer review - fn_23940 CSession::IsPetAccessory: logic confirmed by peer review - fn_23949 EncryptedName<14,-3700222477>::EncryptedName<14,-3700222477>: logic confirmed by peer review Peer-reviewed-by: eAthena, meitogi Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
This commit is contained in:
parent
b56f23cd58
commit
312b52ecda
3 changed files with 20 additions and 0 deletions
|
|
@ -2930,6 +2930,13 @@ const char* EncryptedName<14, 0x0D7FA94DD32361A9ULL>::Text() {
|
|||
}
|
||||
|
||||
// OFFSET: 0x00E281B0
|
||||
// FUNCTION: fn_23949
|
||||
template <>
|
||||
EncryptedName<14, 0xB5F3F779237315F3ULL>::EncryptedName(const std::uint8_t (&source)[14]) : m_encrypted(true) {
|
||||
for (std::uint64_t index = 0; index < 14; ++index) {
|
||||
this->m_text[index] = source[index];
|
||||
}
|
||||
}
|
||||
|
||||
// OFFSET: 0x00E28390
|
||||
// FUNCTION: fn_23950
|
||||
|
|
|
|||
|
|
@ -475,6 +475,10 @@ void CSession::SetHotkeyDescription(const char* description, std::uint32_t skill
|
|||
}
|
||||
|
||||
// OFFSET: 0x00E26540
|
||||
// FUNCTION: fn_23915
|
||||
void CSession::SetHotkeySkillLevel(std::uint32_t skillLevel, int index) {
|
||||
this->unknown_0420[index] = skillLevel;
|
||||
}
|
||||
|
||||
// OFFSET: 0x00E00320
|
||||
// FUNCTION: fn_23639
|
||||
|
|
|
|||
|
|
@ -126,3 +126,12 @@ int CSession::IsPetEgg(int itemId) const {
|
|||
}
|
||||
|
||||
// OFFSET: 0x00E27780
|
||||
// FUNCTION: fn_23940
|
||||
bool CSession::IsPetAccessory(int itemId) {
|
||||
bool isAccessory = false;
|
||||
if (this->m_hotkeyScript->Call("IsPetAccessory", "d>b", itemId, &isAccessory)) {
|
||||
return isAccessory;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue