Files
WT-Offline/packages/local-service/src/matching/game-settings.ts
T
N0VAN0M4LY 6a189513b0 Snapshot unreviewed LocalMP battle work as rework baseline
Records the uncommitted battle-session work exactly as it was left
(local service matchmaking, settlement, chat, native LocalMP hooks,
battle gui/exe patches) so the following review and rework commits
show every correction as a diff against this state.

This commit is not reviewed and is known to be incomplete: in-game
testing reported wrong settlement rewards, single-country teams,
missing random/fixed supplement slots, misattributed hit messages and
other regressions. Do not merge this branch before the rework lands.
2026-11-28 03:15:47 +08:00

23 lines
893 B
TypeScript

/**
* Static matching-server feature flags (`wtmm_static.fetch_game_settings`,
* `scripts/matching/matchinggamesettings.nut` -> `scripts/user/matchingfeature.nut`).
*
* Stock `matchingfeature.nut` defaults `hasChat`, `hasBattleChatModeAll`, and
* `hasBattleChatModeTeam` to `false` until `wtmm_static.fetch_game_settings` returns
* `features.<key> = true`. Enabling them lets DaRG `hudLogs.nut` and the built-in
* LocalMP host chat dispatcher (`aces.exe` 0x154f540 -> 0x133ba10) accept in-battle
* All/Team/Squad chat and quick-radio voice messages.
*/
import type { MatchingRequestHandler } from './matching-requests.ts';
export const fetchGameSettings: MatchingRequestHandler = () => ({
features: {
hasChat: true,
hasMenuChat: true,
hasBattleChatModeAll: true,
hasBattleChatModeTeam: true,
hasBattleChatModeSquad: true,
hasMenuChatMPlobby: true,
},
});