fix(battle): load player crew skills on LocalMP host
Unit::loadCrew previously skipped reading the player's equipped crew from the profile whenever Multiplayer+0x60 (host flag) was non-zero, leaving human players with default skills and no Expert/Ace bonuses. Calling UnitCrewSkills::initFromSave after Unit::changeAircraft in the native loadout hook ran too late to affect live vehicle crew state. Add exe patch battle/load-local-host-player-crew to check both the host and LocalMP flags (+0x60 and +0x61) in Unit::loadCrew so only non-LocalMP hosts skip directly to the default crew while preserving the owner check. Remove the late initFromSave workaround from local_mp_loadout.c (keeping its native patch sites for compatibility with 0.1.2 hook DLLs) and add the E-Crew skills in battle feature labels to the launcher locales. Verified with check-patches on 2.61.0.37 (0x10025dd) and 2.61.0.58 (0x100700d), native wto_ws.dll build, launcher typecheck and build; pending in-game verification.
This commit is contained in:
1 parent
7bd17c4f74
commit
646be7afb9
8 files changed
+50
-15
No files matched your search
@@ -666,6 +666,7 @@
|
||||
"J-Ground arcade and realistic": "Ground battles (arcade, realistic)",
|
||||
"J-Air arcade and realistic": "Air battles (arcade, realistic)",
|
||||
"J-Naval arcade and realistic": "Naval battles (arcade, realistic)",
|
||||
"E-Crew skills in battle": "Crew skills and qualifications in battle",
|
||||
"J-Sub-modes": "Additional modes (such as night battles)",
|
||||
"K-AI opponents and teammates": "AI opponents and allies",
|
||||
"K-Spawn score and respawns": "Spawn points and respawning",
|
||||
|
||||
@@ -666,6 +666,7 @@
|
||||
"J-Ground arcade and realistic": "陆战(街机、历史)",
|
||||
"J-Air arcade and realistic": "空战(街机、历史)",
|
||||
"J-Naval arcade and realistic": "海战(街机、历史)",
|
||||
"E-Crew skills in battle": "战局乘员技能与资格",
|
||||
"J-Sub-modes": "附加模式(如夜战)",
|
||||
"K-AI opponents and teammates": "AI 对手与队友",
|
||||
"K-Spawn score and respawns": "出生点数与重生",
|
||||
|
||||
Reference in new issue
Block a user