mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fix missing key in combat display.
This commit is contained in:
parent
f5955dafaf
commit
053a1287c9
@ -29,9 +29,10 @@ function CombatLines(props: CombatProps) {
|
|||||||
const flightPosition: LatLng = props.combat.flight_position;
|
const flightPosition: LatLng = props.combat.flight_position;
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{props.combat.target_positions.map((position) => {
|
{props.combat.target_positions.map((position, idx) => {
|
||||||
return (
|
return (
|
||||||
<Polyline
|
<Polyline
|
||||||
|
key={idx}
|
||||||
positions={[flightPosition, position]}
|
positions={[flightPosition, position]}
|
||||||
color="#c85050"
|
color="#c85050"
|
||||||
interactive={false}
|
interactive={false}
|
||||||
|
|||||||
35
game/ato/flightstate/killed.py
Normal file
35
game/ato/flightstate/killed.py
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
from __future__ import annotations
|
||||||
|
|
||||||
|
from datetime import datetime, timedelta
|
||||||
|
from typing import TYPE_CHECKING
|
||||||
|
|
||||||
|
from dcs import Point
|
||||||
|
|
||||||
|
from .flightstate import FlightState
|
||||||
|
from ..starttype import StartType
|
||||||
|
|
||||||
|
if TYPE_CHECKING:
|
||||||
|
from game.sim.gameupdateevents import GameUpdateEvents
|
||||||
|
|
||||||
|
|
||||||
|
class Completed(FlightState):
|
||||||
|
def on_game_tick(
|
||||||
|
self, events: GameUpdateEvents, time: datetime, duration: timedelta
|
||||||
|
) -> None:
|
||||||
|
return
|
||||||
|
|
||||||
|
@property
|
||||||
|
def is_waiting_for_start(self) -> bool:
|
||||||
|
return False
|
||||||
|
|
||||||
|
def estimate_position(self) -> Point:
|
||||||
|
return self.flight.arrival.position
|
||||||
|
|
||||||
|
@property
|
||||||
|
def spawn_type(self) -> StartType:
|
||||||
|
# TODO: May want to do something different to make these uncontrolled?
|
||||||
|
return StartType.COLD
|
||||||
|
|
||||||
|
@property
|
||||||
|
def description(self) -> str:
|
||||||
|
return "Completed"
|
||||||
Loading…
x
Reference in New Issue
Block a user