A melee-only hit rate bonus fed the ranged rate too - #2327
A melee-only hit rate bonus fed the ranged rate too#2327denislauri1999 wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (3)
Included review availability: Your plan provides up to 2 included reviews per hour; 0 remain after this review. Walkthrough
ChangesRange-specific hit-rate calculation
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to The change correctly separates melee-only and ranged-only hit-rate bonuses while preserving all-attack bonuses for both ranges. No actionable merge-blocking risk remains after normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
Full details: Docstring CoverageExplanation Docstring coverage is 12.50% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 8 functions across 2 files. (1 skipped: 1 unsupported.)
✨ Finishing Touches🧪 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 |
85d3ed3 to
abcb40c
Compare
BCard type 4 declares three scopes and only the first was folded in, into both rates at once: 11 all "Hit rate of all attacks is increased by %s." 21 melee "Hit rate of melee attacks is increased by %s." 31 ranged "Hit rate of ranged attacks is increased by %s." So a melee-only bonus did nothing, and neither did a ranged-only one: 13 declarations of 4/21 and 4/31 across items and cards had no effect at all. Type 2 next to it already keeps the three defences apart the same way, so this is the offensive half of a split that was half done. 4/41-42, concentration during a magic attack, is left out: CombatStats has no field for it, and exposing one that nothing reads would be worse than the gap. Tested: builds with 0 warnings, full suite green. The new tests assert the negative half too - a melee bonus must leave DistanceRate untouched - because a leak into the other field raises nothing. Not verified in a client. manual-test-plan.md had no hit-rate section, so this adds one under Combat with the three checks to run.
abcb40c to
e8e55ab
Compare
|
|
||
| ### Hit rate by scope — BCard type 4 | ||
|
|
||
| - [ ] A buff with subtype 21 makes melee attacks land more often and leaves ranged alone |
There was a problem hiding this comment.
this file should be removed those are for conversation in git pr
There was a problem hiding this comment.
actually there is useful stuff there so maybe we should just keep the thing that are relevant for 1 pr in the conversation and keep the global useful one like mounts, combat etc
There was a problem hiding this comment.
Done — the three checks moved into the PR description, and the file keeps only what is useful across PRs.
On the second half: master's copy still carries six sections that belong to one PR each (types 40, 37/31, 16, 13/14, 34/35, and the combo/equipment ones are the general kind you mean). Happy to prune those in a separate small PR and leave Setup, Combat basics, Mounts, Class change, Equipment gates and the regression sweep — say the word and I'll open it.
|
need to rebase |
Asked for on the PR: what belongs to one PR stays in its conversation, the manual test plan keeps the checks that are useful across PRs. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
What
BCard type 4 declares three scopes and only the first was folded in — into both rates at once:
So a melee-only bonus did nothing, and neither did a ranged-only one: 13 declarations of 4/21 and 4/31 across items and cards had no effect at all.
Type 2 sitting next to it already keeps the three defences apart the same way, so this is the offensive half of a split that was half done, written to match.
What is left out, and why
4/41-42, concentration during a magic attack.
CombatStatshas no field for it, and exposing one that nothing reads would be worse than the gap.Testing
Builds with 0 warnings; full suite green — 996 tests, five of them new.
The new tests assert the negative half as well as the positive: a melee bonus must leave
DistanceRateunchanged, and a ranged bonus must leaveHitRateunchanged. A leak into the other field raises nothing, so that is the assertion that earns its place.Not verified in a client. What somebody with a client would need to check - kept here rather than in
manual-test-plan.md, since it belongs to this one change:Summary by CodeRabbit
Bug Fixes
Documentation