D
Deleted member 141899
Guest
Hello friends,
I trying to change this function bellow, to share exp accept only number of members in the party instead of ids vocations [tfs 1.1]
In Party.cpp:
I tried change
to
but not works.. Can someone help me? thanks very much.
I trying to change this function bellow, to share exp accept only number of members in the party instead of ids vocations [tfs 1.1]
In Party.cpp:
Code:
void Party::updateVocationsList()
{
std::set<uint32_t> vocationIds;
uint32_t vocationId = leader->getVocation()->getFromVocation();
if (vocationId != VOCATION_NONE) {
vocationIds.insert(vocationId);
}
for (const Player* member : memberList) {
vocationId = member->getVocation()->getFromVocation();
if (vocationId != VOCATION_NONE) {
vocationIds.insert(vocationId);
}
}
size_t size = vocationIds.size();
if (size > 1) {
extraExpRate = static_cast<float>(size * (10 + (size - 1) * 5)) / 100.f;
} else {
extraExpRate = 0.20f;
}
}
I tried change
Code:
size_t size = vocationIds.size();
Code:
size_t size = memberList.size();