Batch #2908 by bigodeira: 0 byte-identical, 1 confirmed by peer review. - fn_18039 GuildInfo::Init: logic confirmed by peer review Peer-reviewed-by: eAthena, meitogi, alisonrag, superintelligence Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
65 lines
1.8 KiB
C++
65 lines
1.8 KiB
C++
#include "Contents/GuildInfo.h"
|
|
#include "Client/Mode/CGameMode.h"
|
|
#include "Client/Mode/ModeMgr.h"
|
|
#include "Contents/Actors/GameActor.h"
|
|
#include "Contents/Actors/Pc.h"
|
|
#include "Contents/World/World.h"
|
|
|
|
// OFFSET: 0x00AE41C0
|
|
// FUNCTION: fn_18030
|
|
void GuildInfo::ChangeMemberPosition(int aid, int cid, int position) {
|
|
for (auto it = this->m_members.begin(); it != this->m_members.end(); ++it) {
|
|
if (it->accountId == aid && it->characterId == cid) {
|
|
it->positionId = position;
|
|
it->positionName = this->m_positions[it->positionId];
|
|
return;
|
|
}
|
|
}
|
|
}
|
|
|
|
// OFFSET: 0x00AE4740
|
|
// FUNCTION: fn_18039
|
|
void GuildInfo::Init() {
|
|
this->m_guildId = 0;
|
|
if (g_modeMgr.GetGameMode() &&
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene &&
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene->player) {
|
|
static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene->player->Slot48(0);
|
|
}
|
|
|
|
this->unknown_00AC = 0;
|
|
this->unknown_00B0 = 0;
|
|
this->unknown_00B4 = 0;
|
|
this->unknown_00D0 = 0;
|
|
this->unknown_00B8 = 0;
|
|
this->unknown_00A4 = -1;
|
|
this->unknown_00BC = 0;
|
|
this->unknown_00C0 = 0;
|
|
this->unknown_00C4 = 0;
|
|
this->unknown_00C8 = 0;
|
|
this->unknown_00CC = 0;
|
|
this->unknown_0000.clear();
|
|
this->unknown_0018.clear();
|
|
this->unknown_0030.clear();
|
|
this->unknown_0048.clear();
|
|
this->unknown_0060 = 0;
|
|
this->unknown_0064 = 0;
|
|
this->unknown_006C = 0;
|
|
this->unknown_0070 = 0;
|
|
this->unknown_0074.clear();
|
|
this->unknown_008C = 0;
|
|
this->unknown_0090 = 0;
|
|
this->unknown_0094 = 0;
|
|
this->unknown_0098 = 0;
|
|
this->unknown_009C = 0;
|
|
this->unknown_00A0 = 0;
|
|
this->unknown_00D4.clear();
|
|
this->m_members.clear();
|
|
this->unknown_00E4.clear();
|
|
this->unknown_00EC.clear();
|
|
this->unknown_00F4.clear();
|
|
this->m_positions.clear();
|
|
this->unknown_0104.clear();
|
|
this->unknown_010C.clear();
|
|
this->unknown_0114.clear();
|
|
}
|