diff --git a/apps/web/src/components/FieldEscort.tsx b/apps/web/src/components/FieldEscort.tsx index d03d2f0..5e6a907 100644 --- a/apps/web/src/components/FieldEscort.tsx +++ b/apps/web/src/components/FieldEscort.tsx @@ -4,7 +4,7 @@ import { useState } from "react"; import { trpc, trpcClient } from "../lib/trpc.ts"; import { useCommand } from "../lib/command.ts"; import { label } from "../lib/names.ts"; -import { fmtDuration, fmtTime, useNow } from "../lib/time.ts"; +import { fmtDuration, useNow } from "../lib/time.ts"; import { Button, ErrorLine, Stepper, UnitChips, SmallButton } from "../ui.tsx"; type Counts = Record; @@ -44,14 +44,11 @@ export function FieldEscortEditor({ fieldId, garrison, escort }: { fieldId: numb ); } -/** Erkannte Angriffe (Radar des Heimathafens) und eigene Verstärkungen unterwegs. */ -export function FieldIncomingLines({ incoming, reinforcements }: { incoming: { arriveAtMs: number }[]; reinforcements: { arriveAtMs: number; units: Counts }[] }) { +/** Eigene Verstärkungen unterwegs. Erkannte Angriffe stehen im Block „Bedrohung“ (FieldThreats.tsx). */ +export function FieldReinforcementLines({ reinforcements }: { reinforcements: { arriveAtMs: number; units: Counts }[] }) { const now = useNow(); return ( <> - {incoming.map((a, i) => ( -
Angriff erkannt – Ankunft in {fmtDuration(Math.max(0, a.arriveAtMs - now))} ({fmtTime(a.arriveAtMs)})
- ))} {reinforcements.map((r, i) => (
Verstärkung unterwegs, Ankunft in {fmtDuration(Math.max(0, r.arriveAtMs - now))}:
))} diff --git a/apps/web/src/components/Fields.tsx b/apps/web/src/components/Fields.tsx index 8c1f24e..3e67ddf 100644 --- a/apps/web/src/components/Fields.tsx +++ b/apps/web/src/components/Fields.tsx @@ -8,7 +8,7 @@ import { fmtDuration, fmtTime, useNow } from "../lib/time.ts"; import { Button, Card, ErrorLine, SmallButton, UnitChips } from "../ui.tsx"; import { Icon } from "../icons.tsx"; import type { Target } from "../App.tsx"; -import { FieldEscortEditor, FieldIncomingLines } from "./FieldEscort.tsx"; // Felder 2: Geleit, Vorwarnung, Verstärkung +import { FieldEscortEditor, FieldReinforcementLines } from "./FieldEscort.tsx"; // Felder 2: Geleit, Verstärkung import { IntelStand } from "./IntelStand.tsx"; // Lagebild import { FieldThreatBlock } from "./FieldThreats.tsx"; // Bedrohung eigener Felder (Kartell, erkannter Angriff) @@ -73,7 +73,7 @@ export function FieldSheet({ data, sel, onPlan }: { data: FieldsData | null | un {f.relation !== "own" && } {canTake && } - {mine && } + {mine && } {mine && } {mine?.admiral && } {mine && } @@ -137,7 +137,7 @@ export function MyFieldsPanel({ base, onShowOnMap }: { base: BaseData; onShowOnM {KIND_TEXT[m.kind]} · Stufe {m.tier} Feld {m.col}/{m.row}
Ertrag {resLine(m.yieldPerHour)}/h ({Math.round(m.factor * 100)} %{m.zoneBonus ? ", Zonenbonus" : ""}) · Unterhalt {fmtNum(m.upkeepPerHour)} Proviant/h
- +
Besatzung: {Object.keys(m.escort).length > 0 && – gegen Spieler verteidigt: (gegen das Kartell alle)}
Nächste Lieferung {d.nextDeliveryAtMs ? `in ${fmtDuration(d.nextDeliveryAtMs - now)}` : "bald"} per Konvoi nach {m.home ?? base.name}