Boss 掉落未传 monsterType,精华/极品底模升级概率按普通怪计算(含 1.13c 差异回归基线) #126
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
问题描述 (Issue A1 + Phase 0)
Boss
monsterType缺失 (A1):src/boss.ts调用executeDropPipeline时未传递monsterType参数,导致drop-pipeline.ts中回退到默认值monsterType = 1(普通怪物)。isGood = monsterType > 1为false,底模升级(Normal → Exceptional / Elite)错误使用了DifficultyLevels.txt中的UberCodeOddsNormal与UltraCodeOddsNormal,而非 Boss / Unique 怪物应使用的UberCodeOddsGood与UltraCodeOddsGood。monsterType = 4),SuperUniques 属于 Unique (monsterType = 3),均应走isGood = true分支。Phase 0 差异回归基线:
tests/parity-1.13c.test.ts与scripts/audit-parity.ts,对 1.13c 掉落/生成/显示核心不变量建立自动化回归基线。解决方案
src/boss.ts的BossDefinition接口中增加monsterType?: number(默认4),并在executeBossKill调用executeDropPipeline时显式传入monsterType: currentBoss.monsterType ?? 4。tests/parity-1.13c.test.ts验证 Boss 掉落monsterType=4触发 Good 档底模升级及 1.13c 核心回归测试。scripts/audit-parity.ts审计脚本。Fixed in commit
b31a199(merged into main). Verified with tests/parity-1.13c.test.ts (5 passed) and tests/boss.test.ts (6 passed).