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.
This commit is contained in:
1 parent
aa272fc82b
commit
6a189513b0
97 files changed
+7676
-396
No files matched your search
@@ -12,6 +12,14 @@ export function intParam(payload: BlkBlock, name: string): number | undefined {
|
||||
return param?.type === 'int' ? param.value : undefined;
|
||||
}
|
||||
|
||||
export function realParam(payload: BlkBlock, name: string): number | undefined {
|
||||
const param = findParam(payload, name)?.value;
|
||||
if (param?.type === 'real' || param?.type === 'int') {
|
||||
return Number.isFinite(param.value) ? param.value : undefined;
|
||||
}
|
||||
return undefined;
|
||||
}
|
||||
|
||||
export function boolParam(payload: BlkBlock, name: string): boolean | undefined {
|
||||
const param = findParam(payload, name)?.value;
|
||||
return param?.type === 'bool' ? param.value : undefined;
|
||||
|
||||
Reference in new issue
Block a user