B6 last card rebalance: speed, density, frenzy redesign#9
Conversation
…gned (talisman focus, old patterns cleared), letterTime 120s, add timeout forced frenzy - All bullet speeds halved - Bullet density reduced in stages: initial drop, then -20%, then -30% - Frenzy phase redesigned: replace laser aim with talisman (n:5->2, speed/1.45), add two side fixed-fan talisman sources (n:3->2), remove old storm/ring/spin/rain - letterTime 60->120 with timeout checks at 60s and 90s to force frenzy - Storm scatter changed to 360-degree 6-ring
📝 WalkthroughWalkthroughChangesB6 Boss 与发布信息
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant BossState
participant FrenzyTimers
participant spawnAimed
BossState->>BossState: 检查 en.age 与 hpRatio
BossState->>BossState: 设置 en.hp = en.maxHp * 0.19
BossState->>FrenzyTimers: 进入 frenzy
FrenzyTimers->>spawnAimed: 由 wing_l/wing_r 生成固定方向札弹
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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.
Inline comments:
In `@js/stages/b6/letters.js`:
- Line 207: 修正 letters.js 中 type 配置的随机索引范围:将 Math.random() 的乘数改为与数组长度一致,使索引可覆盖
0–4,并确保 'large' 类型能够被随机选中。
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 0453c4f9-d875-443f-bd6f-1cb010bb20d7
📒 Files selected for processing (3)
js/stages/b6/index.jsjs/stages/b6/letters.jsjs/version.js
| type: ['dot', 'rice', 'talisman', 'medium', 'large'][Math.floor(Math.random() * (frenzy ? 5 : 4))], | ||
| x: en.x, y: en.y, angle: (i / n) * Math.PI * 2, | ||
| speed: 1 + Math.random() * 1.5, | ||
| type: ['dot', 'rice', 'talisman', 'medium', 'large'][Math.floor(Math.random() * 4)], |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
修正随机索引范围。
Line 207 的索引只能取 0–3,数组中的 'large' 永远不会出现。应使用 5 或数组长度,避免弹型配置失效。
建议修复
- type: ['dot', 'rice', 'talisman', 'medium', 'large'][Math.floor(Math.random() * 4)],
+ type: ['dot', 'rice', 'talisman', 'medium', 'large'][Math.floor(Math.random() * 5)],📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| type: ['dot', 'rice', 'talisman', 'medium', 'large'][Math.floor(Math.random() * 4)], | |
| type: ['dot', 'rice', 'talisman', 'medium', 'large'][Math.floor(Math.random() * 5)], |
🤖 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/stages/b6/letters.js` at line 207, 修正 letters.js 中 type 配置的随机索引范围:将
Math.random() 的乘数改为与数组长度一致,使索引可覆盖 0–4,并确保 'large' 类型能够被随机选中。
B-6 boss 最后一张卡「炫妈归天」全面平衡
See commit d38bdad for full diff.
本 PR 旨在重新平衡 B-6 Boss 最终卡“炫妈归天”的弹幕难度与狂乱阶段节奏:整体降低子弹速度和密度,重构狂乱弹幕为札弹及固定侧翼发射,移除原有风暴、环形、旋转和雨弹模式,并调整风暴为 360° 六弹环。与此同时延长卡牌时限,增加基于时间与血量的狂乱触发机制,并将版本号更新至 128。