Add 6 example upgrades seeded on first install#76
Merged
tastybento merged 1 commit intodevelopfrom Feb 24, 2026
Merged
Conversation
On first enable for a game mode with no configured upgrades, six example upgrades are seeded automatically so admins can immediately see how the system works and have a starting point to edit: 1. Border Expansion I – MoneyPrice($500) → RangeReward(+5), 5× 2. Border Expansion II – IslandLevel(100) + Money($2000) → Range(+10), 3× 3. Hopper Limit – Money($1000) → LimitsReward(BLOCK/HOPPER/+2), 5× 4. Cow Limit – Money($500) → LimitsReward(ENTITY/COW/+2), 5× 5. Diamond Border – ItemPrice(10 DIAMOND) → RangeReward(+3), 3× 6. Donor Perk – PermissionPrice → CommandReward, 1× Also adds getPublicDescription(User, PriceDB/RewardDB) overloads to IslandLevelPrice, ItemPrice, PermissionPrice, and LimitsReward so that placeholders ([level], [amount], [item], [permission], [type], [target]) are substituted with real values in the player shop. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
DefaultUpgradeSeederclass with one methodseedIfEmpty()called fromonEnable().getPublicDescription(User, PriceDB/RewardDB)overloads toIslandLevelPrice,ItemPrice,PermissionPrice, andLimitsRewardso placeholder values ([level],[amount],[item],[permission],[type],[target]) are substituted with actual configured values in the player shop panel.Example upgrades seeded
upgrades.example.donorpermissionTest plan
/bsb upgrade— all 6 examples appear with correct descriptions (amounts/types substituted, not literal placeholders)mvn testpasses (102 tests)🤖 Generated with Claude Code