Skip to content

fix: .NET 10 upgrade and API adaptation for latest STS2 build#87

Open
StewartXiang wants to merge 1 commit into
wuhao21:mainfrom
StewartXiang:fix/net10-upgrade-and-api-adapt
Open

fix: .NET 10 upgrade and API adaptation for latest STS2 build#87
StewartXiang wants to merge 1 commit into
wuhao21:mainfrom
StewartXiang:fix/net10-upgrade-and-api-adapt

Conversation

@StewartXiang

Copy link
Copy Markdown

Changes

  • .NET version: Upgrade all projects from net9.0 to net10.0 with RollForward
  • Game API adaptation: GetLocalInventory()Inventory property (MerchantRoom)
  • Combat phase detection: Use CombatManager.Instance.IsPlayPhase instead of per-player state
  • CardRewardSelection: Adapt to new return type (struct → CardModel)
  • Apply<WeakPower>: Fix signature (single target → array)
  • Reward collection: SelectUnsynchronizedOnSelectWrapper
  • IL patch windows运行展示内容问题 #3: Patch all WaitFor* methods → Task.CompletedTask
  • Stale state cleanup: Reset all pending state in StartRun for consecutive runs

Testing

Full regression test passed — 5 games × 5 characters = 25/25 completed, 0 crashes/stuck:

Character Completed
Ironclad 5/5 ✅
Silent 5/5 ✅
Defect 5/5 ✅
Regent 5/5 ✅
Necrobinder 5/5 ✅

🤖 Generated with Claude Code

@StewartXiang StewartXiang force-pushed the fix/net10-upgrade-and-api-adapt branch from e61bf2c to fb7ee8a Compare June 21, 2026 01:50
…path

LoadSave path now uses SetUpTest consistently with StartRun, since
SetUpSavedSingleplayer was renamed/removed in latest STS2 build.

Co-Authored-By: Claude <noreply@anthropic.com>
@StewartXiang StewartXiang force-pushed the fix/net10-upgrade-and-api-adapt branch from fb7ee8a to 4b15409 Compare June 21, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant