Skip to content

Commit

Permalink
feat: implement LocationModifier effect modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueBrain committed Nov 14, 2023
1 parent aa8c97f commit dee2e06
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/calculate/pass_2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit dee2e06

Please sign in to comment.