Skip to content

Add spawner boost and crop growth boost reward types#78

Merged
tastybento merged 2 commits intodevelopfrom
feature/spawner-and-crop-growth-upgrades
Feb 24, 2026
Merged

Add spawner boost and crop growth boost reward types#78
tastybento merged 2 commits intodevelopfrom
feature/spawner-and-crop-growth-upgrades

Conversation

@tastybento
Copy link
Member

Summary

  • Adds two new reward types: SpawnerReward (boosts mob spawner rates) and CropGrowthReward (boosts crop growth speed) with corresponding DB objects and listeners
  • Seeds example upgrades for both new reward types in DefaultUpgradeSeeder
  • Fixes right-click delete for prices and rewards in the admin tier editor (EditTierPanel): YesNoPanel was never shown (missing .getBuild().build() call), and the filter predicate was inverted (== instead of !=), causing the wrong items to be removed

Test plan

  • Build passes: mvn clean package
  • All 102 tests pass: mvn test
  • In-game: spawner upgrade boosts spawner rate on islands that have the reward applied
  • In-game: crop growth upgrade boosts crop growth on islands that have the reward applied
  • In-game: right-click a price/reward in the tier editor → YesNoPanel confirmation appears → clicking Yes removes only that item

🤖 Generated with Claude Code

tastybento and others added 2 commits February 23, 2026 22:21
Implements two new passive/ongoing upgrade reward types:
- SpawnerReward: spawns extra entities on SpawnerSpawnEvent, proportional to a configurable formula
- CropGrowthReward: applies extra applyBoneMeal() on BlockGrowEvent for agricultural crops

Both use a fractional bonus approach (e.g. 0.5 = 50% chance of one extra per trigger)
and are compatible with any stacker plugin. Two example upgrades (Spawner Boost,
Crop Growth Boost) are now seeded on first install (8 total).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
YesNoPanel was never shown (missing .getBuild().build() call) so
right-clicking did nothing. The filter predicate was also inverted
(== instead of !=), which would have deleted all other items instead
of the selected one on confirmation.

Fixes onDeletePrice and onDeleteReward in EditTierPanel.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@tastybento tastybento merged commit 3d69882 into develop Feb 24, 2026
1 check failed
@tastybento tastybento deleted the feature/spawner-and-crop-growth-upgrades branch February 24, 2026 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant