Allow "Log 1st Flight" achievement to be awarded even if flight is upcoming

This commit is contained in:
dredgy committed 2026-08-20 16:21:14 +10:00
1 parent 7bca9a8d31
commit 90ea8d81d2
4 files changed
+35 -8

No files matched your search

@@ -15,10 +15,11 @@ class GeneralFlyingChecker extends BaseChecker
*/
$flights = $this->flights();
$count = $flights->count();
$allLoggedFlightsCount = $this->allLoggedFlightsCount();
// --- Boolean achievements ---
$this->awardIf($count >= 1, 'general_flying.first_flight');
$this->awardIf($allLoggedFlightsCount >= 1, 'general_flying.first_flight');
$this->awardIf(
$flights->contains(fn ($f) => $f->isDomestic()),