feat: [1091] 判定系のカスタム関数の引数にレーン番号を追加#2114
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughSummary by CodeRabbit
Note: This release contains internal code improvements with no direct user-facing changes to gameplay, features, or interface. WalkthroughLane index ChangesLane Index Propagation Through Judgment Pipeline
🎯 4 (Complex) | ⏱️ ~45 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add 🔧 ast-grep (0.42.2)js/danoni_main.jsThanks 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 |
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)
js/danoni_main.js (1)
14176-14193:⚠️ Potential issue | 🟠 Major | ⚡ Quick winSome judgment paths still drop
_j.
judgeUwanin the auto-miss path, the freeze-startresultFunc(...)branch, andg_customJsObj.judg_frzHitstill run without the lane index. That makes the new(_difFrame, _j)contract inconsistent, so lane-aware custom hooks will break on those paths.Suggested fix
arrowOFF: (_j, _arrowName, _cnt) => { if (_cnt < (-1) * g_judgObj.arrowJ[g_judgPosObj.shobon]) { - judgeUwan(_cnt); + judgeUwan(_cnt, _j); judgeObjDelete.arrow(_j, _arrowName); } },if (g_headerObj.frzStartjdgUse) { const [resultFunc] = checkJudgment(_difCnt); - resultFunc(_difFrame); + resultFunc(_difFrame, _j); displayDiff(_difFrame); } else {- safeExecuteCustomHooks(`g_customJsObj.judg_${_name}Hit`, g_customJsObj[`judg_${_name}Hit`], _difFrame); + safeExecuteCustomHooks(`g_customJsObj.judg_${_name}Hit`, g_customJsObj[`judg_${_name}Hit`], _difFrame, _j);Also applies to: 15409-15474, 15557-15580, 15713-15823
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@js/danoni_main.js` around lines 14176 - 14193, Some judgment paths drop the lane index (_j) causing the new ( _difFrame, _j ) contract to be violated; update all places that call judgeUwan, the freeze-start resultFunc(...) branch, and g_customJsObj.judg_frzHit so they pass the lane index. Specifically, in arrowOFF/arrowON flows and the freeze-start code paths replace calls like judgeUwan(_cnt) and resultFunc(..., _difFrame) or g_customJsObj.judg_frzHit(...) with judgeUwan(_cnt, _j), resultFunc(..., _difFrame, _j) and g_customJsObj.judg_frzHit(_difFrame, _j) (or equivalent ordering used elsewhere) so every judge invocation receives both _difFrame and _j consistently. Ensure the same change is applied to the other indicated regions (around the other ranges) so all judgment hooks are lane-aware.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In `@js/danoni_main.js`:
- Around line 14176-14193: Some judgment paths drop the lane index (_j) causing
the new ( _difFrame, _j ) contract to be violated; update all places that call
judgeUwan, the freeze-start resultFunc(...) branch, and
g_customJsObj.judg_frzHit so they pass the lane index. Specifically, in
arrowOFF/arrowON flows and the freeze-start code paths replace calls like
judgeUwan(_cnt) and resultFunc(..., _difFrame) or g_customJsObj.judg_frzHit(...)
with judgeUwan(_cnt, _j), resultFunc(..., _difFrame, _j) and
g_customJsObj.judg_frzHit(_difFrame, _j) (or equivalent ordering used elsewhere)
so every judge invocation receives both _difFrame and _j consistently. Ensure
the same change is applied to the other indicated regions (around the other
ranges) so all judgment hooks are lane-aware.
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
🔨 変更内容 / Details of Changes
1. 判定系のカスタム関数の引数にレーン番号を追加
🔖 関連Issue, 変更理由 / Related Issues, Reason for Changes
https://discord.com/channels/698460971231870977/944491021918683196/1505190030132383835
📷 スクリーンショット / Screenshot
📝 その他コメント / Other Comments