From fa2f37b813065670a71b7ed1b3b07acbc0db710a Mon Sep 17 00:00:00 2001 From: Loic Prieto Date: Mon, 16 Jun 2025 14:17:33 +0200 Subject: [PATCH] keep working --- .../games/fourtykcalculator/AttackScenario.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/ninja/thefirearchmage/games/fourtykcalculator/AttackScenario.java b/src/main/java/ninja/thefirearchmage/games/fourtykcalculator/AttackScenario.java index d7fa5d8..acd01a3 100644 --- a/src/main/java/ninja/thefirearchmage/games/fourtykcalculator/AttackScenario.java +++ b/src/main/java/ninja/thefirearchmage/games/fourtykcalculator/AttackScenario.java @@ -83,7 +83,7 @@ public class AttackScenario { return this; } - public void resolveAttack() { + public AttackScenarioResolution resolveAttack() { var resolution = new AttackScenarioResolution(); // Filter out weapons that cannot participate in this attack var validWeapons = weapons.stream().filter( w -> hasLineOfSight || w._1.hasIndirectFire()) @@ -102,13 +102,16 @@ public class AttackScenario { // Defence funnel executeDefenceFunnel(weapon, normalWounds, mortalWounds); - } + + return resolution; } private void executeDefenceFunnel(Weapon weapon, double normalWounds, double mortalWounds) { + // Save normal wounds + // } /**