Commit Graph
10646 Commits
Author SHA1 Message Date
adminandClaude Opus 4.6 031262d374 Wire Tutorial Panel reference and battle layout fields in scene
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 18:01:51 -07:00
adminandClaude Opus 4.6 92a81c0ce6 Move dialogue panel up in battle mode via Bottom offset
Sets Tutorial Panel's Bottom offset to 650 in Shardok battles (vs 400
default) so the panel doesn't cover the hex grid. Both values are
Inspector fields — no runtime save/restore.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 18:00:22 -07:00
adminandClaude Opus 4.6 78fdefea9e Add VerticalLayoutGroup with flexible spacer to anchor dialogue content at bottom
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 16:38:49 -07:00
adminandClaude Opus 4.6 920d0f72bb Remove old modal tutorial system and fix dialogue panel positioning
Delete TutorialModalPanel and TutorialCanvasBuilder (old runtime-built
modal system). Remove SetPanelPosition from DialoguePanelController —
it was overriding the editor layout by setting anchoredPosition.y = 0,
causing the panel to shift and buttons to jump between steps.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 16:35:37 -07:00
adminandClaude Opus 4.6 43b6526f58 Use fixed bottom offset so short first steps leave room to grow
The battle tutorial's first step is short, so -height/2 placed the
bottom edge high on screen. Subsequent longer steps then grew off
the top. Use a fixed -200px bottom offset from center instead, so
the bottom position is consistent regardless of first step height.

