Add island_members variable to level formula for team-size handicap support#411
Merged
tastybento merged 2 commits intodevelopfrom Apr 11, 2026
Merged
Conversation
Closed
2 tasks
Agent-Logs-Url: https://github.com/BentoBoxWorld/Level/sessions/100766d4-de2a-4375-9d70-5f45d0181d3d Co-authored-by: tastybento <4407265+tastybento@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add Island handicap system for parity among players
Add Apr 11, 2026
island_members variable to level formula for team-size handicap support
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Multi-member islands have an inherent advantage over solo players since more members means more blocks placed. Admins had no way to normalize level by team size.
Changes
IslandLevelCalculator: Resolvesisland_membersplaceholder in thelevel-calcformula to the island's current member count before equation evaluation. UsesMath.max(1, memberCount)to guard against division-by-zero on unowned islands. Also added member count to the level calculation report output.ConfigSettings: Updatedlevel-calcconfig comments to documentisland_membersand provide a handicap example.README.md: Added formula variables reference table and handicap usage example.Example
To normalize island level by team size, set in
config.yml:With
level_cost: 100, a block worth 100 points yields:100 / 100 / 1 = 1.0100 / 100 / 3 ≈ 0.33100 / 100 / 4 = 0.25The default formula (
blocks / level_cost) is unchanged —island_membersis only substituted if present in the formula string.