Batch #1336 by ragnarok-clanker: 0 byte-identical, 4 confirmed by peer review. - fn_02473 CTexture::Touch: logic confirmed by peer review - fn_06603 ItemInfo::IsApprenticeItem: logic confirmed by peer review - fn_24179 CSession::IsReducedSkill: logic confirmed by peer review - fn_23614 CSession::ConvertTooltipText: logic confirmed by peer review Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
64 lines
1.2 KiB
C++
64 lines
1.2 KiB
C++
#include "Client/Session.h"
|
|
#include "Network/TextEncoding.h"
|
|
|
|
#include <cstring>
|
|
#include <windows.h>
|
|
|
|
// STATIC: 0x01732638
|
|
// GLOBAL: gl_24474
|
|
CSession g_session;
|
|
|
|
// OFFSET: 0x00DDE860
|
|
|
|
// OFFSET: 0x00E13B00
|
|
// FUNCTION: fn_23826
|
|
int CSession::SyncUnknown0E98() {
|
|
if (this->unknown_0E98 != this->unknown_5558) {
|
|
this->unknown_0E98 = this->unknown_5558;
|
|
}
|
|
|
|
return this->unknown_0E98;
|
|
}
|
|
|
|
// OFFSET: 0x00DFFCF0
|
|
// FUNCTION: fn_23633
|
|
void CSession::ClearItemSelection() {
|
|
for (ItemInfo& item : this->m_inventoryItems) {
|
|
if (item.unknown_0074[1] == 1) {
|
|
item.unknown_0074[1] = 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00E3CFF0
|
|
// FUNCTION: fn_24179
|
|
bool CSession::IsReducedSkill(int skillId) const {
|
|
switch (skillId) {
|
|
case 4217:
|
|
case 4218:
|
|
case 4219:
|
|
case 4220:
|
|
case 4221:
|
|
case 4308:
|
|
case 4315:
|
|
return true;
|
|
default:
|
|
return false;
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00DFF1F0
|
|
// FUNCTION: fn_23614
|
|
char* CSession::ConvertTooltipText(const char* source, char* output) const {
|
|
if (output != source) {
|
|
std::strcpy(output, source);
|
|
}
|
|
|
|
for (char* current = output; *current != '\0'; current = CharNextExA(static_cast<WORD>(g_textCodePage), current, 0)) {
|
|
if (*current == '_') {
|
|
*current = ' ';
|
|
}
|
|
}
|
|
|
|
return output;
|
|
}
|