Fix Bak Kut Teh logic and scaling - #157
Conversation
…ation - Updated `MainViewModel.startWave` to only trigger Bak Kut Teh wave buffs if the stall is enabled (disabledWaves == 0). - Corrected Bak Kut Teh base boost from 10% to 20% in `Registry.kt` to match `STALL_STATS.md` and `AGENTS.md`. - Updated `StallUpgradeManager` to use a 20% increment for Bak Kut Teh boosts. - Added regression test `BktDisabledWaveTest.kt`. - Updated `BakKutTehSameTickTest.kt` to reflect corrected boost values. - Updated `fixes.md` with FIX-009. Co-authored-by: candour <4670475+candour@users.noreply.github.com>
|
👋 Jules, reporting for duty! I'm here to lend a hand with this pull request. When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down. I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job! For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with New to Jules? Learn more at jules.google/docs. For security, I will only act on instructions from the user who triggered this task. |
📝 WalkthroughWalkthroughThis PR fixes Bak Kut Teh wave buff eligibility to respect disabled stalls and increases the base boost percentage from 10% to 20%. MainViewModel's ChangesBak Kut Teh wave buff and boost fix
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Build Successful! 🚀Note: This link will be removed when the PR is closed. |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
app/src/main/java/com/messark/hawker/registry/Registry.kt (1)
510-510:⚠️ Potential issue | 🟡 Minor | ⚡ Quick winUpdate tutorial description to reflect the 20% boost.
The
tutorialDescriptionstill states "by 10%" but the base boost percentage is now 20% (line 505). This user-facing text will mislead players about the stall's actual effectiveness.📝 Proposed fix
-tutorialDescription = "The aroma of these herbs doesn't just attract customers; it invigorates your fellow hawkers! Placing this stall next to others will boost their primary stats—like damage, effect duration, or even ATM income—by 10%. It's the perfect herbal pick-me-up for a busy lunch rush. Note: Boosts from multiple Bak Kut Teh stalls stack additively!", +tutorialDescription = "The aroma of these herbs doesn't just attract customers; it invigorates your fellow hawkers! Placing this stall next to others will boost their primary stats—like damage, effect duration, or even ATM income—by 20%. It's the perfect herbal pick-me-up for a busy lunch rush. Note: Boosts from multiple Bak Kut Teh stalls stack additively!",
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: e847e56b-1724-4424-a8bd-90e7c159e1fc
📒 Files selected for processing (6)
app/src/main/java/com/messark/hawker/MainViewModel.ktapp/src/main/java/com/messark/hawker/registry/Registry.ktapp/src/main/java/com/messark/hawker/utils/StallUpgradeManager.ktapp/src/test/java/com/messark/hawker/BakKutTehSameTickTest.ktapp/src/test/java/com/messark/hawker/BktDisabledWaveTest.ktfixes.md
This PR fixes a bug where Bak Kut Teh stalls would provide their wave-start random buff even if they were in a disabled state (e.g., following a specific upgrade or event).
Additionally, it synchronizes the Bak Kut Teh statistics with the official project documentation (
STALL_STATS.mdandAGENTS.md) by correcting the base boost and upgrade increment from 10% to 20%.Key changes:
it.stall.disabledWaves == 0check inMainViewModel.startWave.Registry.ktand upgrade increment to 20.0 inStallUpgradeManager.kt.BktDisabledWaveTest.ktto verify that disabled BKT stalls do not trigger wave buffs.BakKutTehSameTickTest.ktassertions to reflect the 20% boost.fixes.md.PR created automatically by Jules for task 10113414088049427990 started by @candour
Summary by CodeRabbit
Bug Fixes
Tests