From dee2e0686cba0ade6ea4dc549f633635fd190408 Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Tue, 14 Nov 2023 23:04:04 +0100 Subject: [PATCH] feat: implement LocationModifier effect modifier --- src/calculate/pass_2.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/calculate/pass_2.rs b/src/calculate/pass_2.rs index 00c4c52..29a2324 100644 --- a/src/calculate/pass_2.rs +++ b/src/calculate/pass_2.rs @@ -198,7 +198,12 @@ impl Pass for PassTwo { target.add_effect(info, effect.target_attribute_id, category_id, &effect); } Modifier::LocationModifier() => { - // TODO + ship.hull + .add_effect(info, effect.target_attribute_id, category_id, &effect); + + for item in &mut ship.items { + item.add_effect(info, effect.target_attribute_id, category_id, &effect); + } } Modifier::LocationGroupModifier(group_id) => { let type_id = info.get_type_id(ship.hull.type_id);