Skip to content

Commit

Permalink
fix: modules with a capacitor-need couldn't always be activated
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueBrain committed May 11, 2024
1 parent 90f0d2c commit 6a08fd9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/calculate/pass_2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ impl Item {
self.max_state = EffectCategory::Active;
}

/* Any module that has a capacitorNeed (6), can be activated. */
if self.attributes.contains_key(&6) && self.max_state < EffectCategory::Active {
self.max_state = EffectCategory::Active;
}

if self.state > self.max_state {
self.state = self.max_state;
}
Expand Down

0 comments on commit 6a08fd9

Please sign in to comment.