Remove unused hitsFromDoS from MissionTab

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-04-23 08:52:16 +02:00
parent a054293ef9
commit dbb79c2537

View File

@@ -7,12 +7,7 @@ function degrees(target, roll) {
if (success) { const diff = target - roll; return { success, dos: 1 + Math.floor(diff / 10), dof: 0 }; }
const diff = roll - target; return { success, dos: 0, dof: 1 + Math.floor(diff / 10) };
}
function hitsFromDoS(mode, dos, rof) {
const r = rof && rof > 0 ? rof : 1;
if (mode === 'single') return Math.min(1, r);
if (mode === 'semi') return Math.max(1, Math.min(1 + Math.floor(dos / 2), r));
return Math.max(1, Math.min(1 + dos, r));
}
// Combat helpers (mirrors DeathwatchRoller logic)
const SCENE_TYPES = ['Ambush', 'Assault', 'Defense', 'Infiltration', 'Search', 'Escort'];
const THREAT_LEVELS = ['Low', 'Medium', 'High', 'Extreme'];