Fix stall upgrade milestone bug and Tray Return Uncle UI#87
Conversation
- Modified `MainViewModel.kt` to allow stall leveling always, even if the stat value has hit its floor or cap. Stat values are now clamped using `Math.max`/`Math.min` instead of skipping the upgrade. This ensures milestone levels (e.g., Level 10) can always be reached to trigger legendary naming.
- Restored synchronization of themed upgrade keys ("Grab Rate", "Cleaning Time") to standard keys ("Rate", "Duration") for Tray Return Uncle stalls in `MainViewModel.kt`.
- Updated `StallConsole.kt` to filter out redundant "Rate" and "Duration" labels for Tray Return Uncle stalls, preventing double-display of these stats in the UI.
- Updated `MilestoneBoostTest.kt` to verify that upgrades can proceed past the stat floor.
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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
📝 WalkthroughWalkthroughThe pull request modifies upgrade mechanics to apply value clamping instead of skipping upgrades when limits are reached, updates UI filtering to hide specific upgrades for a particular stall type, and adjusts test expectations to reflect the new clamping behavior. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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)
Comment |
Build Successful! 🚀Note: This link will be removed when the PR is closed. |
This change fixes a bug where food stalls (towers) could become stuck below Level 10 (the legendary milestone) if their fire rate hit the 50ms floor. The upgrade logic now correctly allows leveling to continue while clamping the fire rate at 50ms.
Additionally, it fixes a UI issue for the 'Tray Return Uncle' stall where stats were being displayed twice (once with the generic 'Rate'/'Duration' labels and once with the themed 'Grab Rate'/'Cleaning Time' labels). The internal logic still keeps these values in sync for compatibility, but the UI now filters out the redundant generic labels.
PR created automatically by Jules for task 1376705094390295857 started by @candour
Summary by CodeRabbit
Bug Fixes
Tests