rodecomp/Source/Client/SessionParty.cpp
ragnarok-clanker 0f7eaea5e0 Decompile fn_20327 (CRagEffect::PartyEffectVisible)
Batch #16527 by eAthena: 0 byte-identical, 1 confirmed by peer review.

- fn_20327 CRagEffect::PartyEffectVisible: logic confirmed by peer review

Peer-reviewed-by: Yommy, alisonrag, br4yan
Accepted without human review: peers confirmed the logic ("same" ahead by at least 3, with 70% of the votes).
2026-11-10 22:42:45 +00:00

33 lines
720 B
C++

#include "Client/Mode/CGameMode.h"
#include "Client/Mode/ModeMgr.h"
#include "Client/Session.h"
#include "Contents/World/World.h"
// OFFSET: 0x00E1DEC0
// FUNCTION: fn_23884
int CSession::IsPartyMember(std::uint32_t aid, bool onlineOnly) {
for (const MessengerMember& member : this->m_partyMembers) {
if (member.accountId == aid) {
if (onlineOnly && member.offline != 0) {
return 0;
}
return 1;
}
}
return 0;
}
// OFFSET: 0x00E3D2D0
// FUNCTION: fn_24185
bool CSession::IsPvpMap() {
if (g_modeMgr.GetGameMode()) {
CWorld* scene = static_cast<CGameMode*>(g_modeMgr.GetGameMode())->scene;
if (scene) {
return scene->partyRestricted;
}
}
return false;
}