Files
WT-Offline/gui-patches/battle/populate-random-spawn-units-state/patch.jsonc
T
N0VAN0M4LY 901f504dc6 Choose LocalMP extra lineup vehicles from the game data
Rebuild the extra vehicles a battle adds to the player's lineup on the
game files and the official rules:

- Random vehicles (dice slots): one per gameplay.blk RandomSpawnUnits
  group of the event economic name and country, offered from the
  group's minPlayerMRank on, with no condition on the lineup. The option
  window follows the official changelog examples (never the session's
  top BR, lower BR when nothing fits); its formula is inferred from the
  group parameters. Only the listed addModification items are enabled.
- Nuclear carrier: missionSupportPlane preset of the session rank, cost
  spawnScoreToUse.
- Strike UCAV: offered by an offline tuning rule, priced by the stock
  spawn score formula, no forced preset.

The spawn request enables exactly the slot's modifications, and every
forced weapon travels in the slot, so the event-name fallback is gone.
2026-11-28 06:48:17 +08:00

23 lines
743 B
JSON

// Fill the local player's random_units state with the options of each random vehicle group the
// local service drew for a LocalMP battle.
// Why the client: online the battle server writes it into the player's custom state; the stock
// slotbar reads it for the dice icon, the group name, the BR range and the list of options.
// Without it: the random vehicles look like plain lineup vehicles.
{
"id": "battle/populate-random-spawn-units-state",
"title": "Fill the random_units state of the local player in LocalMP",
"file": "scripts/miscustomrules/rulebase.nut",
"features": [
"K-补充载具"
],
"verified_on": [
"2.61.0.37"
],
"edits": [
{
"find": "find.nut",
"replace": "replace.nut"
}
]
}