Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Give ability to change what level fellowship XP is shared evenly regardless of level #3460

Merged
merged 3 commits into from
Feb 11, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Source/ACE.Server/Entity/Fellowship.cs
Original file line number Diff line number Diff line change
Expand Up @@ -454,9 +454,10 @@ private void CalculateXPSharing()

var fellows = GetFellowshipMembers();

var allOver50 = !fellows.Values.Any(f => (f.Level ?? 1) < 50);
var allEvenShareLevel = PropertyManager.GetLong("fellowship_even_share_level").Item;
var allOverEvenShareLevel = !fellows.Values.Any(f => (f.Level ?? 1) < allEvenShareLevel);

if (allOver50)
if (allOverEvenShareLevel)
{
ShareXP = DesiredShareXP;
EvenShare = true;
Expand Down
1 change: 1 addition & 0 deletions Source/ACE.Server/Managers/PropertyManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,7 @@ public static void LoadDefaultProperties()
("chat_requires_account_time_seconds", new Property<long>(0, "the amount of time in seconds an account is required to have existed for for global chat privileges")),
("chat_requires_player_age", new Property<long>(0, "the amount of time in seconds a player is required to have played for global chat privileges")),
("chat_requires_player_level", new Property<long>(0, "the level a player is required to have for global chat privileges")),
("fellowship_even_share_level", new Property<long>(50, "level when fellowship XP sharing is no longer restricted")),
("mansion_min_rank", new Property<long>(6, "overrides the default allegiance rank required to own a mansion")),
("max_chars_per_account", new Property<long>(11, "retail defaults to 11, client supports up to 20")),
("pk_timer", new Property<long>(20, "the number of seconds where a player cannot perform certain actions (ie. teleporting) after becoming involved in a PK battle")),
Expand Down