[Rules] Add FinalRaidExpMultiplier Rule (#3554)

* FlatRaidExpModifierRule

* Formatting

* Remove enabled toggle

Enabled toggle not necessary as default value is 1.0

* Formatting

* Formatting

* Formatting
This commit is contained in:
Vayle authored and GitHub committed 2023-08-20 16:31:36 -05:00
1 parent 4357b8c731
commit a61f951d0e
2 files changed
+4 -4

No files matched your search

+3 -4
View File
@@ -1181,10 +1181,7 @@ void Raid::SplitExp(const uint64 exp, Mob* other) {
const auto highest_level = GetHighestLevel();
if (RuleB(Character, EnableRaidEXPModifier)) {
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)));
}
const auto consider_level = Mob::GetLevelCon(highest_level, other->GetLevel());
@@ -1213,6 +1210,8 @@ 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) {