Fix inverted pilot leveling flag.

This commit is contained in:
Tom Wabinski 2022-07-25 22:54:20 -07:00 committed by GitHub
parent 02c52f0801
commit 71311eb157
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -201,7 +201,7 @@ class FlightGroupConfigurator:
missions_for_skill_increase = 4
increase = pilot.record.missions_flown // missions_for_skill_increase
capped_increase = min(current_level + increase, len(levels) - 1)
new_level = (capped_increase, current_level)[
new_level = (current_level, capped_increase)[
self.game.settings.ai_pilot_levelling
]
return levels[new_level]