Skip to content

Commit

Permalink
#676 Fixes issue where statuses where not explorable by away team.
Browse files Browse the repository at this point in the history
  • Loading branch information
tuomount committed May 17, 2024
1 parent b828e5b commit 562a2eb
Show file tree
Hide file tree
Showing 4 changed files with 275 additions and 190 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,9 @@ public static void handleExploring(final Mission mission, final Fleet fleet,
fleet.getY(), Route.ROUTE_EXPLORED));
planet.eventActivation(game.getStarMap().isTutorialEnabled(),
fleet.getCommander(), info);
planet.handleTimedStatusForAwayTeam(game.getStarMap(),
fleet.getCommander(), info);

}
}
if (mission.getPhase() == MissionPhase.TREKKING
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,8 @@ && getStarMapMouseListener().getLastClickedFleet() != null
SoundPlayer.playMenuSound();
nearByPlanet.eventActivation(map.isTutorialEnabled(),
fleet.getCommander(), infoPanel.getFleetOwner());
nearByPlanet.handleTimedStatusForAwayTeam(map, fleet.getCommander(),
infoPanel.getFleetOwner());
} else {
SoundPlayer.playMenuDisabled();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ public void handleFixTradeButton(final Fleet fleet,
&& nearByPlanet.getPlanetaryEvent() != PlanetaryEvent.NONE
&& !nearByPlanet.isEventActivated()) {
mapInfoPanel.setExploreBtn();
} else if (nearByPlanet != null
&& nearByPlanet.getPlanetPlayerInfo() == null
&& nearByPlanet.hasStatusForAwayTeam()) {
mapInfoPanel.setExploreBtn();
} else {
mapInfoPanel.disableFixTradeBtn();
}
Expand Down
Loading

0 comments on commit 562a2eb

Please sign in to comment.