격노와 계략 효과의 PHP 호환 보정

This commit is contained in:
2026-09-19 10:09:18 +00:00
parent e542a9beea
commit e34c24c74d
7 changed files with 541 additions and 11 deletions
@@ -199,7 +199,13 @@ describe('전투 특기의 비전투 커맨드 효과', () => {
destGenerals: [],
distance: 1,
};
const base = general.stats[statKey] / env.sabotageProbCoefByStat;
const effectiveStat =
statKey === 'intelligence'
? general.stats.intelligence + Math.round(general.stats.strength / 4)
: statKey === 'strength'
? general.stats.strength + Math.round(general.stats.intelligence / 4)
: general.stats.leadership;
const base = effectiveStat / env.sabotageProbCoefByStat;
expect(new StrategyCommandResolver([strategistTrait], env, config).getProbability(context).attack).toBeCloseTo(
base + 0.1,