Also restore Top anchor to pivot Y=1 (grows downward from top edge),
since growing upward from the top of the screen doesn't make sense.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 15:41:48 -07:00
adminandClaude Opus 4.6 3bbaf2b839 Only reposition when anchor/target changes, not every step
Tutorial sequences change anchors between steps (e.g., Center for
welcome, Right for province info, Top for commands). Skip
repositioning only when the same anchor and target are reused
between consecutive steps, so the panel properly moves for battle
tutorials while keeping the bottom edge fixed within same-position
sequences.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 15:41:48 -07:00
adminandClaude Opus 4.6 23a9c11d9d Simplify: only position panel on first step, let pivot handle the rest
Instead of recomputing position every step (which fights the pivot),
just position once on step 0. ContentSizeFitter + pivot Y=0 (set in
the inspector) grows the panel upward, keeping the bottom edge fixed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 15:41:48 -07:00
adminandClaude Opus 4.6 bca005b264 Save and restore bottom edge position across tutorial steps
The pivot change alone wasn't enough — PositionPanel recomputes
anchoredPosition.y from height on every step, so the bottom still
shifted. Now we save anchoredPosition.y on step 0 and restore it
on subsequent steps, keeping the bottom edge (and buttons) fixed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 15:41:47 -07:00
adminandClaude Opus 4.6 774f3e80cb Fix tutorial panel buttons jumping when stepping through tutorial
Bottom-anchor the panel pivot (Y=0) so the bottom edge stays fixed
when ContentSizeFitter resizes the panel between tutorial steps.
Buttons no longer shift position on Continue/Skip.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 15:41:47 -07:00
dfc334267c Add animated wind direction indicator to Shardok battle view (#6518)
* Add animated windsock wind direction & speed indicator to Shardok battle view

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Redesign wind indicator as animated arrow, remove weather from round info

Replace windsock (pole + sock) with a simpler arrow that points in the
wind direction, shakes with layered sine waves for organic feel, and
grows thicker at higher speeds. Fix NW/SW direction mapping swap. Remove
weather text from round info label since visual indicators now convey
this. Show "No Wind" in speed label when calm.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 14:43:49 -07:00
7c4b4ef490 Reduce unnecessary UI raycasting in Shardok battle view (#6520)
- Remove GraphicRaycaster from Weather Canvas (no interactive elements)
- Set raycastTarget=false on Odds Panel and Button Tooltip images
  (display-only elements that don't need click handling)
- Use Color.clear instead of null when clearing bg highlights in HexGrid
  to preserve mesh fill triangles

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-14 07:58:13 -07:00
79d26fa73a Fix duplicate unaffiliated hero exception in client (#6519)
Use ID-based lookup instead of object equality when diffing unaffiliated
heroes. The old code used Vector.contains (full object equality), so any
field change (profession, recruitmentInfo, etc.) caused the hero to
appear in both removed and added lists. If ordering or batching led to
the add arriving before the remove was processed, the client threw
"Duplicate unaffiliated hero" InvalidOperationException.

Now builds a Map by heroId for comparison, which correctly handles all
three cases: truly removed, truly added, and changed-in-place (emitted
as remove+add by ID so the client replaces the old entry).

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 19:17:16 -07:00
72ef203a8a Always include shardokGameId in battle views for non-participants (#6517)
BattleFilter was setting shardokGameId to None for restricted
non-participant observers. This broke GameStateViewDiffer's
removedBattleIds computation, which uses flatMap(_.shardokGameId)
and silently drops None entries. The result: battle animations
were added to the client but could never be removed.

myPlayerId = None already prevents non-participants from joining
the Shardok game, so hiding the game ID served no purpose and
broke battle removal tracking.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 18:56:00 -07:00
85b620b644 Remove battle from ShardokBattles when Shardok game ends (#6515)
When a Shardok game ends (victory/defeat), the game model was
removed from ShardokGameModels but the battle was left in
ShardokBattles (OutstandingBattles). The only other removal path
was RemovedBattleIds in Eagle diffs, which may arrive late or not
at all for auto-resolved battles the player never entered.

This left the battle animation running on the strategic map
indefinitely after the battle ended.

Fix: also remove from ShardokBattles when processing ended games
in the Shardok update path.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 18:30:39 -07:00
fb36684e35 Update battle effects even when SwapModel skips due to commands (#6514)
SwapModel returns early when both old and new model have available
commands, skipping mapController.Model assignment and all province
effect updates. This meant battle animations persisted after a
battle ended if commands were available at the time.

Fix: call mapController.UpdateBattleEffects before the early return
so battle start/end animations are always kept in sync with the
model, even when the full model swap is skipped.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 18:14:42 -07:00
b6d83e3775 Fix battle animation appearing at center of conquered province (#6513)
When a province changed hands after a battle, UpdateBattleEffects
identified the defender by looking up the current ruling faction of
the defender province. After conquest, the attacker's faction matched
the province owner and was skipped, while the old defender was
processed — with OriginProvinceIds containing the defender province
itself, producing key (Wichel, Wichel) and an animation at the
province center.

Fix: skip any origin that equals the defender province. This can
never produce a meaningful animation (midpoint = province center)
and eliminates the dependency on current province ownership for
defender identification.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 16:43:12 -07:00
2d3050eded Fix BetrayAllyQuest: breaking an alliance was failing the quest instead of fulfilling it (#6512)
The failure check treated "no longer allied" as a failure condition, but
that's the success condition. Now: failure only if the target faction no
longer exists. Also added a general fulfillment check so the quest succeeds
even if the inline check in BreakAllianceResolutionHelpers doesn't fire
(e.g. when the ambassador is imprisoned).

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 16:38:33 -07:00
bb848e73f3 Restrict battle observation to participants and allies (#6509)
Non-involved players can no longer observe tactical Shardok combat. They
still see the battle-in-progress animation on the strategic map and learn
the outcome, but won't receive individual Shardok actions or be offered
the observation UI. Allied non-participants can still observe.

Controlled by the RestrictBattleObservation setting (default 1/on). Set
to 0 in the admin console to revert to the old behavior.

Also syncs settings.tsv with LLM settings that were previously only in
BUILD.bazel, and fixes the settings generator to include string_setting
dep and correct battalion_type_loader deps.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 16:15:49 -07:00
37c96eceec Fix settings generator and sync settings.tsv with BUILD (#6511)
The settings generator had two issues:
- Missing string_setting dep when String-type settings exist
- Wrong battalion_type_loader deps (proto target instead of model state)

Also syncs settings.tsv with LLM settings (llmProvider, openAiModelName,
claudeModelName, geminiModelName) that were previously only manually
added to BUILD.bazel, and updates the openai_model_name target to match
the generator's snake_case convention.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 16:08:56 -07:00
64e41a3c12 Set cannotBecomeOutlaw for tutorial opening battle (#6508)
* Set cannotBecomeOutlaw for tutorial opening battle

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix: only set cannotBecomeOutlaw for the first battle, not all tutorial battles

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 15:55:06 -07:00
b81e795350 Direct March and Send Supplies animations toward destination province (#6506)
Instead of fixed directions (March slides right, Send Supplies launches
upward), both animations now compute the direction to the destination
province from the game state diff and animate toward it.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 15:48:11 -07:00
f8c2b19609 Prevent King from inviting Bridget and Hedrick in tutorial (#6507)
Add -500 trust toward the King (faction 2) for both Bridget (faction 4)
and Hedrick (faction 5) so the King's AI never sends them invitations.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 15:42:58 -07:00
95fbbf91a3 Add cannot_become_outlaw flag to battle request (#6505)
* Add cannot_become_outlaw flag to per-faction battle request

When set on a faction's PlayerSetupInfo, the BecomeOutlaw command
is suppressed for that faction's units. Default false preserves
existing behavior.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Remove default values for cannotBecomeOutlaw, require explicit specification

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 15:42:02 -07:00
a1bd0a61ae Add tutorial Mobilization phase start logic (#6482)
* Add tutorial Mobilization phase start logic (#6478)

When starting a tutorial at Mobilization or EagleAppears, fast-forward
the game state past the opening battle to a plausible mid-game state
where Sadar controls two provinces and King's satellites are vacated.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Replace dynamic tutorial phase setup with JSON resource loading

Add an extractor tool and loader to store pre-computed tutorial phase
transition results as JSON resources instead of computing them at
runtime from game state. This eliminates fragile dependencies on
knowing exact hero IDs and post-battle state deltas.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Populate expansion_results.json with battle resolution data

Extracted from a tutorial playthrough: actions 4-7 covering battle
resolution, province held, Tarn disappearance, and end of resolution
phase. Actions 0-3 (GAME_START through FOOD_CONSUMED) are already
produced by the initial game creation flow.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Pretty-print expansion_results.json

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 15:38:48 -07:00
0553da332e Boost tutorial defender unit sizes and Luke's faction bias (#6504)
Increase Sadar's three starting battalions by 15% (460→529, 270→311,
346→398) to give the player a stronger opening battle position.
Raise Luke the Prank-tricker's Sadar faction bias from 80 to 110.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 14:57:58 -07:00
d39038296f Update Unity prefab layouts and reimported assets (#6503)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 11:30:03 -07:00
36bc30f2bb Scale province action animations up ~30% (#6502)
Increase all spatial fields (icon sizes, distances, heights, spreads,
radii) by approximately 1.3x across all province action animation types.
Durations, counts, angles, and colors are unchanged.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 11:08:35 -07:00
1952ab796d Color March "keep" amount red when over province capacity (#6501)
Match the Send Supplies behavior: goldLeftLabel and foodLeftLabel turn
red when the amount remaining in the origin province would exceed its
gold or food capacity.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 10:43:40 -07:00
118311209f Add map validation: no starting positions on water, mountains, or overlapping (#6498)
Validates all maps to ensure starting positions are not placed on
impassable terrain (water, river, mountain) and that attacker starting
position sets don't overlap with each other.

Kojaria currently fails both checks and needs a map editor fix.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 07:40:47 -07:00
adminandGitHub 75b93ac3fc Update map: Kojaria (#6500) 2026-03-13 07:34:30 -07:00
fe5360d6f1 Fix missing flee/captured sound when battle ends (#6497)
When an AI unit flees and ends the battle, the GameStateViewDiff
removes the unit from UnitsById before ModelUpdated processes the
history. The sound-playing code required the actor to be found in
UnitsById to determine animation coordinates, silently skipping
the entire sound block when the lookup failed.

Add a fallback else branch that plays the sound without animation
when the actor unit has been removed from the model.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 07:26:29 -07:00
adminandGitHub 7dc0ce220f Update map: Chapellia (#6496) 2026-03-13 07:20:49 -07:00
74ade84dcd Replace Feast sound effect with crowd victory cheer (#6495)
The previous "battle_shout" sound felt more like rioting than
feasting. Replace with a group victory cry from freesound.org
(chripei, CC BY 4.0) that better conveys celebration.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 07:16:53 -07:00
f626eff404 Update Gameplay scene RectTransform anchors and prefab overrides (#6494)
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 21:44:53 -07:00
0b06173e96 Fix Shardok overlay flash on unit selection (#6493)
* Stop label updates from clearing hex background highlights

SetUnitInfoLabels and SetOverlayLabel were calling SetCellBaseColor
(which sets Geometry.Color = Color.clear) and hexMesh.Triangulate on
every invocation. These methods manage TMP_Text labels, not hex
geometry, so the SetCellBaseColor and Triangulate calls were
unnecessary. Removing them eliminates O(N²) Triangulate calls per
selection change (one per cell, each iterating all cells).

ClearOverlays now explicitly resets Geometry.Color for cells that had
a BackgroundHighlightColor and does a single Triangulate when needed.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Defer hex background highlight updates to HexGrid.Update for atomic mesh rendering

ClearOverlays was eagerly triangulating hexMesh (clearing background
highlights) while overlayMesh borders were only updated in Update().
This caused the two meshes to render out of sync for one frame when
Update order put HexGrid before MouseHandler. Now both meshes are
updated atomically in Update(), and ClearOverlays just clears the
data. Also reduces hexMesh.Triangulate calls from O(N) per overlay
cell per frame to at most one.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix overlay label/image flash by deferring all cleanup to Update

ClearOverlays was eagerly clearing labels and follow-up images while
the overlay border mesh was only updated in HexGrid.Update(). When
Unity's script execution order put HexGrid.Update before
MouseHandler.Update (which changed after the Shardok prefab
extraction in #6485), the labels/images were cleared mid-frame but
not re-set until next frame — causing a visible one-frame flash on
every unit selection.

Now ClearOverlays just clears the data list. Update() owns all visual
state: it clears stale labels, images, and background highlights from
the previous frame, sets new ones from current overlayCells, and
triangulates both meshes — all atomically regardless of script order.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 21:41:24 -07:00
32a58fd8eb Clean up orphaned animation sprites when Map deactivates (#6492)
Animation objects are parented to mapContainer, not the animator. When
the Map deactivates mid-animation (e.g. entering a battle), coroutines
die but the partly-faded sprites linger. Track all objects created by
CreateUIObject and destroy any survivors in OnDisable.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 21:22:17 -07:00
53eb739cfe Add elephant/mammoth beast effect (#6489)
* Add elephant/mammoth beast effect using Animal Pack Deluxe v2

Wire up African and Indian elephant prefabs from the newly purchased
Animal Pack Deluxe v2 as a proper beast effect. Mammoths reuse the
same elephant models. Includes a custom ElephantMapAnims controller
to remap v2 animation state names to AnimalEffect's expected states.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix elephant animation: use v2 pack's own controller, fix prefab refs

- Use the v2 pack's African_elephant_anim_controller directly instead
  of our custom ElephantMapAnims (which couldn't resolve FBX clips)
- Fix animalPrefabs fileIDs to match actual root GameObjects
- Regenerate animation FBX .meta files for Unity 6 compatibility

The v2 controller's state names don't fully match AnimalEffect's
expected names (idle A/attack A vs idle/attack), so animations are
partial. Next step: remap state names to get all 4 animations working.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Rename v2 controller states to match AnimalEffect expectations

Rename 'idle A ' → 'idle' and 'attack A' → 'attack' in the v2 pack's
African_elephant_anim_controller so all 4 animation states work with
AnimalEffect's Animator.Play() calls.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 20:09:17 -07:00
4e39baf3fa Queue province animations while Map is inactive, replay on reactivate (#6490)
Action results arriving from the server while the Map game object is
inactive (e.g. during a battle) are queued and replayed 1s after the
Map reactivates, so the player sees what happened while they were away.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 19:53:24 -07:00
95ce201b20 Apply lightweight loop filter at root of iterative deepening search (#6491)
The full AICommandFilter was only applied during lookahead (inside
FindBestCommand), not at the root level of IterativeSearch. This
caused the AI to repeatedly choose METEOR_TARGET_COMMAND because the
re-target filter never ran on the top-level command list.

Adds FilterLoopingCommands — a minimal filter that only removes
genuinely never-useful commands (meteor re-target/cancel when a target
is already set). The full aggressive filter stays in lookahead only,
where pruning is a performance optimization. Applying the full filter
at the root could miss moves that look bad locally but prove
worthwhile with deeper search.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 19:47:28 -07:00
aeeb3ec8e0 Fix AI crash: meteor cancel with 0 AP after meteor start (#6487)
METEOR_START uses ActionCost::usesAll which drains AP to 0. The
MeteorTargetCommandFactory then unconditionally generates a
METEOR_CANCEL command (cost 1 AP) for the mage in TARGET state.
When the AI evaluates this command, MutatingSpendActionPoints throws
because 1 > 0.

Two fixes:
1. Set meteorCancelActionPointCost to 0, matching #6454's fix for
   meteorTargetActionPointCost.
2. Filter out meteor re-target/cancel in AICommandFilter when the
   mage already has a target. Re-targeting exists for human misclick
   correction; the AI commits to its first choice and could otherwise
   loop endlessly re-targeting at 0 AP cost.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 18:41:54 -07:00
6886964efa Fix mammoth stats from bandit template to large animal (#6488)
Mammoth had human-bandit-like stats (likelihood 0.10, power 1.5,
economy devastation) instead of large-animal stats. Update to be
rarer than elephants with appropriate power, count, and devastation.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-12 06:40:48 -07:00
aa77094790 Extract Command Panel and 35 sub-panels into prefabs (#6486)
* Extract Command Panel into prefab

Move the Command Panel hierarchy (37 command sub-panels) from
Gameplay.unity into its own prefab at Assets/Eagle/. This is the
largest single component in the scene at ~126K lines. Scene-level
cross-references (eagleGameController, connectionHandler, hexGrid,
shardokContainer, etc.) are preserved as PrefabInstance overrides.

Reduces Gameplay.unity from ~232K to ~102K lines (56% reduction).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Extract 35 command sub-panels into individual prefabs

Break down Command Panel.prefab (126K lines) into 35 individual
prefabs under Assets/Eagle/CommandPanels/. Command Panel itself
becomes a thin container (~6K lines) with PrefabInstance references.

Largest sub-panel (March Panel) is 12.7K lines; smallest are ~230
lines. All are independently editable and produce focused diffs.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 21:45:54 -07:00
3ccdcaa6cd Extract Shardok Container into prefab (#6485)
Move the Shardok Container hierarchy (Shardok Canvas + Weather Canvas)
from Gameplay.unity into its own prefab at Assets/Shardok/. External
field references (mainCamera, eagleCanvas, soundManager, audioClipSource)
are preserved as scene-level PrefabInstance overrides.

Also adds UNITY_POST_PROCESSING_STACK_V2 scripting define symbols.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 14:18:52 -07:00
c8c95ac1b6 Refactor EagleCommonTextures to singleton pattern (#6484)
Eliminates 3 duplicate instances by adding a static Instance property,
replacing all GetComponentInParent lookups and serialized field references
with EagleCommonTextures.Instance. Removes the duplicate components from
ConnectionCanvas, Shardok Container, and Eagle Canvas in the scene, and
moves the single remaining instance to Main Camera so it's guaranteed to
have Awake() called regardless of which canvases are active.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 14:03:04 -07:00
bbbe4211e3 Extract Custom Battle Panel into prefab (#6483)
* Extract Custom Battle Panel into prefab

Remove baked-in Custom Unit Row instances from the prefab since
EventBasedTable.Awake() destroys them and recreates from rowPrefab
at runtime. Also remove stale SimpleFileBrowser references from
eagle0.sln.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Convert Custom Battle Panel prefab from LFS to regular git

This prefab is actively edited line-by-line and benefits from normal
git diff/blame/merge. LFS is better for opaque binary assets.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 11:25:51 -07:00
a1391cdad2 Add missing Unity .meta files and import artifacts (#6481)
* Add missing Unity .meta files, HoneyBadger import artifacts, and fix_import.py

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Remove HoneyBadger import artifacts and gitignore FBX auto-generated files

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 09:21:22 -07:00
c25d042690 Remove SimpleFileBrowser plugin and associated UI (#6480)
Remove the SimpleFileBrowser plugin and its usage in CustomBattleHandler
(custom map loading and game request loading via file dialogs). Remove
the Custom Map Toggle, Load Button from the Custom Battle Panel, and
the obsolete Tutorial Lite button from the Lobby Panel prefab.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 08:58:21 -07:00
d9666dc01d Apply persisted settings at startup even when Settings Panel is inactive (#6479)
The Settings Panel prefab starts inactive, so Start() never runs until
the user opens it. This caused persisted values (province label font
size, audio volumes, tooltip behavior) to not be applied until Escape
was pressed, producing a visible font resize.

Split initialization: ApplyPersistedSettings() loads PlayerPrefs and
applies to game systems early via SettingsKeyListener.Start() on the
always-active PersistentCanvas. The deferred Start() just syncs UI
sliders/toggles to match the already-applied values.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 07:57:40 -07:00
cd9fc49bde Replace tutorial buttons with phase dropdown (#6474)
* Replace tutorial buttons with phase dropdown in ConnectionHandler

Replace the two separate tutorial buttons (tutorialButton, skipBattleTutorialButton)
with a TMP_Dropdown + Button combo so any tutorial phase can be selected from the lobby
without adding more buttons for each new phase.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Fix C# TutorialPhase enum names to match protobuf codegen

C# protobuf strips the common prefix, so the enum values are
TutorialPhase.OpeningBattle (not TutorialPhaseOpeningBattle), etc.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* Wire tutorial phase dropdown and start button in Gameplay scene

Add missing using directive for Net.Eagle0.Eagle.Common namespace
and re-wire tutorialPhaseDropdown and startTutorialButton to the
Lobby Panel prefab instance.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 07:25:31 -07:00
1ca4ee5cc0 Extract Connection, Lobby, and DropGameConfirmation panels into prefabs (#6478)
Reduces Gameplay.unity by ~13k lines by extracting three connection UI
panels into standalone prefabs with scene-level overrides for callbacks
that reference the scene-level ConnectionHandler.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-11 07:12:39 -07:00