fix(battle): preserve the Bullet Hell AI loadout flow
Use the game mode declaration to omit offline combat-preset selection in the cannon-only mode.
This commit is contained in:
1 parent
b4af034756
commit
01f7b5769b
4 files changed
+7
-3
No files matched your search
@@ -50,6 +50,8 @@ export interface GameModeDeclaration {
|
||||
* `true`; `false` for single-slot modes (`air_realistic` and its `small_teams_` sub-mode).
|
||||
*/
|
||||
readonly multiSlot?: boolean;
|
||||
/** False for modes whose native weapon rules replace combat presets. Defaults to true. */
|
||||
readonly allowBotAircraftLoadouts?: boolean;
|
||||
/** Minimum `mrank` exposed on the parent mode for Night Battles (`scripts/events/eventinfo.nut:134-136`). */
|
||||
readonly minMRankForNightBattles?: number;
|
||||
/** Minimum `mrank` exposed on the parent mode for Tactical Skies (`scripts/events/eventinfo.nut:137`). */
|
||||
|
||||
@@ -82,6 +82,8 @@ export const SUB_GAME_MODES: readonly GameModeDeclaration[] = [
|
||||
difficulty: 'realistic',
|
||||
displayType: 'random_battle',
|
||||
minCraftsToPlay: MIN_CRAFTS_BULLET_HELL,
|
||||
// Bullet Hell uses cannons and permits only compatible secondary equipment.
|
||||
allowBotAircraftLoadouts: false,
|
||||
allowedCraftMinMrank: { aircraft: MIN_MRANK_BULLET_HELL },
|
||||
minQueueMrank: MIN_MRANK_BULLET_HELL,
|
||||
requiredClass: 'aircraft',
|
||||
|
||||
Reference in new issue
Block a user