Skip to content

Commit

Permalink
sort persistentEnemies
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludwig committed Jan 28, 2019
1 parent a179ded commit fcb4383
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/APIs/worldstate.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ class WorldstateAPI {
state.invasions.retainWhere(
(invasion) => invasion.completion < 100 && invasion.completed == false);

state.persistentEnemies.sort((a, b) => a.agentType.compareTo(b.agentType));

state.syndicates.retainWhere((s) =>
s.syndicate.contains(RegExp('(Ostrons)|(Solaris United)')) == true);

Expand Down

0 comments on commit fcb4383

Please sign in to comment.