Specifically adding this so that yaml changes stop being uploaded as
CRLF, but the rest is likely useful too.
(cherry picked from commit 54546aaefb781521c5310fd5bae6c9437aece571)
Add support for recovery tankers at aircraft carriers.
Cherry picked from 9a81121ac15481094f43d628ebeb1f0ba5ec182e and
0fd0f0e7c06f6e633e9438889f0c5a9cbe26a42b
We often get save games uploaded with bug reports that are already in a
broken state with nothing we can do about it. This saves that turn to
`last_turn.liberation` so users are less likely to have clobbered the
useful data before filing the report.
(cherry picked from commit 22503d4e958613bea654ac382761b89fb6f03843)
I haven't removed the old US navy stuff from this faction, since all the
new UK ships are frigates, and removing the US stuff would deprive the
faction of cruisers and destroyers, which might break generation (I'm
not familiar enough with the new system to say for sure).
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2571.
(cherry picked from commit 9a1860fc5e752eaaae966efc81387f2d828157fa)
Not really sure what's going on here, but presumably it's UTF-16 and
UTF-8 fighting.
(cherry picked from commit 9365aea72435864a7e96327a305652facd383a00)
There doesn't appear to be any reason for us to be poking at
implementation details here aside from changing the name from "unit" to
"building" for that case. Just iterate over the known strike targets.
Making this change uncovered some latent type errors.
Fixes https://github.com/dcs-liberation/dcs_liberation/issues/2564.
(cherry picked from commit 5e7e5e2636c03e5b0da3fccf45b88951a3756059)
With the latest change we added capture zones and corresponding trigger rules for all Airfields as well so we do not need to rely on the dcs capture event S_EVENT_BASE_CAPTURED anymore.
cherry-pick from fc9ad5b51917846e42c22f23d820f5ef7dcdad4e
This will create capture zones and the trigger rules to check for a base capture. Will fix an issue where the dcs capture event is not fired and therefore the capture not recognized by liberation
cherry-pick from 40ddad1d9ac05d8fb85f84904513f7d13cf51f06
Carrier groups will now also show up as destroyed/damaged on the map when the carrier is sunk.
cherry-pick from e53dc5b80b77154db5271cc9f03bb9e98f79febe
Fixed an error which would occur when dead units which are non static would be added as secondary node during the skynet lua data generation. This should in general not be possible as connection nodes and power sources are currently most of the time static.
cherry-pick from e1b530e4fc8262fd81950ea1190b3e441f3d065e
Troops must be dropped inside this zone or they won't attack the target.
The zone needs to be drawn in the map so players don't break the flight
plan by accidentally moving the drop waypoint outside the DZ.
I've move the API for doing this out of `PatrollingFlightPlan` in favor
of a mixin so this is no longer presented as `engagement_distance` by
the flight plan. I don't love that it's still the `commit-boundary`
endpoint, but it's fine for now.
I don't know why mypy wasn't able to catch this. pycharm is also
struggling to understand this class.