Follow-up on F-4E-45MC

- missing radio config
- missing stored heading alignment
This commit is contained in:
Raffson
2024-05-27 23:50:06 +02:00
parent a1fa58326c
commit 7802ab992e
3 changed files with 43 additions and 0 deletions

View File

@@ -39,6 +39,7 @@ from game.radio.channels import (
ViggenRadioChannelAllocator,
ViperChannelNamer,
WarthogChannelNamer,
PhantomChannelNamer,
)
from game.utils import (
Distance,
@@ -114,6 +115,7 @@ class RadioConfig:
"apache": ApacheChannelNamer,
"a10c-legacy": LegacyWarthogChannelNamer,
"a10c-ii": WarthogChannelNamer,
"phantom": PhantomChannelNamer,
}[config.get("namer", "default")]

View File

@@ -408,3 +408,16 @@ class WarthogChannelNamer(ChannelNamer):
@classmethod
def name(cls) -> str:
return "a10c-ii"
class PhantomChannelNamer(ChannelNamer):
"""Channel namer for the F-14."""
@staticmethod
def channel_name(radio_id: int, channel_id: int) -> str:
radio_name = ["COMM", "AUX"][radio_id - 1]
return f"{radio_name} Ch {channel_id}"
@classmethod
def name(cls) -> str:
return "phantom"