mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-24 05:18:40 +00:00
[Bug Fix] Minor adjustment to formula calc position to fix modifier bug. (#3565)
* Fix logic error in recent PR * Adjust formula position
This commit is contained in:
+2
-2
@@ -1184,6 +1184,8 @@ void Raid::SplitExp(const uint64 exp, Mob* other) {
|
|||||||
raid_experience = static_cast<uint64>(static_cast<float>(raid_experience) * (1.0f - RuleR(Character, RaidExpMultiplier)));
|
raid_experience = static_cast<uint64>(static_cast<float>(raid_experience) * (1.0f - RuleR(Character, RaidExpMultiplier)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
raid_experience = static_cast<uint64>(static_cast<float>(raid_experience) * RuleR(Character, FinalRaidExpMultiplier));
|
||||||
|
|
||||||
const auto consider_level = Mob::GetLevelCon(highest_level, other->GetLevel());
|
const auto consider_level = Mob::GetLevelCon(highest_level, other->GetLevel());
|
||||||
if (consider_level == CON_GRAY) {
|
if (consider_level == CON_GRAY) {
|
||||||
return;
|
return;
|
||||||
@@ -1210,8 +1212,6 @@ void Raid::SplitExp(const uint64 exp, Mob* other) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
raid_experience = static_cast<uint64>(static_cast<float>(raid_experience) * RuleR(Character, FinalRaidExpMultiplier));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Client::SetLeadershipEXP(uint64 group_exp, uint64 raid_exp) {
|
void Client::SetLeadershipEXP(uint64 group_exp, uint64 raid_exp) {
|
||||||
|
|||||||
Reference in New Issue
Block a user