mirror of
https://github.com/EQEmu/Server.git
synced 2026-05-17 07:18:37 +00:00
[Rules] Rule to allow cap on % XP gain per kill (#2667)
* [Rules] Add rule to limit single kill xp gain Adds a rule to allow server operators to restrict XP gain/kill to a specified % of their current level. * Logic correction * Commenting * Logic tweaks * Rule description update * Logic adjustment Changed to allow xp cap > 100% and -1 = disabled * Formatting * Removed extra space * Formatting Renamed rule to be more clear. Updated rule description. Minor formatting tweaks. Implemented use of descriptive bools. * Data type adjustment * Removed Bools * Update exp.cpp * Update exp.cpp * Update exp.cpp * Update exp.cpp Co-authored-by: Alex King <89047260+Kinglykrab@users.noreply.github.com>
This commit is contained in:
@@ -196,6 +196,7 @@ RULE_BOOL(Character, OnInviteReceiveAlreadyinGroupMessage, true, "If you want cl
|
||||
RULE_BOOL(Character, PetZoneWithOwner, true, "Should Pets Zone with Owner")
|
||||
RULE_BOOL(Character, FullManaOnDeath, true, "On death set mana to full")
|
||||
RULE_BOOL(Character, FullEndurOnDeath, true, "On death set endurance to full")
|
||||
RULE_INT(Character, ExperiencePercentCapPerKill, -1, "Caps the percentage of experience that can be gained per kill. -1 disables the cap; 0 blocks all (non-aa) xp.")
|
||||
RULE_CATEGORY_END()
|
||||
|
||||
RULE_CATEGORY(Mercs)
|
||||
|
||||
Reference in New Issue
Block a user