Skip to content

Commit

Permalink
Update date constants to Battle of Tukayyid
Browse files Browse the repository at this point in the history
Replaced the "Invasion Wave Five" date with the Battle of Tukayyid date in the addSingleUnit method.
  • Loading branch information
IllianiCBT committed Oct 21, 2024
1 parent 88269dc commit 7ba5dec
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -191,13 +191,13 @@ public abstract void addOffers(final Campaign campaign, final int number, UnitMa
public String addSingleUnit(final Campaign campaign, final UnitMarketType market,
final int unitType, final MekSummary mekSummary,
final int percent) {
final LocalDate INVASION_WAVE_FIVE = LocalDate.of(3051, 11, 1);
final LocalDate BATTLE_OF_TUKAYYID = LocalDate.of(3052, 5, 21);

Faction campaignFaction = campaign.getFaction();
LocalDate currentDate = campaign.getLocalDate();

if (!campaignFaction.isClan()) {
if (mekSummary.isClan() && currentDate.isBefore(INVASION_WAVE_FIVE)) {
if (mekSummary.isClan() && currentDate.isBefore(BATTLE_OF_TUKAYYID)) {
return null;
}
}
Expand Down

0 comments on commit 7ba5dec

Please sign in to comment.