Bracket hidden artillery targets across patrol/checkpoint/compound difficulties. Pure rules in src/lib/minigames/call-for-fire.ts (compass bearing observer reports, ADD/DROP + RIGHT/LEFT corrections, scoring, distance-to-target accuracy, injected rng) with a 23-case spec. Wires the game into the minigame ecosystem: submit action validates the run, updates the profile callForFire group, pays out XP and chips, emits minigame:call-for-fire, and records the period ledger entry (accuracy is distance-to-target on a win, null on a loss). Adds the game page with period standings and an all-time board, a command palette entry, the Target icon, and the profiles XP aggregation. The registry row and regenerated payload types land with the minigame registry changes in a separate commit.
319 lines
6.7 KiB
TypeScript
319 lines
6.7 KiB
TypeScript
import {
|
|
Bolt,
|
|
Users,
|
|
LifeBuoy,
|
|
Crosshair,
|
|
Warehouse,
|
|
Truck,
|
|
Fuel,
|
|
Map,
|
|
Backpack,
|
|
UserCog,
|
|
Bell,
|
|
Shield,
|
|
ArrowLeftRight,
|
|
CalendarDays,
|
|
BookOpen,
|
|
FilePlus2,
|
|
Contact,
|
|
BarChart3,
|
|
FolderKanban,
|
|
Search,
|
|
Award,
|
|
Mic,
|
|
PlaneTakeoff,
|
|
Radio,
|
|
Bomb,
|
|
ScrollText,
|
|
Spade,
|
|
Club,
|
|
Target,
|
|
} from "lucide-react";
|
|
|
|
export interface NavigationCommand {
|
|
id: string;
|
|
label: string;
|
|
icon: React.ComponentType<{ className?: string }>;
|
|
href: string;
|
|
keywords?: string[];
|
|
shortcut?: string;
|
|
requires?: "intelligence" | "logistics";
|
|
roles?: string[];
|
|
}
|
|
|
|
export const navigationCommands: NavigationCommand[] = [
|
|
{
|
|
id: "nav:dashboard",
|
|
label: "Dashboard",
|
|
icon: Bolt,
|
|
href: "/",
|
|
keywords: ["home", "main"],
|
|
shortcut: "G D",
|
|
},
|
|
{
|
|
id: "nav:roster",
|
|
label: "Roster",
|
|
icon: Users,
|
|
href: "/roster",
|
|
keywords: ["members", "personnel"],
|
|
shortcut: "G R",
|
|
},
|
|
{
|
|
id: "nav:transfers",
|
|
label: "Transfers",
|
|
icon: ArrowLeftRight,
|
|
href: "/transfers",
|
|
keywords: ["assignments", "requests", "moves"],
|
|
},
|
|
{
|
|
id: "nav:helpdesk",
|
|
label: "Helpdesk",
|
|
icon: LifeBuoy,
|
|
href: "/helpdesk",
|
|
keywords: ["support", "tickets"],
|
|
shortcut: "G H",
|
|
},
|
|
{
|
|
id: "nav:projects",
|
|
label: "Projects",
|
|
icon: FolderKanban,
|
|
href: "/projects",
|
|
keywords: ["boards", "sprints", "releases"],
|
|
},
|
|
{
|
|
id: "nav:project-search",
|
|
label: "Project Search",
|
|
icon: Search,
|
|
href: "/projects/search",
|
|
keywords: ["find", "query", "issues"],
|
|
},
|
|
|
|
{
|
|
id: "nav:campaigns",
|
|
label: "Campaigns",
|
|
icon: Crosshair,
|
|
href: "/intelligence/campaigns",
|
|
keywords: ["operations"],
|
|
requires: "intelligence",
|
|
shortcut: "G C",
|
|
},
|
|
{
|
|
id: "nav:missions",
|
|
label: "Missions",
|
|
icon: Crosshair,
|
|
href: "/intelligence/missions",
|
|
keywords: ["sorties", "ops"],
|
|
requires: "intelligence",
|
|
shortcut: "G M",
|
|
},
|
|
{
|
|
id: "nav:factions",
|
|
label: "Factions",
|
|
icon: Crosshair,
|
|
href: "/intelligence/factions",
|
|
keywords: ["groups", "teams"],
|
|
requires: "intelligence",
|
|
},
|
|
{
|
|
id: "nav:friday-ops",
|
|
label: "Friday Ops",
|
|
icon: CalendarDays,
|
|
href: "/intelligence/missions/calendar",
|
|
keywords: ["calendar", "side ops", "schedule", "events"],
|
|
},
|
|
|
|
{
|
|
id: "nav:wiki",
|
|
label: "Wiki",
|
|
icon: BookOpen,
|
|
href: "/wiki",
|
|
keywords: ["guide", "lore", "field manual", "pages"],
|
|
requires: "intelligence",
|
|
},
|
|
{
|
|
id: "nav:wiki-new",
|
|
label: "Create Wiki Page",
|
|
icon: FilePlus2,
|
|
href: "/wiki/new",
|
|
keywords: ["write", "new page", "documentation"],
|
|
requires: "intelligence",
|
|
},
|
|
|
|
{
|
|
id: "nav:structures",
|
|
label: "Structures",
|
|
icon: Warehouse,
|
|
href: "/logistics",
|
|
keywords: ["buildings", "storage"],
|
|
requires: "logistics",
|
|
shortcut: "G S",
|
|
},
|
|
{
|
|
id: "nav:resources",
|
|
label: "Resources",
|
|
icon: Fuel,
|
|
href: "/logistics/resources",
|
|
keywords: ["materials", "supplies"],
|
|
requires: "logistics",
|
|
},
|
|
{
|
|
id: "nav:vehicles",
|
|
label: "Vehicles",
|
|
icon: Truck,
|
|
href: "/logistics/vehicles",
|
|
keywords: ["cars", "trucks"],
|
|
requires: "logistics",
|
|
},
|
|
{
|
|
id: "nav:shipments",
|
|
label: "Shipments",
|
|
icon: Truck,
|
|
href: "/logistics/shipments",
|
|
keywords: ["shipping", "delivery"],
|
|
requires: "logistics",
|
|
shortcut: "G T",
|
|
},
|
|
{
|
|
id: "nav:deployed-vehicles",
|
|
label: "Deployed Vehicles",
|
|
icon: Map,
|
|
href: "/logistics/game-vehicles",
|
|
keywords: ["active", "field"],
|
|
requires: "logistics",
|
|
},
|
|
{
|
|
id: "nav:banking",
|
|
label: "Banking",
|
|
icon: UserCog,
|
|
href: "/logistics/banking",
|
|
keywords: ["finance", "accounts", "money"],
|
|
requires: "logistics",
|
|
shortcut: "G B",
|
|
},
|
|
{
|
|
id: "nav:market",
|
|
label: "Market",
|
|
icon: UserCog,
|
|
href: "/logistics/market",
|
|
keywords: ["trading", "flea market", "buy", "sell"],
|
|
requires: "logistics",
|
|
shortcut: "G K",
|
|
},
|
|
|
|
{
|
|
id: "nav:contacts",
|
|
label: "NPC Contacts",
|
|
icon: Contact,
|
|
href: "/personnel/contacts",
|
|
keywords: ["personnel", "directory", "npcs", "vendors"],
|
|
},
|
|
{
|
|
id: "nav:npc-statistics",
|
|
label: "NPC Statistics",
|
|
icon: BarChart3,
|
|
href: "/personnel/statistics",
|
|
keywords: ["personnel", "stats", "vendors", "distribution"],
|
|
},
|
|
|
|
{
|
|
id: "nav:locker",
|
|
label: "Locker",
|
|
icon: Backpack,
|
|
href: "/locker",
|
|
keywords: ["inventory", "gear", "equipment"],
|
|
shortcut: "G L",
|
|
},
|
|
{
|
|
id: "nav:awards",
|
|
label: "Awards",
|
|
icon: Award,
|
|
href: "/awards",
|
|
keywords: ["medals", "decorations", "commendations"],
|
|
},
|
|
{
|
|
id: "nav:voiceover",
|
|
label: "Voiceover Scripts",
|
|
icon: Mic,
|
|
href: "/voiceover",
|
|
keywords: ["teleprompter", "recordings", "voice acting"],
|
|
},
|
|
{
|
|
id: "nav:qualification-course",
|
|
label: "Qualification Course",
|
|
icon: Crosshair,
|
|
href: "/minigames/qualification",
|
|
keywords: ["aim trainer", "minigame", "shooting", "practice"],
|
|
},
|
|
{
|
|
id: "nav:radio-traffic",
|
|
label: "Radio Traffic",
|
|
icon: Radio,
|
|
href: "/minigames/radio",
|
|
keywords: ["minigame", "comms", "messages", "training"],
|
|
},
|
|
{
|
|
id: "nav:flight-simulator",
|
|
label: "Flight Simulator",
|
|
icon: PlaneTakeoff,
|
|
href: "/minigames/flappy",
|
|
keywords: ["minigame", "flappy", "fly", "training"],
|
|
},
|
|
{
|
|
id: "nav:minefield-clearance",
|
|
label: "Minefield Clearance",
|
|
icon: Bomb,
|
|
href: "/minigames/eod",
|
|
keywords: ["minigame", "eod", "mines", "training"],
|
|
},
|
|
{
|
|
id: "nav:opord-recall",
|
|
label: "OPORD Recall",
|
|
icon: ScrollText,
|
|
href: "/minigames/opord",
|
|
keywords: ["minigame", "briefing", "memory", "operations order", "training"],
|
|
},
|
|
{
|
|
id: "nav:call-for-fire",
|
|
label: "Call for Fire",
|
|
icon: Target,
|
|
href: "/minigames/call-for-fire",
|
|
keywords: ["minigame", "artillery", "fire mission", "observer", "bracket", "training"],
|
|
},
|
|
{
|
|
id: "nav:poker",
|
|
label: "Poker",
|
|
icon: Spade,
|
|
href: "/minigames/poker",
|
|
keywords: ["minigame", "poker", "cards", "holdem", "training"],
|
|
},
|
|
{
|
|
id: "nav:blackjack",
|
|
label: "Blackjack",
|
|
icon: Club,
|
|
href: "/minigames/blackjack",
|
|
keywords: ["minigame", "blackjack", "21", "cards", "training"],
|
|
},
|
|
{
|
|
id: "nav:account",
|
|
label: "Account",
|
|
icon: UserCog,
|
|
href: "/account",
|
|
keywords: ["settings", "profile", "password"],
|
|
},
|
|
{
|
|
id: "nav:notifications",
|
|
label: "Notifications",
|
|
icon: Bell,
|
|
href: "/notifications",
|
|
keywords: ["alerts", "messages"],
|
|
},
|
|
|
|
{
|
|
id: "nav:admin",
|
|
label: "Admin Panel",
|
|
icon: Shield,
|
|
href: "/admin",
|
|
keywords: ["cms", "manage"],
|
|
roles: ["admin", "developer"],
|
|
},
|
|
];
|