Skip to content

Commit

Permalink
cannon: Adjust betterThan comparisons
Browse files Browse the repository at this point in the history
  • Loading branch information
wallabra committed Oct 21, 2024
1 parent 8247a29 commit 698dd29
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/objects/shipmakeup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,8 +625,7 @@ export class Cannon extends ShipPart {

return (
thisDPS > otherDPS ||
(thisDPS > otherDPS * 0.5 &&
this.range > other.range &&
(thisDPS / otherDPS < this.range / other.range / 0.5 &&
this.spread < other.spread)
);
}
Expand All @@ -637,8 +636,7 @@ export class Cannon extends ShipPart {

return (
thisDPS > otherDPS ||
(thisDPS > otherDPS * 0.5 &&
this.range > other.range &&
(thisDPS / otherDPS < this.range / other.range &&
this.spread < other.spread)
);
}
Expand Down

0 comments on commit 698dd29

Please sign in to comment.