Skip to content

Commit

Permalink
fix(pass-4): structures do not have agility
Browse files Browse the repository at this point in the history
  • Loading branch information
TrueBrain committed May 10, 2024
1 parent 634a172 commit a580fde
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/calculate/pass_4/align_time.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ use super::AttributeId;
pub fn attribute_align_time(ship: &mut Ship) {
/* Align-time is based on agility and mass. */

Check warning on line 5 in src/calculate/pass_4/align_time.rs

View workflow job for this annotation

GitHub Actions / Testing

Diff in /home/runner/work/dogma-engine/dogma-engine/src/calculate/pass_4/align_time.rs

/* Structures do not have agility, and as such, no align-time. */
if !ship.hull.attributes.contains_key(&(AttributeId::agility as i32)) {
return;
}

let attr_agility = ship
.hull
.attributes
Expand Down

0 comments on commit a580fde

Please sign in to comment.