Warn for new squadron rules with old campaigns.

It's not feasible to actually check the parking limits because we can't
identify parking limits for carriers until the theater is populated.
Doing so is expensive (and depends on other NGW inputs). Instead,
compare against the version of the campaign and guess.

A new (minor) campaign version has been introduced which makes this
required to improve the UI hint. Campaigns that are compatible with the
new rules should update their version to advertise support.

Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2909.
This commit is contained in:
Dan Albert
2023-06-03 14:08:52 -07:00
parent 42a7102948
commit 4fd2bb131b
3 changed files with 54 additions and 6 deletions

View File

@@ -178,4 +178,8 @@ VERSION = _build_version_string()
#:
#: Version 10.8
#: * Support for Normandy 2.
CAMPAIGN_FORMAT_VERSION = (10, 8)
#:
#: Version 10.9
#: * Campaign is compatible with new squadron rules. The default air wing configuration
#: has enough parking available at each base when squadrons begin at full strength.
CAMPAIGN_FORMAT_VERSION = (10, 9)